サラム、
コンポーネントから動的にダイアログに通知を表示しようとしてpoll
いますが、うまくいかないようです!!
<p:poll interval="15" listener="#{notificationBean.showNotification}" />
で使用すると、アクションはうまく機能しますcommandButton
。
<p:commandButton value="View" icon="ui-icon-extlink" actionListener="#{notificationBean.showNotification}" />
これは私のactionListenerのコードです:
public void showNotification() {
System.out.println("showNotification");
Map<String,Object> options = new HashMap<String, Object>();
options.put("resizable", false);
RequestContext.getCurrentInstance()
.openDialog("notifications/notify", options, null);
}
私はPF 6.0で作業しています
何が起こるかわかりません:(