jsFunction pass data to backingbean

Posted by deilig on Stack Overflow See other posts from Stack Overflow or by deilig
Published on 2010-04-19T13:50:12Z Indexed on 2010/04/19 13:53 UTC
Read the original article Hit count: 331

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about a4j

Related posts about jsf