-
1. RichFaces4 popupPanel + a4j:poll
iabughosh May 3, 2011 2:37 AM (in response to edilmar)you can add action or actionListener to the a4j:poll and is in your code you can close the dialog when the response completes.
-
2. RichFaces4 popupPanel + a4j:poll
lfryc May 3, 2011 5:56 AM (in response to edilmar)Hi Edilmar, could you please check progressBar [1] component, it might be useful in your use. You will then use onfinish handle for hiding the popup.
-
3. RichFaces4 popupPanel + a4j:poll
edilmar May 4, 2011 1:55 PM (in response to lfryc)Hi,
The comp progressBar is not good for this situation.
I need to show a message at each X seconds, many and many times, until some logic is finished. Then, at this time, I need to close popupPanel. Because this I would like to know if there is a possibilty for Managed Bean to make a "inversion call" to browser, to close popup.
-
4. Re: RichFaces4 popupPanel + a4j:poll
lfryc May 5, 2011 3:20 AM (in response to edilmar)You would l ike to:
1. periodically update message in popup panel and then - after completion - close it
2. or only close popup after completion?
For (2) as a simpler case, you could use push facility - your client can be contacted through JMS.
Solution for (1) may be using a4j:poll with dynamically updated oncomplete method, something like:
<a4j:poll id="poll_message" render="message" oncomplete="#{not process.completed ? '' : rich:component('poll_message') + '.disable(); ' + rich:component('popup') + '.hide()'}" />