-
1. Re: How to know if Rich: modalPanel being displayed on the screen?
snaker May 31, 2011 11:46 AM (in response to robsonrf)you can use a boolean var for example:
<a4j:commandLink value="popup" action="#{bean.changeBooleanVar}" oncomplete="#{rich:component('popup1')}.show()"/>
when you pulse the link, use the function for change the var to true, so , you can know if is diplayed or not
-
2. Re: How to know if Rich: modalPanel being displayed on the screen?
ilya_shaikovsky May 31, 2011 3:26 PM (in response to snaker)I think more convinient will be to use client side variable. As showing and hide of the panel could be(and closure usually is) just client side operation and it's not good to send ajax requests just in order to store the panel state.
-
3. Re: How to know if Rich: modalPanel being displayed on the screen?
robsonrf Jun 1, 2011 8:40 AM (in response to ilya_shaikovsky)good idea.
But in my case, I have a component that controls the modal and modal in each there is a hotkey (esc) to close the modal .. the problem is that the hotkey is repeated and precise control the display of modal .. -
4. Re: How to know if Rich: modalPanel being displayed on the screen?
ilya_shaikovsky Jun 1, 2011 7:11 PM (in response to robsonrf)Still not sure why operation of the hotkey can't also reset some boolean flag.