Sessionscope variable

I am saving a value in sessionscope of container app(webcenter). I am trying to access the same sessionscope variable in the portlet JSF pagedef. The value seems to be lost.
Can you access sessionscope variable between portlets and container app? If no, what are my options?

Hi Timo,
Correct me if i am wrong.
There are two ways of creating a session scope variable.
1.Create a managed bean for our page and while configuring it in Taskflow we can set the entire bean scope as session therefore the variables we defined there will have a session scope.
2.#{sessionScope.myvar}
Suppose, i wish to use second method how can i assigned it a value?
Assume that i want to have a session variable so that based on its value i will disclosed a particular element.
Ajay

Similar Messages

  • How to assign sessionscope variable to the bind variable in Query of VO

    Hi all,
    I want to know how to assign a sessionscope variable in the binvariable of Query in VO
    My sessionscope variable holds the value of currently selected column in the table. eg:empname of the currently selected column which is in empdetails table...
    I want display the schemes available for the selected employee in the next table..The schemes are in another table named empschemes which has the empname and empschemes as column
    I have created a vo for empschemes table with bind variable 'scheme_bind'..I need to set the sessionscope variable '#{sessionScope.empname}" to the bind variable.
    Its urgent,..Pls do reply asap
    Thanks in advance
    Nasrin

    HI,
    You can use
    adf.context.sessionScope.get("YourSessionVariable")this code for assigning VO's bind variable value.write this code where you create bind variable and do not forget click on expression radio button.
    Rafat

  • Best Practice setting sessionScope Variable

    Using JDeveloper 11.1.1.4.0
    Where and how do I set the sessionScope variable in the following situation? I developed a named criteria search on the emp table's view object to search for EMPNO. I then dragged the "SearchByEmpno" named criteria onto my page and selected "Query and Table" from the choices. When a user enters an EMPNO to search by, I want to set the sessionScope variable to that value so that it can be used in other routines in the session. Someone suggested that I set the value in the IMPL for the view object, but that violates the separation of model and view controller. Is the proper place on the page's query object or the output table or elsewhere, and how so as to not disturb the normal functions of the query or table--if possible?
    Thanks,
    Troy

    you can intercept the query using querylistener as mentioned in the blog post and set the value in session scope:
    http://andrejusb.blogspot.com/2009/06/working-with-view-criteria-items.html
    Thanks,
    Navaneeth

  • Setting sessionScope variables on PageLoadBegin

    Hello all I am having problems setting and retrieving the sessionScope variables - everytime I attempt to retrieve the value - I get nothing back. I have put the code in two places to ensure that the variables was set.
    Anyhelp would be greatly appreciated thanks.
    public void onPageLoadBegin(FacesContext facescontext) {
            // Type Java code to handle page load begin event here
            facescontext.getExternalContext().getSessionMap().put("passauth","Troin Artis");
                    //sessionScope.put("passauth","Troin Artis");
            String passauth = (String) facescontext.getExternalContext().getSessionMap().get("passauth");
            CommonFunctions.debugLog("PASSAUTH: " +  passauth);
            facescontext.getExternalContext().getSessionMap().put("userName", "Troin Artis");
            String uname = (String) facescontext.getExternalContext().getSessionMap().get("passauth");
            CommonFunctions.debugLog("USERNAME: " +  uname);
        public void onPageLoadEnd(FacesContext facescontext) {
            // Type Java code to handle page load end event here
            facescontext.getExternalContext().getSessionMap().put("passauth","Troin Artis");
            //sessionScope.put("passauth","Troin Artis");
            String passauth = (String) facescontext.getExternalContext().getSessionMap().get("passauth");
            CommonFunctions.debugLog("PASSAUTH: " +  passauth);
            facescontext.getExternalContext().getSessionMap().put("userName", "Troin Artis");
            String uname = (String) facescontext.getExternalContext().getSessionMap().get("passauth");
            CommonFunctions.debugLog("USERNAME: " +  uname);
            String LogInString = "http://lnvusprdevrtp.com/admin/webauthen.nsf/isroles?openagent&reto=http://localhost:9080/ePEP-Web/faces/home1_2.jsp";
            String LogOutString = "htlnvusprdevrtp.com/admin/webauthen.nsf?logout&redirectto=http://localhost:9080/ePEP-Web/faces/home1_2.jsp";
            CommonFunctions.debugLog("USERNAME " + sessionScope.get("userName").toString());
            if( facescontext.getExternalContext().getSessionMap().get("passauth") == null ){
                CommonFunctions.debugLog("Forwarded to LOGIN Page " + LogInString);
                try{
                    facescontext.getExternalContext().redirect(LogInString);
                }catch(Exception e){
                    throw new FacesException(e);
                }finally{
                    facescontext.responseComplete();
        }

    If you want to get object from any scope it is much better to use variable resolver ... = (AbcBean) fescesContext.getVariableResolver().resolveVariable(#{abcBean})
    You can put it similar way (I don't remember now excatly which method :p).
    Look here:
    http://balusc.blogspot.com/2006/06/communication-in-jsf.html#AccessingAnotherManagedBean
    Just put such bean in faces-config.xml and than call it like in jsp pages - with use of EL.
    Furthermore, You try to chceck if someone is logged, right?
    It is much beater and easier to do PhaseListener to check if user is logged and forward his request to login page
    Just look at it:
    http://www.jsfcentral.com/listings/A92000?link
    Edited by: Wierzba on Feb 1, 2008 7:18 AM

  • Putting attribute value from java level into sessionScope variable?

    Hallo,
    is it possible to put an attribute value from java level into a sessionScope variable?
    For example when i'am in prepareSession is it possible to fill a sessionScope variable which i can use in a jspx-Site? And when how i must do it?
    Any help is appreciated.

    At the java level i make this
    private void setUserIdIntoUserDataHashtable() {
    Integer userid = getUserIdForLoggedInUser();
    Integer groupid = getGroupIdForLoggedInUser();
    Hashtable userdata = getDBTransaction().getSession().getUserData();
    if (userdata == null){
    userdata = new Hashtable();
    userdata.put(PBConstants.CURRENT_USER_ID, userid);
    userdata.put(PBConstants.CURRENT_GROUP_ID, groupid);
    And when i at the java level i can use the constants. But i don't have an interaction at this point. Thats why i don't now how to bring the values to a sessionScope variable i need later in a / some sites?

  • Sessionscope variables

    I have an af:table in one .jspx page. When a particular row is selected and a link is clicked, according to the selected row, the second .jspx page should be populated. if no row is selected, second page should not be populated. For that, in the table's selection event i have added following code.
    public void withdrawFromClient(SelectionEvent selectionEvent) {
    if (selectionEvent.getComponent() instanceof RichTable)
    RichTable table = (RichTable)selectionEvent.getComponent();
    System.out.println(table.getSelectedRowData());
    Object obj = table.getSelectedRowData();
    FacesContext fc = FacesContext.getCurrentInstance();
    ValueExpression ve = fc.getApplication().getExpressionFactory().createValueExpression(fc.getELContext(), "#{sessionScope.detail}", String[].class);
    ve.setValue(fc.getELContext(),obj);
    So in the second page, I have referenced values as #{sessionScope.detail.ClientName},#{sessionScope.detail.Address} and so on...So when i click the link, for the first time, the second page appears with blank input text components. If i select a row and click the link, then again i get results i want. but after two, three seconds if i click the link again, i get a null pointer exception. Pls help with this...

    Hi Frank,
    sorry for the long delay. here is the stack trace.
    java.net.SocketException: Software caused connection abort: socket write error
         at java.net.SocketOutputStream.socketWrite0(Native Method)
         at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
         at java.net.SocketOutputStream.write(SocketOutputStream.java:124)
         at weblogic.servlet.internal.ServletOutputStreamImpl.commit(ServletOutputStreamImpl.java:463)
         at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1460)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1415)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <Dec 10, 2008 9:49:20 AM IST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1323da4 - appName: 'MillenniumCSD', name: 'MillenniumCSD-WebInterface-context-root', context-path: '/MillenniumCSD-WebInterface-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@bc5c96[
    GET /MillenniumCSD-WebInterface-context-root/faces/Pages/Withdrawals.jspx?_adf.ctrl-state=1960350222_11 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://127.0.0.1:7101/MillenniumCSD-WebInterface-context-root/faces/Pages/Withdrawals.jspx?_adf.ctrl-state=1960350222_7
    Cookie: JSESSIONID=d1RvJ1Cfm0L6L2T8WXhN5mCqX2wWnjZkTJRSRTLvQ6jYXq7ByRCV!-366637725
    ]] Root cause of ServletException.
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.<init>(JUCtrlHierNodeBinding.java:204)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.<init>(FacesCtrlHierNodeBinding.java:65)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.createNodeBinding(FacesCtrlHierBinding.java:86)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.createRootBinding(JUCtrlHierBinding.java:364)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:79)
         Truncated. see log file for complete stacktrace
    >
    Both socket write error and null pointer exception are fired when you click the link. any ideas......
    Thanks.

  • [BUG]: af:commandButton rendered with requestScope variable doesn't work

    This took me two days to figure out, and I wonder if it is a bug:
    I have a page that can be navigated to on two occassions, let's call them "left" and "right". I want the page to know what side I came from, so I set a requestScope variable on the buttons that navigate to this page, a bit like this:
    <af:commandButton action="toPage">
      <af:setActionListener from="left" to="#{requestScope.sideFrom}"/>
    </af:commandButton>I have two buttons on the page, one is to navigate back to the left and one to navigate back to the right. Only one is rendered, depending on the requestScope.sideFrom variable.
    One says rendered="#{requestScope.sideFrom eq 'left'}" and the other says rendered="#{!requestScope.sideFrom eq 'left'}"
    Only one button works, namely the one for which the rendered property evaluates to true <b>when the button is pressed</b>!! My requestScoped variable doesn't exist anymore when I press the button to navigate back so it's behavior is changed. How weird is that?
    Should I file a bug?
    I refuse to make it a sessionScoped variable and change it back with the return buttons Imho this is what requestScope is for.
    I am on JDeveloper 11.1.1.6

    Wendy,
    To amplify what Timo rightly says: as JSF goes through its merry lifecycle, one of the steps is to rebuild the component tree in memory. When you use the rendered property, that particular component is not in the component tree - it's as if it doesn't even exist according to JSF. Then, when it comes time to deal with events, the event isn't seen or is ignored (I don't know which) because JSF doesn't think that component is present. As Timo also rightly says - this behaviour is why the "visible" attribute was created.
    John

  • How to deploy a VO Bind variable to get value from user session....

    Hello everbody...
    A JSF Page has a table based on VO with two parameters. One of this parameters I will pass by operation ExecuteWithParams.
    but the other parameter I need to pass a value from User session.
    Is that possible? How would I do that? I´m using jdev10.1.3
    Thankyou...

    When you created a binding for executeWithParams in your pageDef, the action binding should have had NamedData elements for each of the parameters. These would have been assigned values from a variableIterator up in the executables section. The parameter that gets its value from user input should be left alone. For the parameter that gets its value from the user session, change the EL expression that defines its NDValue attribute so that it references the session information that you want to use. This can be a sessionScope variable that you set earlier in the session, as Frank suggests, a property of a managed bean in session scope, or some other variable.

  • ADF Lov Value to Scope Variables

    Hi,
    How can i assign sessionScope variable to a bind variable in my VO ?
    I have a project number field and it has an LOV attached. When i select the project from the Input List, Project Id shoud go into #{sessionScope.projectId} variable.
    Please help.
    Thanks,
    Lakshmi.
    Edited by: Lakshmi on Aug 22, 2011 5:44 PM

    Hi,
    Basically you will bind in your action operation in page definition the session property like this:
    <action IterBinding="MyViewGIterator" id="ExecuteWithParams"
    InstanceName="AppModuleDataControl.MyViewG"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="IdParm" NDValue="${sessionScope.projectId}"
    NDType="java.lang.String"/>
    </action>Follow this thead:
    http://andrejusb.blogspot.com/2007/05/executewithparams-in-your-oracle-adf.html

  • [Solved] Nested setActionListener not working correctly.

    Hi,
    I'm having a situation where I have to load some xml and display the values on the screen. The results can be filtered by selecting a value in a selectOneChoice component. Please consider the example below, which is a reproducible scenario, just to show the 'wrong' (?) behavior.
    The ValueChange bean initialize some lists and handles the selection change of the selectOneChoice component on the .jspx page. The onValueChange method will 'filter' the data everytime a selection change. The filterItems method will clear the personItems list and add a new object to the list, depending on the selected value:
    public class ValueChange {
        private List someSelectItems;
        private String selectedValue;
        private List personItems;
        private Person person1 = new Person("1", "Larry", "Ellison");
        private Person person2 = new Person("2", "Bill", "Gates");
        private Person person3 = new Person("3", "Steve", "Jobs");
        public ValueChange() {
         System.out.println(this.getClass() + " Init");
         this.someSelectItems = new ArrayList();
         someSelectItems.add(new SelectItem("1", "Oracle"));
         someSelectItems.add(new SelectItem("2", "MicroSoft"));
         someSelectItems.add(new SelectItem("3", "Apple"));
         this.personItems = new ArrayList();
         this.personItems.add(person1);
        public List getSomeSelectItems() {
         // Fill this list.
         return someSelectItems;
        public void onValueChange(ValueChangeEvent valueChangeEvent) {
         System.out.println("Current Class: ValueChange - Current Method: onDocumentLanguageValueChange");
         if (valueChangeEvent != null) {
             String vValue = valueChangeEvent.getNewValue().toString();
             filterItems(vValue);
        public void setSelectedValue(String selectedValue) {
         this.selectedValue = selectedValue;
        public String getSelectedValue() {
         return selectedValue;
        private void filterItems(String pValue) {
         this.personItems.clear();
         if (pValue.equals("1")) {
             this.personItems.add(person1);
         } else if (pValue.equals("2")) {
             this.personItems.add(person2);
         } else if (pValue.equals("3")) {
             this.personItems.add(person3);
        public void setPersonItems(List personItems) {
         this.personItems = personItems;
        public List getPersonItems() {
         return personItems;
    }The person class is just a simple bean containing some attributes + getters and setters:
    public class Person {
        private String id;
        private String firstname;
        private String lastname;
        public Person(String pId, String pFirstname, String pLastname) {
         this.id = pId;
         this.firstname = pFirstname;
         this.lastname = pLastname;
        public void setId(String id) {
         this.id = id;
        public String getId() {
         return id;
        public void setFirstname(String firstname) {
         this.firstname = firstname;
        public String getFirstname() {
         return firstname;
        public void setLastname(String lastname) {
         this.lastname = lastname;
        public String getLastname() {
         return lastname;
    }On the start page of the example, the selectOneChoice will be rendered + the data matching to the selected item. I'm using a commandLink to open a detail page. The commandLink contains a nested af:setActionListener which should set the whole current person instance to a sessionScope variable. (But his seems to fail.]
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="myPage">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <h:form id="myPageForm">
              <h:panelGrid>
                <af:selectOneChoice id="selectValue" autoSubmit="true" value="1"
                                    valueChangeListener="#{valueChange.onValueChange}">
                  <f:selectItems value="#{valueChange.someSelectItems}"/>
                </af:selectOneChoice>
                <af:panelList partialTriggers="selectValue">
                  <af:forEach items="#{valueChange.personItems}" var="person">
                    <af:commandLink text="#{person.firstname} (#{person.id})"
                                    action="showdetail">
                      <af:setActionListener from="#{person}"
                                            to="#{sessionScope.person}"/>
                    </af:commandLink>
                  </af:forEach>
                </af:panelList>
              </h:panelGrid>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>The detail page should just read the firstname of the person instance on sessionScope, but it always shows the same name.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="myDetailPage">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <h:form>
              <af:panelForm maxColumns="1">
                <af:outputText value="#{sessionScope.person.firstname}"/>
                <af:commandLink text="Back" action="back"/>
              </af:panelForm>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
      <managed-bean>
        <managed-bean-name>valueChange</managed-bean-name>
        <managed-bean-class>be.contribute.valuechange.view.beans.ValueChange</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      <application>
        <default-render-kit-id>oracle.adf.core</default-render-kit-id>
      </application>
      <navigation-rule>
        <from-view-id>/myPage.jspx</from-view-id>
        <navigation-case>
          <from-outcome>showdetail</from-outcome>
          <to-view-id>/myDetailPage.jspx</to-view-id>
        </navigation-case>
      </navigation-rule>
      <navigation-rule>
        <from-view-id>/myDetailPage.jspx</from-view-id>
        <navigation-case>
          <from-outcome>back</from-outcome>
          <to-view-id>/myPage.jspx</to-view-id>
        </navigation-case>
      </navigation-rule>
    </faces-config>I can always send this sample application by mail, just drop a reply or send me a message (koen [dot] verhulst [at] contribute [dot] be )
    JDeveloper 10.1.3.3
    Thanks in advance,
    Koen Verhulst

    It seems that it has something to do with the fact that I set the value of the selectOneChoice to 1.
    <af:selectOneChoice id="selectValue" autoSubmit="true" value="1"
                                    valueChangeListener="#{valueChange.onValueChange}">
                  <f:selectItems value="#{valueChange.someSelectItems}"/>
    </af:selectOneChoice>I modified the value attribute to:
    value="#{valueChange.selectedValue}"Where selectedValue is an attribute in my ValueChange class, containing a default value. Getters and setters are also generated.
    private String selectedValue = "1"When I run the application again, after making these changes, I'm able to pass the correct data to the detail page. But: as soons as I select the 'default value' in the selectOneChoice, no valueChange is detected and thus my data does not gets filtered.
    Since the valueChange instance is a request-scoped bean, a value change is not detected because the current value equals the default value (question: am I right here?).
    Setting the bean to session scope let the example fully works.
    Although it works, I think it should be better to let the bean on request scope and stored a 'selected' value attribute on the sessionScope.
    Thanks,
    Koen Verhulst

  • How do I clear query parameter in Oracle 10g ADF

    HI ,
    My question is
    1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
    so . How do i trace whether I am comming from menu or comming from Page A ..??
    2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
    its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
    in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
    so how to clear query parameter

    [email protected] wrote:
    HI ,
    My question is
    1. when i am navigating to page B from Page A its querying data and showing . And I have same Pgae B which is attached to Menu also
    so . How do i trace whether I am comming from menu or comming from Page A ..??Add a setActionListner and set a sessionscope variable according to the action?
    >
    2. if i moved to page A and searched with some criteria , after then I moved to Page B from Menu , again come back to Page A from Menu
    its retaining the old search criteria in the page . not clearing my search criteria . ( as a result what is happening its not showing the data whatever
    in the Table ) . In order to show my existing data , i need to clear and then again clicking page B in Menu then only its showing the data .
    so how to clear query parameter

  • Refresh UIX Page from DataForwardAction

    Version: JDeveloper 9.0.5
    How would I go about refreshing my uix page after returning from a Struts DataForwardAction?
    Why do I want to do this? I am setting a session variable based upon some code in the DataForwardAction. I have a button on the uix page that reads the value of the sessionScope variable and is either rendered or not rendered on the page. Currently, the design works, with the exception that I have to click the browser refresh in order for my page to read the new value on the session.
    Any help will be greatly appreciated.
    Thanks,
    Connie

    Steve,
    Thanks for asking!
    My uix page has the following code:
    <tableSelection>
      <singleSelection model="${bindings.MyViewIterator}" >
         <!--     <primaryClientAction>
           <firePartialAction targets="_uixSate" source="MyView139" event = "select" />
         </primaryClientAction>-->
         <primaryClientAction>
           <firePartialAction targets="_uixSate" source="MyView139" event = "rowSelect" />
         </primaryClientAction>
         <contents>
            <submitButton id="PageUpdateBtn" name="PageUpdateBtn" text="Update" event="update" rendered="${sessionScope.RenderPageUpdateBtn" />
            <submitButton id="PageReviewBtn" name="PageReviewBtn" text="Update" event="update" rendered="${sessionScope.RenderPageReviewBtn" />
            <submitButton text="Delete" model="${bindings.Delete}" id="Delete8" event="action" rendered="${sessionScope.RenderDeleteBtn}"/>
         </contents>
       </singleSelection>
      </tableSelection>My DataForwardAction has the following code:
    public void setSelectedRow(DataActionContext ctx) {
      JUIteratorBinding iter = (JUIteratorBinding)ctx.getBindingContainer().findIteratorBinding("MyViewIterator");
    int iterRow = Integer.partseInt(ctx.getHttpServletRequest().getParameter("MyView139:selected"));
      iter.setCurrentRowIndexInRange(iterRow);
    public void onRowSelect(DataActionContext ctx) throws Exception{
      setSelectedRow(ctx);
       //code to determine how to set buttons
       // if have ability to update this record then
       session.setAttribute("RenderPageUpdateBtn","true");
       session.setAttribute("RenderPageReviewBtn","false");
       session.setAttribute("RenderDeleteBtn","true");
       // else
       session.setAttribute("RenderPageUpdateBtn","false");
       session.setAttribute("RenderPageReviewBtn","true");
       session.setAttribute("RenderDeleteBtn","false");
    }Any ideas?
    Thanks!
    Connie

  • Process train - doesn't navigate backwards

    I'm using JDev10.1.3.3, and I am trying to implement an 8 node multipage process train. The problem is it will sequential move forward through the nodes, but never back. I'm using the default "PlusOne" scenario, so I'm expecting that I can move back, for example: node1 to node 2 to node3 back to node 2. I have navigation rules for the forward and the back for all 8 jspx pages. I've re-read the framework tutorial a few times and I'm following it closely. It says the default JSF actionListener mechanism uses the outcome values to handle page navigation, so what am I missing? Where does it recognize the back outcome if the forward actions are in the managed bean? Any help is much appreciated!

    I apologize for not mentioning the version. Yes, I am using Jdeveloper 10.1.3 for this test case.
    What I am trying to achieve:
    I have a startup page which is used to call the application. Depending on the logic based on the Parameters passed, I need to navigate to a selective page.
    I have several sessionScope variable in the application-version on production. I wish to convert these to processScope variables to resolve the confliction of multple calls to the application from the same machine/ browser.
    Some additional information I missed out to mention:
    If we navigate with the navigate() method, the processScope value will persist. I tried adding a javascript to pg1 to auto navigate. This worked fiine too.
    <script type="text/javascript">
    function navBtnAct() {
    var evnt4Comp = document.all('btn1');
    var newEvt = document.createEventObject();
    try {
    evnt4Comp.fireEvent("onclick", newEvt);
    } catch (e) {
    alert('error '+e.description);
    </script>
    <afh:body onload="navBtnAct();">
    However I would be happy to find a solution for redirect() as this would reduce some of juggling work

  • Passing large input from ADF taskflow to servlet

    Hi,
    Using JDeveloper 11.1.1.4.
    We have an application where we need to render dynamic content on the page so we are using a popup window with an inline frame component which calls a servlet that provides the content. This is working fine otherwise but on some views one of the parameters for the servlet comes from a free-form text field which can potentially contain pages of text that we want to include in the dynamic content. This won't fit in a normal URL parameter, so what would be the best practice solution for passing the required input to the servlet in this case?
    Regards,
    Joonas

    Hi Frank,
    Yes, I can access the session from the servlet. I did some tests with this and it seems that if I store the text straight to session scope (af:richTextEditor value=#{sessionScope.variable}), the servlet can access it just fine no matter how long the text. If I first store the text to pageflow scope variable (since it is used elsewhere and I wouldn't want to refactor the taskflows) and then try to copy it to session scope via f:setPropertyActionListener, the servlet fails silently if the text is longer than a few paragraphs. Any idea why this is happening? A limitation of setPropertyActionListener?
    Thanks,
    Joonas

  • Appending to a string in c:if

    I am trying to do something along the lines of this:
    <c:if test="${ 'dueDateEqualsTodaysDate_<c:out value="${product.productId}"/>' == 'TRUE'}">
    meaning I am trying to search to see if the variable dueDateEqualsTodaysDate_1489 is true, but the syntax is wrong (or maybe the structure is wrong as I'm not quit sure how to do it.
    Any help please?
    Message was edited by:
    chet0264

    You can't use custom tags inside attributes of another custom tag.
    If you want to nest the expression like this, I think you will have to break it up a little
    <c:set var="dueDateProduct" value="dueDateEqualsTodaysDate_${product.productId}"/>
    <c:if test="${requestScope[dueDateProduct] == 'TRUE'}">
    </c:if>You will have to specify which scope the dueDateEqualsTodaysDate_xxx is in.
    Is it in page, request or session scope? use pageScope, requestScope, or sessionScope variables appropriately (I assumed request scope in my example)

Maybe you are looking for

  • Report without a selection-screen, just a dynpro

    Hi experts, I wrote a small report, which reads out a file. After this I want to display it in a tablecontrol of my dynpro. In the dynpro there is a button to push the data of the tablecontrol in the R/3 via BDC. Now I have the problem of a automatic

  • THIS WILL SOLVE YOUR IPOD UPDATE PROBLEM (HOPEFULLY...)

    I checked this out, did what he said, and it worked perfectly. GKE, "Ipod update freeze, firewire problem, possible fix for many.", 10:46am Oct 9, 2005 CDT

  • Plugging in new iPod to filled iTunes?

    i'm about to recieve my replacement ipod, and i'm hoping that all it will take to fill the new ipod back up with all my files is the simple connection to the computer/having iTunes running as normal. i want to make sure that this will not delete my i

  • Oracle backup to networked disk (Windows)

    I'm trying to back up my database to a Windows share. Currently, Oracle is running under the SYSTEM account, in a two node cluster that uses Fail Safe. I know it should be running as Administrator, but when I set the service to run as Administrator,

  • APP TO TRACK DATA USAGE FROM EACH APP

    Guys, i am experiencing the same. My data package got over, and i took time to recharge ( 4 days). And during these 4 days, my phone battery was amazing, i used to charge it once in 2 days. Im sure there is some app that uses data extensively that sc