私は Primefaces を扱っており、自分のサイトのログイン メニューとして notificationBar を使用しています。ただし、notificationBar の commandButton はbar.hide()にのみ応答します。Sign Upという名前のボタンを持つ登録ユーザーでない場合、ユーザーをサインアップページにリダイレクトしたいと思います。ボタンを別のパネルに移動すると、反応します。何か助けてください?コードは次のとおりです。
<p:notificationBar position="top" effect="slide" widgetVar="bar" style="height:195px;border-bottom:8px solid #DF431A;">
<p:panelGrid id="options" columns="1" style="margin-top:-5px;margin-right:150px">
<h:outputText value="Sign Up"
style="font-size:20px;" />
<p:commandButton style="float:right;width:100%" value="Sign Up" onclick="bar.hide()" action="sign_up" type="button" />
</p:panelGrid>
</p:notificationBar>
PS: onclick、ウィンドウの場所などを試しました。