af:commandButton actionListener not Executed When ADF Faces Page Includes an af:inputText With autoSubmit="true" (Doc ID 557627.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle JDeveloper - Version: 10.1.3.3.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms


Suppose an ADF Faces page including the following:
...
      <afh:body binding="#{backing_yourPage.body1}" id="body1">
        <h:form binding="#{backing_yourPage.form1}" id="form1">
          <af:inputText label="Enter a value and click Submit button"
                        binding="#{backing_yourPage.yourInputText}"
                        id="yourInputText" autoSubmit="true"
                        valueChangeListener="#{backing_yourPage.yourInputText_valueChangeListener}"/>
          <af:commandButton text="Submit"
                            binding="#{backing_yourPage.yourCommandButton}"
                            id="yourCommandButton"
                            action="#{backing_yourPage.yourCommandButton_action}"/>
        </h:form>
      </afh:body>
...


See that "yourInputText" has the property autoSubmit="true" and the valueChangeListener defined ,
and "yourCommandButton" has an "action"defined.

If you run the page, enter a value in "yourInputText" and click "yourCommandButton",
the valueChangeListener "yourInputText" is executed, but the action of the
commandButton is NOT.

In the above example, you will see the following line only in the Console window
of JDeveloper when running the page:
08/03/13 14:23:17 InputText Value Change Listener Executed


The action method is executed only if the user clicks on the command button again.
The same occurs for a commandLink, and for an actionListener.

The user can modify values in an ADF Faces page and click the 'commit' button but
the new values aren't actually committed to the DB.

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