Richfaces modalPanel load with Ajax

I use richfaces in my project and particularly the tag rich:modalPanel which allows to display popups in pages.So to do this, I include my popup like this:This popup contains this code:…Finally to display the popup, I do this in the main page:All work fine but my problem is the next:In a page, I …

via Java Application Development Tutorial » Search Results » ajax:

Richfaces modalPanel load with Ajax

I use richfaces in my project and particularly the tag rich:modalPanel which allows to display popups in pages.
So to do this, I include my popup like this:
This popup contains this code:


Finally to display the popup, I do this in the main page:
All work fine but my problem is the next:
In a page, I have many popup and each popup is included in the main page. The weight of this one is very big for nothing. So, how can I do to load the popup’s content in ajax when I want to load a popup ?
Thanks
………………………………………

Re-render the panel content via some action and then open the modal in oncomplete=”..”
………………………………………

I have write a little article : “How to create a stateful Richfaces popup” where I show how to create a popup controller. This popup controller allows to replace all the modal tags with a few lines :








The article is available here. Sorry, it is too long to be paste directly here.

For more info: Richfaces modalPanel load with Ajax

Java Application Development Tutorial » Search Results » ajax

Richfaces modalPanel load with Ajax

Share this post:

Related Posts

Leave a Comment