简体   繁体   中英

Keeping a rich:popupPanel open after page change

Is it possible to keep a rich:popupPanel open after a form has been submitted and another page loaded? As an example, go to richfaces showcase and click "Call the popup" then browse somewhere else (using a tab like "Modal panel example" or the menu). The popup will disappear as soon as the form gets submitted. I would like to let it "survive" the page change (and possibly remain in the same position).

Thank you for any suggestions!

Yes, it is. You just need to set the attribute show to something that evaluates to true in the next request:

<rich:popupPanel id="popup" show="#{someBean.showPopup}" ...>

Then you just need to make sure the property the method getShowPopup returns true when the popup needs to be shown.

From the docs :

show | boolean | If "true" value for this attribute makes a modal panel opened as default. Default value is "false"

See also this section on rich:popupPanel .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM