This content has been marked as final.
Show 2 replies
-
1. Re: Conditional rich:effect
sergeysmirnov Nov 13, 2007 12:52 AM (in response to bruno.arruda)you can use effect as a function by defining the 'name' attribute instead of attaching by 'event' attribute. After that you can invoke this function from 'oncomplete' of the a4j:commandLink explicitly only if the conditions are met.
Probably, the other way is using callback function of the effect itself and invoke this.event.cancel(), but I did not try it by myself yet. -
2. Re: Conditional rich:effect
bruno.arruda Nov 13, 2007 8:44 AM (in response to bruno.arruda)thanks Sergey.
I was able to do it, here comes the code for those with this interesting:<a4j:commandLink action="#{test.changeCompleted}" oncomplete="if (#{test.completed}==true) showDiv();" value="Show4444" /> <input type="button" onclick="showDiv()" value="Show" /> <rich:effect name="showDiv" for="test" type="Appear" />