[英]Creating <rich:modalPanel> dynamically
How to create a rich:modalPanel dynamically?如何动态创建一个rich:modalPanel? I need to click one button and generate a floating panel.
我需要单击一个按钮并生成一个浮动面板。 The catch is, if I click the button, there should be created a second panel, and the first one should remain on its place.
问题是,如果我单击按钮,应该创建第二个面板,而第一个面板应保留在其位置。 I've tried using ui:repeat and reRender, but this overwrites the first panel when I generate a second one.
我试过使用 ui:repeat 和 reRender,但是当我生成第二个面板时,这会覆盖第一个面板。
If you have a modal panel opened, you won't be able to click any buttons (unless the button is on the modal panel).如果您打开了模态面板,您将无法单击任何按钮(除非该按钮位于模态面板上)。 RichFaces 4 has a pop-up panel which can be modal or non-modal.
RichFaces 4 有一个弹出面板,可以是模态的或非模态的。 Using the non-modal version, you can open multiple pop-ups.
使用非模态版本,您可以打开多个弹出窗口。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.