My Oracle Support Banner

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: and later   [Release: and later ]
Information in this document applies to any platform.


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"
                        id="yourInputText" autoSubmit="true"
          <af:commandButton text="Submit"

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.


To view full details, 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 a vibrant support community of peers and Oracle experts.