Oracle Fusion Middleware Tag Reference for Oracle ADF Faces 11g Release 1 (11.1.1.7.1) E12419-10 |
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.
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>
None.