0
我想在PrimeFaces庫UI組件lightBox
中放置整個頁面。PrimeFaces JSF庫:lightBox內的整個頁面?
比如我有:
- Normal_page.xhtml
- Popup_page.xhtml
是否有可能從Normal_page.xhtml推出Popup_page.xhtml並顯示它裏面收藏夾,以便Popup_page將覆蓋Normal_page?
p.s.
我曾經做到這一點使用<p:dialog>
和<ui:include>
,像這樣:
<p:dialog widgetVar="myPopup"...>
<ui:include src="/Popup_page.xhtml"/>
</p:dialog>
和
<p:commandButton onclick="myPopup.show();"/>
,但是這似乎並沒有與<p:lightBox>
工作。
感謝。我已經嘗試了第一個,它很好。一個問題是,一些actionListener似乎不像我使用'p:dialog'時那樣引發事件。所以,它應該全部作爲'p:dialog'與功能相關,只有外觀和窗口行爲是不同的? – Danijel