javascript - Reference the oncomplete event by an external java script function -


I want to make some arguments on the incomplete attribute of a4j: commandButton, but my argument is very complex, can I reference Can i Is code better to use code in an external Java-script file using Java Script Functions? I found that there is an error because the JavaScript file can not understand the EL expression. For example, basically I have,

  and  

I have to do something like this:

  & lt; A4j: command button button = "# {MBena1.action1}" incomplete = "btn 1 on complex ();" & gt;  

The code is located in an external Java-script file that is placed inside the Java Script function Btn1OnComplete ().

Thank you

Just pass the Bean value as an argument: / P>

  overcomplete = "Btn1OncOmplete (# {mBean1.value});"  

And then, in the external javascript function, you can write any JSF-related code is not needed.


Comments