jsf - How to access javascript value in a4j -


I need to set the bean value with a javascript return value.

Something like this:

  & lt; Script type = "text / javascript" & gt; Function getUserId () {return 4; } & Lt; / Script & gt; & Lt; H: Input TextName = "Lala" value = "getUserId ()" />  

thanks

I resolved it.

I was using one: jsFunction tag as follows:

   & Lt; / A: jsFunction & gt;  

If you use the property noEscape = "true" then: actionparam ... this calls your javascript code.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -