This content has been marked as final.
Show 3 replies
-
1. Re: How to show modal panel or call bean method in commandButton
nille Sep 3, 2010 2:59 AM (in response to nille)If no one has an idea I think I have to use two commandButtons (one with the onclick event showing the modal panel and the other with the action attribute calling the bean method) rendered alternatively.
Kind regards,
nille
-
2. Re: How to show modal panel or call bean method in commandButton
ilya_shaikovsky Sep 6, 2010 10:51 AM (in response to nille)If no one has an idea I think I have to use two commandButtons (one with the onclick event showing the modal panel and the other with the action attribute calling the bean method) rendered alternatively.
that's way looks better for me. (at least easier to maintain)
But if you prefer first one - it's easy to correct the problem with duplicated requests. just add return false; stateent after calls to modal or jsFunction.
-
3. Re: How to show modal panel or call bean method in commandButton
nille Sep 7, 2010 4:04 AM (in response to ilya_shaikovsky)Thanks,
that is exactly what I was searching for. =)
I'll try both ways and choose than.