ユーザーが特定のラジオボタンを選択したときに、非表示のパネルを切り替えたいのですが。Primefacesの最新バージョンを使用します。
例えば:
<p:panel id="panel1" visible="false" widgetVar="firePanel" closable="true" toggleable="true">
hello
</p:panel>
<p:selectOneRadio value="#{formBean.selectedOptions}" layout="pageDirection">
<f:selectItem itemLabel="Option 1" itemValue="opt1" />
<f:selectItem itemLabel="Option 2" itemValue="opt2" />
<f:selectItem itemLabel="Option 3" itemValue="opt"/>
</p:selectOneRadio>
このようなことを実現したいのですが、RadioButton3をクリックすると、commandButtonを使用しません
<p:commandButton id="but" value="Show" onclick="firePanel.show();"/>
それも可能ですか?ありがとう!