This content has been marked as final.
Show 2 replies
-
1. Re: Workaround on jsFunction + actionparam
nbelaevski Feb 4, 2009 12:07 PM (in response to leiras)Hello,
Use either actionListener attribute of a4j:actionparam tag or add your listener after a4j:actionparam using f:actionListener tag. -
2. Re: Workaround on jsFunction + actionparam
leiras Feb 4, 2009 1:12 PM (in response to leiras)Thanks a lot nbelaevski!
Here is the final code:<a4j:commandLink id="cm1" onclick="javascript:showParameter('abc');" value="test"/> <a4j:jsFunction name="showParameter"> <a4j:actionparam name="param1" assignTo="#{telaCodigo.testParameter}" actionListener="#{telaCodigo.showTestParameter}" /> </a4j:jsFunction>