methodIterator Does Not Execute Even When RefreshCondition Evaluates to True (Doc ID 438706.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 10.1.3.0.4 to 11.1.1.5.0 - Release: Oracle10g to Oracle11g
Information in this document applies to any platform.

Symptoms

Suppose an ADF Faces page displaying a collection of data from a methodIterator, calling a session bean method. The Page Definition is defined as the following:
<pageDefinition ...>
  ...
  <executables>           <methodIterator DataControl="MyServiceLocal" BeanClass="test.model.Contact"
                    Binds="Contact.result" id="ContactIter"
                    RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>
  </executables>
  <bindings>
  ...
    <methodAction id="addContact" InstanceName="MyServiceLocal.dataProvider"
                  DataControl="MyServiceLocal" MethodName="addContact"
                  RequiresUpdateModel="true" Action="999"
                  IsViewObjectMethod="false"
                  ReturnName="MyServiceLocal.methodResults.MyServiceLocal_dataProvider_addContact_result">
      <NamedData NDName="c" NDValue="${bindings.Contact.result}"
                 NDType="
  </bindings>
</pageDefinition>

This collection is only fetched the first time the page is invoked.
Afterwards, navigating back to the page does not re-execute the methodIterator, regardless of the Refresh and RefreshCondition settings.
The changes (new records or updated records) are not displayed in the page.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms