作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
From a Different xhtml file
在具有richfaces 和primefaces 的JSF 2.0 应用程序中,当单击以打开一个命令按钮时,我想要一个命令按钮,但是该对话框位于另一个xhtml 文件中。我怎样才能在primefaces 或richfaces 中实现这一点。
我试过了
<a4j:commandButton value="Search" id="buttonQuickSearch" action="#{customerDetailsBean.quickSearch}" oncomplete="quickview.dlg.show();"/>
最佳答案
使用 <ui:include>
在母版页中包含对话框代码。
<ui:include src="dialog.xhtml" />
关于jsf-2 - 命令按钮打开 A <p :dialog> From a Different xhtml file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6096736/
我是一名优秀的程序员,十分优秀!