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" />
精彩评论