Project Documentation

Summary

Tag name: <tr:resetActionListener>

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, the all elements on the form will be reset before being applied. The resetModel actionListener will also be called.

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

Attributes

None.