This content has been marked as final.
Show 2 replies
-
1. Re: how to use a4j:jsFunction to connect String parameter
mp911de Dec 12, 2011 11:38 PM (in response to feuyeux)Hi Lu,
you can pass parameters using <a4j:actionparam name="param1" assignTo="#{userBean.name}" /> and you should use reRender to update your target. See http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/a4j_jsFunction.html for further information.
Best regards,
Mark
-
2. Re: how to use a4j:jsFunction to connect String parameter
feuyeux Dec 13, 2011 4:04 AM (in response to mp911de)Thanks Mark.
Please consider:
At first time, we set the outputText as param1, whose value is #{userBean.name},
but at he seconde time, the outputText will be new param1, it's not old param1 plus new param1.
Is it clear? I like to provide the js to express it more:
function test(param1){
var x=outputText.value; -- pseudocode
outputText.value=x+param1;
}