Adf jdev10:  self refresh of EO

how it is that EO cache is refreshed with new values from database after few reads?
What's more, EO cache is refreshed every time I get it through an association.
?

Hi,
I am asking something I experienced.
(I describe it here : ADF jdev10: self refresh of EO
I was looking for an answer I Developer's Guide, but with no result.
Bart

Similar Messages

  • Is there a way to force adf to not refresh the page after a certain action?

    Hi Adf'rs
    Another question for ya.
    I'm not sure how possible this is? But I have piece of javascript code that runs after the adf page is loaded. I then execute something in my javascript when the user cliciks a NON ADF button (just an html button). At that point, adf is refreshing the entire page even though I don't want it to. Is there a way to tell adf not to do this?

    Hi Puthanampatt,
    Thank you soooo much!! That did the trick!! Now, when I submit my javascript, it only refreshes the components that my javascript manipulates, and that container does not reload!!!
    Thanks again!!!

  • Keep filter in adf richtable after refreshing

    Hi,
    i use jdeveloper 11g (11.1.1.0.1) with toplink (no ADF BC) and have the following Problem:
    I have a table with enabled builtin filtering. If i filter the data and make a refresh the filter is gone. The refresh is achieved by a call to the Execute-Method of the according Iterator. I played around with the Refresh-option of the SearchRegion but nothing helps.
    Any ideas?
    Thanks in advance,
    Friedrich

    Hi,
    Try and add an af:inputText component to the "filter" facet of the column. Then bind this field value property to a managed bean variable to store and hold the filter data. I think this should work
    Frank

  • ADF Gantt Chart refresh on drag and drop not working

    Hi All,
    I am using jDev 11.1.1.6.
    I have a bounded task flow with two page fragments. On the first fragment, I have some filters and on the second fragment I show the Gantt Chart.
    I have a data change listener associated to it. When I move a task from one time to the other, the data change listener is invoked and I can see that the database values are also updated with the new time values.
    But, after the refresh the task still shows up on its old time period and not the new one. But, if I open the application again as a fresh one, it shows up in the new time period.
    I have tried refreshing the iterator within the data change listener but it still doesn't work and the gantt chart in not getting updated instantly.
    Need help.
    Thanks in advance,
    Ankit

    Hi All,
    I raised a SR for this and the analyst filed a defect. The bug number is "Bug 18195263 : ADF GANTT CHART NOT UPDATED PROPERLY WHEN MOVING A TASK".
    As a workaround, I am manually refreshing the child rows after calling the update DB procedure (Procedure that updates the start date and end date).
    //Get the Master View
    ViewObjectImpl empVO = this.getemployeeList1();
    Row[] grpRow = empVO.findByKey(new Key(new Object[] { empNo }), 1); 
    // Get Child Rows using ViewLink Accessor
    if(grpRow.length>0){
    RowSet childRows = (RowSet)grpRow[0].getAttribute("empTasksView"); 
    //Execute Child Rowset
    childRows.executeQuery(); 
    Thanks,
    Ankit

  • ADF chekbox is refreshing and get unclicked on clicking

    Hi all,
    JDEV 11.1.2.1.0
    i am using a fragment in which i use a drag drop a table and then i manually create 1 more column in which i use check box, BUT whenever i clicked on this check box AT RUN TIME then it just refreshes and get
    UNCLICKED ... then again if i click on it then it works .....
    why should i click on it two times ?
    please provide me an easiest solution of it.
    THANK YOU.

    This table that i am using, problem that we talk about i mentioned bellow....
    <af:table value="#{bindings.AdAgmastApprovalView1.collectionModel}" var="row"
                    rows="#{bindings.AdAgmastApprovalView1.rangeSize}"
                    emptyText="#{bindings.AdAgmastApprovalView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                    fetchSize="#{bindings.AdAgmastApprovalView1.rangeSize}" rowBandingInterval="0"
                    selectedRowKeys="#{bindings.AdAgmastApprovalView1.collectionModel.selectedRow}"
                    selectionListener="#{bindings.AdAgmastApprovalView1.collectionModel.makeCurrent}" rowSelection="single"
                    id="t1" width="980" inlineStyle="height:130px; border-style:none;">
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Mark.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Mark.label}" id="c13" width="43">
              <f:facet name="header">
                <af:selectBooleanCheckbox id="sbc2" text="All" binding="#{backingBeanScope.backing_agencynew.sbc2}"
                                          valueChangeListener="#{backingBeanScope.backing_agencynew.allClick}"
                                          autoSubmit="true"/>
              </f:facet>
              <af:selectBooleanCheckbox value="#{row.bindings.Mark.inputValue}" label="#{row.bindings.Mark.label}"   *//HERE IS PROBLEM OF REFRESHING THE CHECKBOX AT RUNTIME*
                                        shortDesc="#{bindings.AdAgmastApprovalView1.hints.Mark.tooltip}" id="sbc1"
                                        binding="#{backingBeanScope.backing_agencynew.sbc1}" autoSubmit="true"/>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Agcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Agcode.label}" id="c1">
              <af:inputText value="#{row.bindings.Agcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Agcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Agcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Agcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Agcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Agcode.tooltip}" id="it3" readOnly="true">
                <f:validator binding="#{row.bindings.Agcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.label}" id="c2" width="70"
                       frozen="true">
              <af:inputText value="#{row.bindings.Agsubcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Agsubcode.tooltip}" id="it4" readOnly="true">
                <f:validator binding="#{row.bindings.Agsubcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Name.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Name.label}" id="c3" width="105" frozen="true">
              <af:inputText value="#{row.bindings.Name.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Name.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Name.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Name.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Name.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Name.tooltip}" id="it5" readOnly="true">
                <f:validator binding="#{row.bindings.Name.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.State.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.State.label}" id="c4" width="44" frozen="true">
              <af:inputText value="#{row.bindings.State.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.State.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.State.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.State.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.State.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.State.tooltip}" id="it6" readOnly="true">
                <f:validator binding="#{row.bindings.State.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Loccd.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Loccd.label}" id="c6" width="80" frozen="true">
              <af:inputText value="#{row.bindings.Loccd.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Loccd.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Loccd.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Loccd.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Loccd.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Loccd.tooltip}" id="it8" readOnly="true">
                <f:validator binding="#{row.bindings.Loccd.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Centre.name}" sortable="false"
                       headerText="Billing Office" id="c16" width="70">
              <af:inputText value="#{row.bindings.Centre.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Centre.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Centre.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Centre.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Centre.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Centre.tooltip}" id="it17" readOnly="true">
                <f:validator binding="#{row.bindings.Centre.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Ctg.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Ctg.label}" id="c5" width="30" frozen="true">
              <af:inputText value="#{row.bindings.Ctg.inputValue}" label="#{bindings.AdAgmastApprovalView1.hints.Ctg.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Ctg.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Ctg.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Ctg.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Ctg.tooltip}" id="it7" readOnly="true">
                <f:validator binding="#{row.bindings.Ctg.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.label}" id="c15" width="60">
              <af:inputText value="#{row.bindings.Mrvrefno.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Mrvrefno.tooltip}" id="it16" readOnly="true">
                <f:validator binding="#{row.bindings.Mrvrefno.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Remarks.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Remarks.label}" id="c12" frozen="true">
              <af:inputText value="#{row.bindings.Remarks.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Remarks.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Remarks.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Remarks.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Remarks.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Remarks.tooltip}" id="it14" readOnly="true">
                <f:validator binding="#{row.bindings.Remarks.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.label}" id="c7" width="90">
              <af:inputText value="#{row.bindings.HoAgcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.HoAgcode.tooltip}" id="it9" readOnly="true">
                <f:validator binding="#{row.bindings.HoAgcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.label}" id="c8" width="85">
              <af:inputText value="#{row.bindings.HoAgsubcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.HoAgsubcode.tooltip}" id="it10"
                            readOnly="true">
                <f:validator binding="#{row.bindings.HoAgsubcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.label}" id="c9" width="90"
                       rendered="false">
              <af:inputText value="#{row.bindings.GrpAgcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.GrpAgcode.tooltip}" id="it11" readOnly="true">
                <f:validator binding="#{row.bindings.GrpAgcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.label}" id="c10" width="70"
                       rendered="false">
              <af:inputText value="#{row.bindings.GrpAgsubcode.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.GrpAgsubcode.tooltip}" id="it12"
                            readOnly="true">
                <f:validator binding="#{row.bindings.GrpAgsubcode.validator}"/>
              </af:inputText>
            </af:column>
            <af:column sortProperty="#{bindings.AdAgmastApprovalView1.hints.Publ.name}" sortable="false"
                       headerText="#{bindings.AdAgmastApprovalView1.hints.Publ.label}" id="c11" width="40" frozen="true">
              <af:inputText value="#{row.bindings.Publ.inputValue}"
                            label="#{bindings.AdAgmastApprovalView1.hints.Publ.label}"
                            required="#{bindings.AdAgmastApprovalView1.hints.Publ.mandatory}"
                            columns="#{bindings.AdAgmastApprovalView1.hints.Publ.displayWidth}"
                            maximumLength="#{bindings.AdAgmastApprovalView1.hints.Publ.precision}"
                            shortDesc="#{bindings.AdAgmastApprovalView1.hints.Publ.tooltip}" id="it13" readOnly="true">
                <f:validator binding="#{row.bindings.Publ.validator}"/>
              </af:inputText>
            </af:column>
          </af:table>Please provide me an easiest solution for this.
    Edited by: shashank ADF on Jul 2, 2012 5:09 AM

  • ADF application randomly refreshes the page and url gets new _afrLoop id.

    I have an ADF application on 11.1.1.6.0 environment. Randomly it refreshes itself on a random event. It is very hard to reproduce as it is not so frequent, however it is critical as users are continuously working on this revenue critical application. When the refresh occurs _afrLoop id changes in the url.
    It seems that when users press the link/button(most of them are partial submit) the browser session is trying to communicate with the server, but the server has lost the track of the session and gives new _afrLoop id causing it to reload the page.
    ADF logs does not show any indication this this issue. Did some research online and found following threads similar to it.
    Re: _afrLoop causing endless loop in my login.jspx in ADF Security
    However, in my case it just refreshes once and does not get into infinite loop. Also it does not happen on login but it is happening randomly when user is working on it.
    The application is deployed on the cluster, we have tried running just one node but the issue is still there.
    Our next steps is to remove the Trinidad filter as suggested by the above thread however it seems this could be risky as mentioned here(Remove trinidad filter from web.xml impact in adf
    Any help or pointer in the direction to solve this is greatly appreciated.
    Thanks,
    Amit
    Edited by: Amit Patel on Jan 7, 2013 1:07 PM
    Edited by: Amit Patel on Jan 8, 2013 8:29 AM

    Dear All,
    I faced the same issue.
    1. Happens only in IE, when you navigate from one application (say A with web server as HTTP OHS) to another application (say B with web server as HTTPS apache). Both being webcenter applictaion
    2. If i hit the URL of application B web server directly this does not happen
    3. If I hit the weblogic managed server instead of the ws for application A and navigate to application B there is no _afrloop
    4. When i access application A and navigate to application B through the WS _afrloop goes infinite
    As solution I added the below parameters in my OHS http.conf file, and issue got resolved.
    Yet there is one more issue where the IDM cookies are getting cleared, this will help if you are not using IDM in the OHS web servers for authentication.
    Please provide inputs.
    Header unset Cookie
    Header unset Set-Cookie
    Venkat

  • Focus on next navigatble item in ADF Table after refresh

    Hi,
    How to set the focus in the ADF table to next navigable item after Table Refresh.
    I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
    To get the updated values I refresh the Table. It shows the updated values correctly.
    After refresh the contorl/focus moves to the Table header.
    Instead We would like to have the focus on the next navigable Item in the Table.
    Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
    Thanks,
    Satya

    Hi Arun,
    I did that but it doesn't seems to be working as it need to refresh its own column.
    eg:
    Row COL1 COL2
    R1: Rxxxx Val1
    R2: Lxxxx Val2
    R3: Exxxx Val3
    R4: Fxxxx Val4
    When I modify Val1 Val4 need to be calculated using val1-val3/val2
    I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
    When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
    But If I refresh the COL2 it doesn't change the value in row R4
    I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
    Thanks,
    Satya

  • ADF JSF fragment refresh issue

    I have a .jspx page consisting of two .jsff fragments. Each .jsff fragment contains a table. When I modify a row in table1 some changes also need
    to be reflected in table2 in the other .jsff fragment. Using partialTrigger won't work here since it seems that I cannot include a reference to a .jsff fragment
    from another .jsff fragment, so I tried to solve this via ADF calls in the backing bean of one of the .jsff fragments. I have traversed the ADF tree and identified the
    component in the other .jsff fragment that I want to refresh but a call to AdfUtil.addPartialTarget(...) or to AdfFacesContext.getCurrentContext().addPartialTarget(...)
    does not trigger a refresh. I am wondering what I am missing? I would appreciate any help with this.
    Thank you,
    Bogdan

    Inter-region communication is normally done with Contextual Events. A quick google search gave me this: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
    It's been a few years since I did it, but I have had success using contextual events with regions. I think that you might have to have the container that contains the two regions act as a proxy for the event, but it's kinda foggy.

  • ADF model : prevent refresh using invokeAction

    hi
    I'm trying to understand the Refresh and RefreshCondition properties of executables like methodIterator and invokeAction.
    These executables come from the app_SRListPageDef.xml pageDefinition for SRList.jspx in the "Oracle ADF SRDemo Application":
      <executables>
        <methodIterator id="findServiceRequestsIter"
                        Binds="findServiceRequests.result"
                        DataControl="SRPublicFacade" RangeSize="10"
                        BeanClass="oracle.srdemo.model.entities.ServiceRequest"/>
        <invokeAction Binds="findServiceRequests" id="tableRefresh"
                      Refresh="ifNeeded"
                      RefreshCondition="${(userState.refresh) and (!adfFacesContext.postback)}"/>     
        <!-- ... -->
      </executables>The same pageDefinition also contains this methodAction binding :
        <methodAction id="findServiceRequests"
                      InstanceName="SRPublicFacade.dataProvider"
                      DataControl="SRPublicFacade"
                      MethodName="findServiceRequests" RequiresUpdateModel="true"
                      Action="999"
                      ReturnName="SRPublicFacade.methodResults.SRPublicFacade_dataProvider_findServiceRequests_result">
          <NamedData NDName="userIdParam" NDValue="#{userInfo.userId}"
                     NDType="java.lang.Integer"/>
          <NamedData NDName="statusParam" NDValue="#{userState.listMode}"
                     NDType="java.lang.String"/>
        </methodAction>I added this navigateToSRList.jspx page to that application:
    <?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="navigateToSRList">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <h:form>
              <af:commandButton text="show Open requests" action="GlobalHome">
                <af:setActionListener from="#{false}" to="#{userState.refresh}"/>
                <af:setActionListener from="#{'Open'}" to="#{userState.listMode}"/>
              </af:commandButton>
              <af:commandButton text="show Pending requests" action="GlobalHome">
                <af:setActionListener from="#{false}" to="#{userState.refresh}"/>
                <af:setActionListener from="#{'Pending'}" to="#{userState.listMode}"/>
              </af:commandButton>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>This navigateToSRList.jspx page contains two buttons that will bring you to the SRList.jspx page. Both buttons explicitly set the userState properties refresh and listMode.
    If I click the first button, I get to see the Open requests. If I click the second button, I get to see the Pending requests.
    Because the tableRefresh invokeAction configures RefreshCondition="${(userState.refresh) and (!adfFacesContext.postback)}" and the buttons on my navigateToSRList.jspx explicitly set userState.refresh to false, I would expect this invokeAction NOT to be refreshed. (I checked the value -false- of userState.refresh using an expressionResolver.jspx page, see tip : resolve JSF expressions at runtime.)
    (*) questions
    - What causes the SRList.jspx page to show the expected data when using the buttons on navigateToSRList.jspx? I suspect it has something to do with the value of the statusParam NamedData in methodAction findServiceRequests that gets changed. The userState.listMode gets set by a af:setActionListener, this "changed methodAction parameter value" might trigger a refresh of the methodIterator. Can someone confirm this (from experience or with documentation)?
    - Is it possible to prevent "executables to be refreshed" if "methodAction parameters were changed"?
    many thanks
    Jan Vervecken

    Please see section "10.5.5 How to Use Refresh Correctly for InvokeAction and Iterator Bindings" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html for more information on this.
    The information it contains is valid for Non-ADFBC data controls as well.

  • ADF 11g - Self Study material?

    I need to get up to speed on ADF 11g ASAP.
    Does any CD/DVD/on-line course exists on this subject?
    I have tons of books - but would prefer a speedy walt-through of the basics. And then books afterwards...
    Thanks

    While you do mention you are not specifically looking for a book, there is a book for quick start learning of Oracle ADF.
    http://www.mhprofessional.com/product.php?isbn=0071744282
    The Quick Start Guide to Fusion Development Oracle ADF and JDeveloper is aimed at getting you that quick hit of ADF knowledge in as few pages as possible. There are some reviews on Amazon.com if you are looking for independant reviews, I'm obviously biased ;o)

  • ADF application randomly refreshes using Active Event

    we have a strange bug using the ActiveDataModel classes and events:
    we have a landing page where we initiate the connection to the database and everything works fine on this front.
    The problem occurs whern we change page; after about 5 seconds, we see the weblogic connection status turn red (which when hovering over with the mouse tells me it is 'Reconnecting' )and the page gets refreshed.
    The connection status icon we are using is this:
    +<af:statusIndicator id="pageLoadingIndicator"/>+
    we get a new _afrLoop id also.
    We are thinking the browser is refreshing because it loses the connection to the ActiveDataEvent but we are unsure how to 'gracefully' unregister it so we dont get random refreshes throughout the remaining application pages.
    Is there a best practice method of doing this?
    Regards
    Jason

    furthermore,
    from our investigations, if we comment out the following line, we do not experience the refreshing issues:
    context.addActiveModelInfo(this, keyPath, "activemessage");
    of course, this stops the Active data service running to our main landing page

  • ADF jdev10: SQL TRUNC with bind variable in sql statement in VO

    Hi,
    In VO in where clause:
    TRUNC(ServiceRequest.REQUEST_DATE) > :MyDate works fine!
    But TRUNC(ServiceRequest.REQUEST_DATE) > TRUNC(:MyDate) doesn't work!
    "SQL Query Error Message: ORA-00932: inconsistient datatypes: expected DATE got NUMBER"
    How to use TRUNC function for a bind variable?

    Basementjack,
    Any of these solutions that you are doing have possible performance implications in the database side, as you are applying a function to a database column; this is generally going to preclude the use of an index.
    Assuming that you are trying to find service requests that were before the date that is being passed in in the bind variable, and assuming that both the bind variable and service request date can have time components, you could try:
    ServiceRequest.REQUEST_DATE <= TO_DATE(trunc(:MyDate) - 1/86400)Does this do what you want?
    John

  • ADF:Dynamic Region Refreshing

    Hi,
    My JDeveloper version is 11.1.1.5
    I am facing one problem.
    I have one table to which I have Save and Remove buttons.
    To the Save button, I have one action which programmatically inserts the row into the table. And Remove button removes the row present from the table programmatically.
    The Problem I am facing is, whenever I save or remove I need to reload the page to see the row inserted or deleted. It is not happening automatically...
    Could anyone please tell me how to reload a dynamic region which reflects DB table modification onto the Dynamic Region?
    Many thanks in advance

    Hi Guys,
    Here I will try to put my scenario...
    There is one table called APPLICATION which displays all the data using ViewObject1. To this table I am adding and saving and deleting a new row.
    ViewObject1 Query :
    SELECT Application.BUSINESS_UNIT,
    Application.DESCRIPTION,
    Application.ID,
    Application.NAME
    FROM APPLICATION Application
    And there is one more viewObject which refers the same table which also displays the same columns with the data which is mentioned in below viewobject query.
    ViewObject2 Query:
    SELECT Application.BUSINESS_UNIT,
    Application.DESCRIPTION,
    Application.ID,
    Application.NAME
    FROM APPLICATION Application
    WHERE ID not in (select ID_application from project_application)
    So
    Whenever I am saving/removing a row, the table with ViewObject1 is being reflected with the saved row... but not the table with ViewObject2. So can you please advise me how to reflect the saved row in ViewObject2 also..
    ViewObject1 and ViewObject2 are referring to the same table(APPLICATION) in the DB with different queries...
    Many Thanks in Advance,
    Edited by: 977652 on Jan 22, 2013 4:42 AM

  • ADF table data not refresh

    hi,
    i am create a adf table using data control. value of adf table depend on view object. where i bind a variable in where clause.
    now i am giving the value of whereClauseParam using using view object instance in backing bean method.
    when i pressed command button method run properly but adf table not refresh and not showing data.
    thanks in Advance

    public void callData(ActionEvent ae) {
    String amDef = "com.jagran.in.model.view.updatable.AppModule";
    String config = "AppModuleLocal";
    ApplicationModuleHandle handle = null;
    ApplicationModule am;
    try {
    handle = Configuration.createRootApplicationModuleHandle
    (amDef, config);
    //am = Configuration.createRootApplicationModule(amDef,config);
    // ApplicationModule sam = handle.useApplicationModule();
    am=handle.useApplicationModule();
    am.processChangeNotifications();
    ViewObject svo = am.findViewObject("BindView1");
    svo.setNamedWhereClauseParam("id","JK0554");
    svo.executeQuery();
    ((ViewObjectImpl)svo).refreshCollection(null, false, false);
    am.processChangeNotifications();
    svo.reset();
    while (svo.hasNext()) {
    Row r = svo.next();
    System.out.println( (String)r.getAttribute(1));
    } catch(Exception e)
    System.out.println(e);
    finally {
    if (handle != null)
    Configuration.releaseRootApplicationModuleHandle(handle, false);
    }

  • ADF bean datacontrol adf11

    Hi ,
    I have selectOneChoice and upon selection of any value ,the Adf table should refresh and get the udpated data based on the selected value(selectOneChoice ). not using adf bc , We exposed java class as a data control and designed the ui.
    plz suggest sample about invoking adf table binding with where claue on java based datacontrols.
    thanks

    we are not using the Adf BC , we are getting data from back ends systems .
    appraoch based on bean data control.
    Example: over all , In Managed bean we have 2 method, which returns the employe and department information .
    Department information displayed in dropdown and employye infomation displayed in adf table. UPon selecting the department id on select one choice , the table should get the updated infromation based on the deprtment id .
    thanks

Maybe you are looking for

  • ID CS4- Can only open ID CS2 files through ID not by clicking

    Running Windows XP and just installed CS4 upgrade from CS2. Love the new look, but now I can't just open CS2 files by double clicking on them. Have tried to right click the file and use "open with CS4 all the time" but that doesn't work either. I alw

  • Need Suggestion for the Recurrence appointment design

    Hello All,  We are planning to design  a feature where doctor can create appointment  with the patients on the recurrence basis like Daily, Weekly,yearly etc.  Following features also needs to be present  1. User can edit the recurrence appointment a

  • JAVA ENVIRONMENTAL VARIABLE AND PATH SETTINGS

    Hi all, I am having a pecuilar problem with java environment variables and setting the path. I am trying to install and check the instalation using some pre-provided batch commands from Open GTS. The error log is as below . ** Found 2 Error(s)! 1) Th

  • This shows up when I try to use a java based service. Never did this before

    Browser   Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36 Remote Address   209.222.18.83 Referrer   http://portal.yaegercpareview.com/students/courseViewer.cfm?sec_id=2 Date/Time   06-Mar-

  • Problem with 3.2.1 update question

    OK, I'm hoping the 'group mind' will have an idea on a solution to this. Short background- I have my iPads synced to my Dell desktop at home where we have Hughesnet satellite Internet, as we live in a rural area. I have my iPod Touch synced to my Ace