私のアプリケーションでは、ウィザードを作成しました。表示されていないパネルで検証に失敗したため、パネルを切り替えることができないようです。
ウィザードのレイアウトは次のとおりです。
<rich:modalPanel>
<f:facet name="header">
<h:outputText value="#{messages['motivation.title']}" />
</f:facet>
<h:messages />
<rich:togglePanel id="motivationTogglePanel" switchType="ajax" initialState="wiz1" rendered="#{motivationController.enabled}">
<f:facet name="wiz1">
<f:subview id="wiz1sub">
<rich:toggleControl value="next" switchToState="wiz2"></rich:toggleControl>
</f:subview>
</f:facet>
<f:facet name="wiz2">
<f:subview id="wiz2sub">
<h:selectManyCheckbox id="checkBoxList1" required="true" value="#{controller.selectedValue}" layout="pageDirection">
<f:selectItems value="#{controller.options}"></f:selectItems>
</h:selectManyCheckbox>
</f:subview>
</f:facet>
</rich:modalPanel>
modalPanelは、wiz1パネルから正しく表示されます。これで、ユーザーがtoggleControlをクリックしても、何も起こりません。コンポーネントから必須フィールドを削除すると、切り替えが機能します。
現在表示されているコンポーネントのみを適切に検証するにはどうすればよいですか?