开发者

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

开发者 https://www.devze.com 2023-03-07 14:51 出处:网络
In a JSF 2.0 application with richfaces and primefaces, I would li开发者_StackOverflow中文版ke a command button when clicked to open ahowever the dialog is in another xhtml file. How can I achieve thi

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

精彩评论

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