[richfaces-issues] [JBoss JIRA] Updated: (RF-8215) <f:actionParam> is invoked on INVOKE_APPLICATION phase rather than UPDATE_MODEL_VALUES phase when used inside a jsFunction

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Dec 16 15:48:38 EST 2009


     [ https://jira.jboss.org/jira/browse/RF-8215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski updated RF-8215:
-------------------------------

    Component/s: doc
                     (was: component-a4j-core)
       Assignee: Sean Rogers


That's a bug in documentation. Variable assignment happens on the same phase as ActionEvent is processed (i.e. INVOKE_APPLICATION/PROCESS_VALIDATIONS/APPLY_REQUEST_VALUES, depending on the value of "immediate"/"bypasUpdates" attributes).

> <f:actionParam> is invoked on INVOKE_APPLICATION phase rather than UPDATE_MODEL_VALUES phase when used inside a jsFunction
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-8215
>                 URL: https://jira.jboss.org/jira/browse/RF-8215
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: doc
>    Affects Versions: 3.3.2.SR1
>            Reporter: George Gastaldi
>            Assignee: Sean Rogers
>
> The documentation in http://livedemo.exadel.com/richfaces-demo/richfaces/actionparam.jsf?c=actionparam&tab=usage and http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/a4j_actionparam.html states that the property assigned in the "assignTo" attribute is set in the UPDATE_MODEL_VALUES phase.
> By using a jsFunction with an actionParam, it is possible to see that the assignment is done on the INVOKE_APPLICATION phase, thus calling the actionListener defined in the jsFunction
> Example:
> <a4j:jsFunction name="myJsFunction" actionListener="#{myBean.myActionListener}" >
>      <a4j:actionparam name="param1"assignTo="#{myBean.paramName}" />
> </a4j:jsFunction>
> Calling: myJsFunction('Any Value') does the trick. The ActionListener will be called BEFORE the assignment of the actionParam

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list