Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从弹出页面 backingbean 获取 backingbean 内容到父 Window.Opener 页面?
您需要window.opener通过 JavaScript 手动填充 ' 的输入字段。
window.opener
更简单的方法是将一个完整的 JSF 模态对话框组件与一个视图范围的 bean 结合使用。为此,PrimeFaces 具有 a<p:dialog>和 RichFaces <rich:popupPanel>。这不需要您编写任何自定义 JS 代码。
<p:dialog>
<rich:popupPanel>