This content has been marked as final.
Show 1 reply
-
1. Re: Can we toggle a modalPanel from action?
lvdberg Oct 29, 2010 5:46 AM (in response to tienlantri)Hi,
create a button which depends on the value in the table. So let's say if gca buttonone and if parc buttontwo. In the rendered attribute you put this check. Something like:
yourObject.class.simpleName == 'WHATEVER' or something more sofisticated in the backing bean. public boolean checkPARC(){ if (yourObject instanceof PARC) return true; else return false; }
Each button is rendered only when the object is of a specific class, so you can ad whatever behaviour you want.
Hopefully this helps a bit.
Leo