-
1. Re: Doing some action and opening popupPanel afterwards
nbelaevski Dec 22, 2010 12:31 PM (in response to jensmander)Hi Sascha,
The same as in 3.x, use oncomplete="#{rich:component('modalPanelId').show()}". You can call 'hide' method exactly the same way:
function hmp() { if (smth) { #{rich:component('modalPanelId').hide()} } }
P.S. You can use componentControl also.
-
2. Re: Doing some action and opening popupPanel afterwards
jensmander Dec 22, 2010 4:44 PM (in response to nbelaevski)Hi Nick,
thanks for your reply. This works so far but one issue remains unsolved ;( How is it possible to close the window only in those cases where no validation error occurs? Do you have a solution for that? Would be so kind if you can help me out of this trap
Best regards
Sascha
-
3. Re: Doing some action and opening popupPanel afterwards
nbelaevski Dec 22, 2010 4:57 PM (in response to jensmander)Use this:
<script>
function hmp() { #{rich:component('modalPanelId')}.hide() }
</script>
oncomplete="#{facesContext.maximumSeverity == null ? 'hmp()' : ''}"
-
4. Re: Doing some action and opening popupPanel afterwards
jensmander Dec 23, 2010 3:22 AM (in response to nbelaevski)Thanks Nick. I'll try and give you feedback if it works for me
Thanks again and merry xmas
Sascha