Double Page Load on call javascript method

I have implemented a tree component(which I have the folders). When I clic on the tree I have to expand or close it, so I have implemented a javascript method on clic:
<af:tree value="#{bindings.OpcionesPadreView1.treeModel}" var="node"
rowSelection="single" id="t1"
partialTriggers=":::cbNuevCpta :::dlCfr"
selectionListener="#{pageFlowScope.GestionDocumentos.buscarDocumentos_SelectionListener}">
<af:clientListener method="expandTree" type="click"/>
<f:facet name="nodeStamp">
<af:outputText value="#{node.Gesdopcach}" id="otOpc"/>
</f:facet>
</af:tree>
<af:table value="#{bindings.ArchivosView.collectionModel}" var="row"
rows="#{bindings.ArchivosView.rangeSize}"
rowBandingInterval="0" id="tArch" shortDesc="Documentos"
partialTriggers=":::dlCfr :::cbOk ::t1"
disableColumnReordering="true"
binding="#{pageFlowScope.GestionDocumentos.tarch}">
</af:table
I also need a selectionListener on Java, because When I clic on the tree( that are folders), I have to bring the documents according to the folder selected into the table, so I have implemented this:
public void buscarDocumentos_SelectionListener(SelectionEvent selectionEvent) {
String codigoOpcion = null;
RichTree tree = (RichTree)selectionEvent.getSource();
RowKeySet rowKeySet = selectionEvent.getAddedSet();
Iterator rksIterator = rowKeySet.iterator();
while (rksIterator.hasNext()) {
List key = (List)rksIterator.next();
CollectionModel collectionModel = (CollectionModel)tree.getValue();
JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
JUCtrlHierNodeBinding nodeBinding = treeBinding.findNodeByKeyPath(key);
Object[] atributeValues = nodeBinding.getRow().getAttributeValues();
codigoOpcion = (String)atributeValues[0];
Map params = new HashMap();
params.put("PV_CODREF",codigoOpcion);
params.put("PV_CODROL", LoginBean.getUser().getRolActual());
Map permisos = new HashMap();
permisos.put("PV_CODOPC",codigoOpcion);
permisos.put("PV_CODROL",LoginBean.getUser().getRolActual());
executeOperationBinding(EXECUTE_FILES, params);
executeOperationBinding(EXECUTE_PERMISOS, permisos);
The problem I have is that when I clic on the folder in the tree, the table is fetching the documents twice(like a doble page load). This doesn't happen when my clientListener is of type "selection", but with "selection" I have problems to close the tree.

Here is an example, let me know if it needs explanation.
Private Sub RSWVBAPage_afterPlay()
Dim doc As HTMLDocument
Set doc = RSWApp.om.GetTopDocument
doc.parentWindow.execScript "MyJavascriptFunction();", "javascript"
Set doc = Nothing
End Sub

Similar Messages

  • Can a page On Load process call Javascript API?

    I am trying to use $s_Hide for some page items when the page loads. Can an 'On Load' page process call $s_Hide API? if yes, share code example please?! If not, what is the right way to accomplish it?
    Thanks,
    Yivon, Newbie in JAVA

    Normaly, you can put this script into the region footer. However, you can wrap it into a PL/SQL block like in this example:
    http://apex.oracle.com/pls/otn/f?p=31517:170
    See the code explanation Step Nr. 4.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Call JavaScript method

    Is it somehow possible to call a JavaScript method on a page that I have recorded? I've been looking through the VBA objects but can't see anything appropriate.
    Anyone get any ideas?
    Thanks,
    Phil

    Here is an example, let me know if it needs explanation.
    Private Sub RSWVBAPage_afterPlay()
    Dim doc As HTMLDocument
    Set doc = RSWApp.om.GetTopDocument
    doc.parentWindow.execScript "MyJavascriptFunction();", "javascript"
    Set doc = Nothing
    End Sub

  • Applet fails to call Javascript methods

    I'm trying to implement round-trip javascript to Java to Javascript using LiveConnect, and having a lot of trouble in Firefox. It works perfectly in IE 6. In Firefox, I can successfully call a method of an applet, and get a return value. I have not been able to get the applet to call a Javascript method. I have tried using both the call and eval methods of the JSObject with no luck. Below is my code. Any suggestions would be appreciated.
    Thanks.
    import java.applet.Applet;
    import java.awt.*;
    import netscape.javascript.*;
    public class test extends Applet {
         String message="Hello Universe!";
         JSObject proxy;
         public void paint(Graphics g) {
              g.drawString(message, 20, 20);
         // pass in ref to JS object on which to call method
         public Boolean handshake(JSObject jso) {
              proxy = jso;
              // try just calling straight eval
              proxy.eval("alert('eval')");
              // set up args object to pass to js method
              Object[] args = new Object[1];
              args[0] = "handshake";
              // call method of js object 2 different ways
              proxy.call("callback", args);
              proxy.eval("o.callback('eval')");
              return true;
         // update java display to show JS to J communication
         public void setMessage(String message) {
              this.message = message;
              repaint();
    <html>
    <head>
         <script>
              // js object to receive calls from applet
              function obj() {};
              obj.prototype = new Object();
              obj.prototype.callback = function(arg) {
                   alert("callback: " + arg);
              function doit() {
                   var a = gebi("myApplet");
                   a.setMessage("Goodbye World!");
                   o = new obj();
                   // test that js method works (it does)
                   o.callback("local");
                   // call applet method which should call back to js method
                   var there = a.handshake(o);
                   // show return value from applet method call
                   alert("there: " + there);
              window.onload = doit;
         </script>
    </head>
    <body>
         <applet
              id="myApplet"
              code="test"
              width="400"
              height="50"
              mayscript="mayscript">
         </applet>
    </body>
    </html>Results:
    In both IE and Firefox, the string shown by the applet switches to "goodbye world", the local call to the callback function works, and the call to handshake returns true.
    That's all that works in Firefox.
    In IE, the various calls to the callback method, and to the alert method of the Javascript all work.
    The results are the same whether I run the HTML page as a local file, or through IIS.
    I have also noticed that Firefox seems to hang up, crash, and just have a lot of problems dealing with this code.
    Finally, I am running all of this on XP professional SP1 with J2SE 1.5.0_04-b05 and Firefox 1.07

    Hi,
    Thanks for all your replies. Does this work on Java 5 too? Could you please share the complete code snippet which makes it work? I tried working on yours but no success.
    Regards,
    Alok

  • How call javascript method from parent window to iframe

    hi....
    i need to call javascript a method which located in iframe..
    in my java script file i used like this.
    window.frames[0].getHtml();
    it will working in IE but mozilla is not supporting
    pls help me..
    thanks
    Edited by: fsfsfsdfs on Nov 7, 2008 1:02 AM

    Sorry, Javascript is not Java and for sure not JSF.
    Repost the question at a forum devoted to Javascript.
    There are ones at [webdeveloper.com|http://www.webdeveloper.com] and [dynamicdrive.com|http://www.dynamicdrive.com].
    I can give you at most one hint: [DOM reference|https://developer.mozilla.org/en/DOM].
    Good luck.

  • Calling javascript method from java

    Hi this is sri,
    I have one doubt on Java Applets "how to call the javascript method from java Applet".Can u give me the complete sample code for one program(both java applet file and html file also)because i can easily understand the programming flow.
    Thanks ,
    Srilekha.

    It's an extremely important skill to learn how to search the web. Not only will it increase your research and development talents, it will also save you from asking questions that have already been answered numerous times before. By doing a little research before you ask a question, you'll show that you're willing to work and learn without needing to have your hand held the entire time; a quality that is seemingly rare but much appreciated by the volunteers who are willing to help you.
    If you've done the research, found nothing useful, and decide to post your question, it's a great idea to tell us that you've already searched (and what methodologies you used to do your research). That way, we don't refer you back to something you've already seen.
    To get you started, here's a link...
    http://www.google.com/search?q=call+java+from+javascript

  • Call Javascript methods from Java methods

    Dear All,
    I have a requirement where I need to invoke Javascript methods from a Java file located in the same machine. Are there any possible solutions for this?
    Regards,
    Alok

    Hi,
    Thanks for all your replies. Does this work on Java 5 too? Could you please share the complete code snippet which makes it work? I tried working on yours but no success.
    Regards,
    Alok

  • Call JavaScript-Method from Command in NW04s WebApplication

    Hi,
    I would like to use a command to call a JavaScipt-method. Is that possible?
    I want to use a JavaScript generated from the following command as an ACTION_BEFORE_RENDERING-event.
    <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" >
      <bi:WEB_TEMPLATE_ACTIONS type="COMPOSITE" >
        <bi:ACTION_BEFORE_RENDERING type="COMPOSITE" >
          <bi:INSTRUCTION >
            <bi:SET_ITEM_PARAMETERS >
              <bi:cmd_item_parameters type="TEMPLATE_INCLUDE_ITEM" >
                <bi:TEMPLATE value="AIS_ANZEIGE_BETRIEB_NW_04" text="Stammdatenanzeige für Betrieb NW 04" />
              </bi:cmd_item_parameters>
              <bi:TARGET_ITEM_REF value="TEMPLATE_INCLUDE_ITEM_2" />
            </bi:SET_ITEM_PARAMETERS>
            <bi:SET_SELECTION_STATE_SIMPLE >
              <bi:TARGET_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" >
                <bi:TARGET_DATA_PROVIDER_REF index="1" value="DP_2" />
              </bi:TARGET_DATA_PROVIDER_REF_LIST>
              <bi:CHARACTERISTIC value="AISIS003___F00069" text="" />
              <bi:RANGE_SELECTION_OPERATOR type="CHOICE" value="EQUAL_SELECTION" >
                <bi:EQUAL_SELECTION type="CHOICE" value="MEMBER_NAME" >
                  <bi:MEMBER_NAME value="17630775" />
                </bi:EQUAL_SELECTION>
              </bi:RANGE_SELECTION_OPERATOR>
            </bi:SET_SELECTION_STATE_SIMPLE>
          </bi:INSTRUCTION>
        </bi:ACTION_BEFORE_RENDERING>
      </bi:WEB_TEMPLATE_ACTIONS>
    </bi:TEMPLATE_PARAMETERS>
    I want to assign a new WebTemplate to an included WebTemplate and also assign a filter value to the new loaded DataProvider.
    It works as a command, but I only want the new WebTemplate to be loaded, if the corresponding filter is set. Otherwise I want to load a different WebTemplate. I think I have to use JavaScript here, but I don't know how to link that to the ACTION_BEFORE_RENDERING-event.
    Any ideas?
    Thanks in advance.
    Denis

    Sorry, Javascript is not Java and for sure not JSF.
    Repost the question at a forum devoted to Javascript.
    There are ones at [webdeveloper.com|http://www.webdeveloper.com] and [dynamicdrive.com|http://www.dynamicdrive.com].
    I can give you at most one hint: [DOM reference|https://developer.mozilla.org/en/DOM].
    Good luck.

  • Call JavaScript method in FXML from java controller

    I have fxml like
       <fx:root type="javafx.scene.Group" xmlns:fx="http://javafx.com/fxml">
        <fx:script>
            function applyState(oldState, newState)
        </fx:script>   
        ....and controller to it.
    The idea is to move some view logic to fxml file.
    So, when I need to change some view state, I want to call applyState from java code.
    The question is how to do it.
    What I have found:
    We can get
    fxmlLoader.getNamespace().get("applyState")and receive sun.org.mozilla.javascript.internal.InterpretedFunction.
    NetBeans see this class. But while building the project i have an error
    error: package sun.org.mozilla.javascript.internal does not exist
    But this class really exists in rt.jar in JRE.
    After that I have stopped digging into this.
    I suspect that using internal API is not a good idea to call this InterpretedFunction.
    Can somebody suggest how can I make such an invocation?
    Edited by: 940811 on Nov 19, 2012 11:21 PM

    Until JavaFX doesn't expose the ScriptEngine instance of FXMLLoader, there's no way to communicate (Java <-> Javascript) with the <fx:script>.
    But, if you want to rely on a hack, you can do this:
        private ScriptEngine extractScriptEngine(FXMLLoader loader) {
            try {
                Field fse = loader.getClass().getDeclaredField("scriptEngine");
                fse.setAccessible(true);
                return (ScriptEngine) fse.get(loader);
            } catch (IllegalAccessException | NoSuchFieldException | SecurityException ex) {
                Logger.getLogger(BrowserFXController.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }

  • af:serverListener not fired on a jspx page load

    Hi,
    I'm using JDeveloper 11g Update 1.
    I would like to fire a serverListener on a jspx page load.
    The javascript method that i'm using is fired while the server listener is not fired.
    Here's the code.
    <pre>
    //In my jspx
    <af:document title="Page Title" clientComponent="true">
    <af:clientListener method="fireServerListener" type="load"/>
    <af:clientAttribute name="serverListenerType" value="serverMethod"/>
    <af:serverListener type="serverMethod" method="#{myBean.serverMethod}"/>
    <f:facet name="metaContainer">
    <trh:script source="js/lib.js"></trh:script>
    </f:facet>
    //In lib.js
    function fireServerListener(event){
    var source = event.getSource();
    var immediate = this._immediate;
    var params = {};
    var srvLstnrType = source.getProperty("serverListenerType");
    AdfCustomEvent.queue(source, srvLstnrType, params, immediate );
    //In my bean
    public void serverMethod(ClientEvent clientEvent) {
    System.out.println("serverMethod() is called");
    </pre>
    Please, give any ideas how to resolve it.
    Best Regards,
    JavaDeVeLoper

    Hi Frank,
    I've tried what's suggested. I've placed the trh:script at the bottom of the page.
    The server listener in this piece of code at the bottom is fired, but in my case the problem (to fire a server event on body load) still exists.
    <pre>
    <af:commandButton text="Button" partialSubmit="true" clientComponent="true">
    <af:clientListener method="fireServerListener" type="action" />
    <af:clientAttribute name="serverListenerType" value="serverMethod" />
    <af:serverListener type="serverMethod"
    method="#{myBean.serverMethod}"/>
    </af:commandButton>
    </pre>
    Any suggestions :)
    Best Regards,
    JavaDeVeLoper

  • How to Set icon/image programatically in ADF before page loads

    This is my UI:
    Depends on the condition i want to set icon/image programatically in my java code.Before page load im calling this method.
    So i couldnt take binding value also,it throws null pointer exception.Then i tried setting icon/image programatically.
    <af:commandImageLink text="settings" icon="#{bean.iconsettings}" binding="#{bean.bind}"> </af:commandImageLink>
    My bean:
    private RichIcon iconsettings;(its getters and setters)
    private void method(){                         // method
    if(cond){
    this.iconsettings="/images/20.jpg";   //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
    else
    this.iconsettings="/images/19.jpg";
    Could any one tell me how can i set icon/image in java code.Before page loads im performing all above said tasks.Please help.

    Well, you set the icon property to a bean method, which you have done. The bean method however need to have the signature
    public String getIconsetting()
    // your code returning hte path to the icon
    if(cond){
         return ="/images/20.jpg";   //trying to set icon in a string.but it throws me error that cannot set RichIcon to string.
    else {
         return ="/images/19.jpg";
    The bindproperty is not needed, remove it and remove the RichIcon Iconsettings too´as it's not needed to and is the wrong type anyway.
    Timo

  • Method called at page load time of jspx page

    I am using the jdeveloper11.1.1.1.0 version.
    is there any method that is called at page load time. in this method i need to apply the set where clause on view object and some more functionality i need to add here.in ADf life cycle , is there any method like init() ?
    Sailaja

    you would have implement PagePhaseListener and extend this from your backing bean class..
    package view.controller;
    import oracle.adf.controller.v2.context.PageLifecycleContext;
    import oracle.adf.controller.v2.lifecycle.Lifecycle;
    import oracle.adf.controller.v2.lifecycle.PagePhaseEvent;
    import oracle.adf.controller.v2.lifecycle.PagePhaseListener;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.binding.BindingContainer;
    public class CustomPagePhaseListener implements PagePhaseListener  {
         * Before the ADF page lifecycle's prepareModel phase, invoke a
         * custom onPageLoad() method. Subclasses override the onPageLoad()
         * to do something interesting during the
         * @param event
        public void beforePhase(PagePhaseEvent event) {
          PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
          if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
            bc = ctx.getBindingContainer();
            onPageLoad();
            bc = null;
         * After the ADF page lifecycle's prepareRender phase, invoke a
         * custom onPagePreRender() method. Subclasses override the onPagePreRender()
         * to do something interesting during the
         * @param event
        public void afterPhase(PagePhaseEvent event) {
          PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
          if (event.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
            bc = ctx.getBindingContainer();
            onPagePreRender();
            bc = null;
        public void onPageLoad() {
          // Subclasses can override this.
        public void onPagePreRender() {
          // Subclasses can override this.
      }add your backing bean class as controllerClass in the corressponding pageDef <pageDefinition....> tag.
    ControllerClass="#{backingBeanScope.backing_YourBackingBean}"
    in your backing bean add pageload method like below and put your code (this method being called when the page loads...)
    public void onPageLoad() {
    Edited by: puthanampatti on Sep 30, 2009 2:33 PM

  • Call Java Method on Commanlink action without page refresh

    Hi,
    I have a radio button in my application which on click calls a new JSP page inside DIV tag of the same JSP. Now before calling that JSP Page i want to perform some functionality . So i placed a commandlink on radio like this -
    <h:commandLink action="#{controller.deleteData}">
         <h:selectOneRadio id="licenseType" layout="lineDirection" value="#{controller.licenseType}" onclick="javascript:getServerInfo();">
                 <f:selectItem itemValue="#{dataTableItem}"/>
         </h:selectOneRadio>
    </h:commandLink> What I am looking for is that when a user clicks on Radio, first a Java method named deleteData() is called and then onclick() event of Radio is processed which loads a new JSP Page inside DIV tag beneath the radio button.
    But what happens is that as i click on Radio, command link takes precedence and refreshes the page.
    Is it possible for commanlink to just call the method and don't refresh or reload the page ????
    Plz assist with some code example

    Thanks Milind..... :-)
    I've not tried it as yet but i guess it would wok for radio.
    Is there any such event available for command link or command button too.... in which i just call the method on click and the page may not refresh ?
    Would "actionListener" event like this -
    <h:commandLink actionListener="#{controller.getsaveData}">call a java method and refresh the page or just call the method and leave the page as it is.
    If thats possible can u assist with some code examples ???
    USAGE :_ Actually I have a commandLink on which I have put a graphic Image "Submit" and on clicking of this image I just want the java method to be called but the page should not refresh or reload. Here is the code -
    <h:commandLink actionListener=" action="#{controller.getsaveData}">
                      <h:graphicImage url="/IMAGES/save_changes.JPG" height="27"
                                      width="136"/></h:commandLink>{code}
    Can u assist me with this Plz.{code}{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hide Page Controls on Page Load with JavaScript

    Good Morning, I am trying to use a peice of code that I found on another thread:
    HTML Header
    <script language="JavaScript1.1" type="text/javascript">
    function setDisabled(PageItem) {
    document.getElementById(PageItem).style.visibility = "hidden"
    </script>
    HTML Body Attribute
    onLoad="javascript:setDisabled('P36_COMMS1_0');
    The code works if I change the "onLoad" to "onClick" and click the control. But when I use it as written, it doesn't trigger when the page loads. Does anyone have any ideas?
    Here is the original thread: http://forums.oracle.com/forums/thread.jspa?messageID=2760790&#2760790, but the thread didn't really relate to my question.
    Donald

    Hi Donald,
    As the code is within a function block it is has to be called by something when the page loads.
    The simplest method would to be ensure that you have a piece of javascript at the bottom of the page (ie, underneath the function and the field it refers to):
    &lt;script type="text/javascript"&gt;
    setDisabled('itemname');
    &lt;/script&gt;When the browser loads this piece, because you haven't wrapped it within a function block, the code is executed immediately (hence needing to be loaded after the function and the field).
    Andy

  • ADF ProcessScope -- I get a new AdfFacesContext on each page load

    I am trying to store some variables in the ADF processScope. But the next time the page is loaded and calls the managed bean methods, the AdfFacesContext is different, and so the processScope is empty. The managed bean is session scope, and I am setting the processScope variables in the bean's Java code.
    In particular this happens when I click on the af:table pagination links, e.g. the "next 25".
    How can I get access to the same AdfFacesContext (and therefore the same processScope) the next time the page loads and calls the managed bean?
    I am using JDeveloper 10.1.3.3.0.
    Here is the example code, and the output that is produced from my System.out.println statements:
    ========== Controller.java (session scope managed bean) ===============
    package adfproject;
    import java.util.Map;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import oracle.adf.view.faces.context.AdfFacesContext;
    public class Controller {
    private List<Map> list = new ArrayList<Map>();
    private String label;
    private static int counter;
    public Controller() {
    // initialize list with Map objects
    for ( int i = 1; i<10 ; i++) {
    Map map = new HashMap();
    map.put("A","first column");
    map.put("B", "row " + i);
    list.add(map);
    // called from JSP to initialize the ECO bean
    public String getLoad() {
    printAdfProcessContext("in getLoad");
    // get value from current process scope
    String currentLabel = (String)getProcessAttribute("LABEL");
    // print currentLabel
    System.out.println("current LABEL = "+currentLabel);
    // if currentLabel null, build new one with counter, incr counter
    if (currentLabel == null) {
    label = "xyz " + ++counter;
    System.out.println("new LABEL: "+label);
    // remember the current label in the process scope, and in member
    setProcessAttribute("LABEL",label);
    return ""; // empty string so nothing is displayed on web page
    public static void printAdfProcessContext(String label) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    System.out.println("============ "+label+" ===========");
    System.out.println("AdfFacesContext = "+afCtx);
    Map ps = afCtx.getProcessScope();
    System.out.println("Process scope = "+ps);
    * Get attribute from ADF "processScope".
    * This is a special scope provided by ADF which is in between Session
    * and Request.
    * @param name attribute name
    * @return
    public static Object getProcessAttribute(String name) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    return afCtx.getProcessScope().get(name);
    * Add or overwrite attribute in ADF "processScope".
    * This is a special JSF "scope" provided by ADF Faces which is somewhere
    * between Session scope and Request scope. It can be accessed in JSF
    * pages using the EL expression #{processScope.myAttribute}.
    * @param name attribute name
    * @param value attribute value
    * @return
    public static void setProcessAttribute(String name, Object value) {
    AdfFacesContext afCtx = AdfFacesContext.getCurrentInstance();
    afCtx.getProcessScope().put(name,value);
    public String getLabel() {
    return label;
    public List<Map> getList() {
    return list;
    ============= jsftest.jsp =====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head title="ADF Context Test">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    </afh:head>
    <afh:body>
    <h:form>
    <af:outputText value="#{controller.load}"/>
    <h:panelGrid columns="2">
    <af:outputLabel value="LABEL"/>
    <af:outputText value="#{controller.label}"/>
    <af:outputLabel value="Map"/>
    <af:table emptyText="No items were found" value="#{controller.list}"
    var="row" rows="4">
    <af:column sortable="false" headerText="A" formatType="text">
    <af:outputText value="#{row.A}"/>
    </af:column>
    <af:column sortable="false" headerText="B" formatType="text">
    <af:outputText value="#{row.B}"/>
    </af:column>
    </af:table>
    </h:panelGrid>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    ================= Console Output when page loads initially ==================
    08/09/03 15:27:18 ============ in getLoad ===========
    08/09/03 15:27:18 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@101751
    08/09/03 15:27:18 Process scope = ProcessScopeMap@7009019[_map={}, token=null,children=null]
    08/09/03 15:27:18 current LABEL = null
    08/09/03 15:27:18 new LABEL: xyz 1
    ======= Console Output when I click the "next 4" link on the table, and the page reloads ========
    08/09/03 15:32:42 ============ in getLoad ===========
    08/09/03 15:32:42 AdfFacesContext = oracle.adfinternal.view.faces.context.AdfFacesContextImpl@16bf9ce
    08/09/03 15:32:42 Process scope = ProcessScopeMap@31287037[_map={}, token=null,children=null]
    08/09/03 15:32:42 current LABEL = null
    08/09/03 15:32:42 new LABEL: xyz 2
    ====== Comments =========
    As you can see above, the AdfFacesContextImpl object has changed, so I have lost the ProcessScopeMap.
    Also, on the displayed page, the label is still "xyz 1" instead of changing to "xyz 2".
    Thanks for your help,
    JbL

    Thanks for the idea, Murph.
    I didn't need a session scope bean, request would be fine, I just was trying to make something work that would allow me access to the process scope attributes. I want to allow multiple browser windows searching on different objects independently, so I don't want to use session scope.
    I tried removing the variable declaration and setting/getting the processScope attribute in the setter/getter methods, to make the process scope attributes independent of the managed bean. But each time the page loads (by clicking the table navigation links), I still lose the process scope attributes. I tried with both session and request scope beans. Either way, in the getLoad() method, when I try to get the label from the process scope (using the new version of getLabel()), it is null.
    So the root problem is still there.
    For continued discussion on this more specific problem, see my separate thread "JSF ProcessScope attribute missing on page reload from af:table pagination"
    at JSF ProcessScope attribute missing on page reload from af:table pagination

Maybe you are looking for