[ 
https://issues.jboss.org/browse/RF-12442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715246#comment-12715246
 ] 

Dupont Dupont commented on RF-12442:
------------------------------------

Found the root cause of the error :
 
 * a4j:commandButton uses js method RichFaces.ajax.
 * RichFaces.ajax calls Mojarra's jsf.ajax.request with render option set to 
'@component'. 
   when ajax response comes back, Mojarras's doUpdate method iterates on render 
option to check if any value correspond to a DOM form. If true, then it updates 
javax.faces.ViewState.
   Since RF valorizes render option to '@component', Mojarra doesn't find any 
corresponding form element and javax.faces.ViewState isn't set.

See forum for more info
                
> RF ajax rendering of content which contains another form 
> (a4j:commandLink/Button doesn’t reacts at first click)
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12442
>                 URL: https://issues.jboss.org/browse/RF-12442
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Dupont Dupont
>
> RF ajax rendering on another form doesn't work with 
> a4j:commandButton/commandLink it removes javax.faces.ViewState input of the 
> second form.
> This results in a ghost click the first time I try to submit the second form 
> after having submitted the first one.
> https://community.jboss.org/thread/204724 contains a sample project (see 
> attached file in forum).
> Note : multiple form render works fine when using h:commandButton/commandLink 
> with f:ajax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to