Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
11g Release 1 (11.1.1.9.0)

E52939-01

<af:resetActionListener>

resetActionListener reset action listener resetAction resetaction


The resetActionListener tag is a declarative way to allow an action source (<commandButton>, <commandLink>, etc.) to fire a reset action. All values submitted will be reset to null or empty. The reset will not alter any model state directly, rather the enclosing action should have its own actionListener which will reset all model values to their defaults. The resetActionListener tag supports no attributes.

Example:

This example shows a "Reset..." button. When the button is pressed, all elements on the form will be reset before being applied. The resetModel actionListener will also be called.


           <af:commandButton id="reset"
                             text="Reset..."
                             immediate="true"
                             actionListener="#{myUtils.resetModel}">
             <af:resetActionListener/>
           </af:commandButton>

Attributes

None.