<af:resetActionListener>

resetActionListener reset action listener resetAction resetaction


resetActionListenerタグは、アクション・ソース(<commandButton>、<commandLink>など)によってリセット・アクションを起動できるようにする宣言的方法です。送信されたすべての値は、nullまたは空にリセットされます。リセットではモデルの状態は直接変更されないため、包含アクションには、モデルの値をすべてデフォルトにリセットする固有のactionListenerを含める必要があります。resetActionListenerタグでは属性はサポートされません。

例:

この例では、「Reset...」ボタンを示します。ボタンを押すと、フォームのすべての要素が適用前の状態にリセットされます。またresetModelのactionListenerがコールされます。

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

</source>

属性

なし。