jsFunction pass data to backingbean
- by deilig
I have a javascript that is calling a function addData(param1,param2,param3,param4) which is calling addClip at the end
And I need to pass those to a backing bean.
<a4j:form>
<a4j:jsFunction name="addClip" action="#{backingBean.goGo}">
<a4j:actionparam name="param1" assignTo="#{backingBean.param1}"/>
</a4j:jsFunction>
</a4j:form>
But I can't seem to pass any values to the backingbean. I've even tried setting a static value for the actionparam. But when I try to do a Systemout on the setParam1 method it only prints out null. Have I missed anything important?