开发者

Command Button to Open A <p:dialog> From a Different xhtml file

In a JSF 2.0 application with richfaces and primefaces, I would li开发者_StackOverflow中文版ke a command button when clicked to open a however the dialog is in another xhtml file. How can I achieve this in either primefaces or richfaces.

I have tried

<a4j:commandButton value="Search" id="buttonQuickSearch" action="#{customerDetailsBean.quickSearch}" oncomplete="quickview.dlg.show();"/>


Use <ui:include> to include the dialog code in the master page.

<ui:include src="dialog.xhtml" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜