[ 
https://issues.apache.org/jira/browse/MYFACES-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733231#comment-17733231
 ] 

Werner Punz commented on MYFACES-4605:
--------------------------------------

Small update:

The code should work, the code branch which deals with this issue is following:
{code:java}
// code placeholder
var childForms = this._Dom.findByTagName(currNode, "form");
if(childForms && childForms.length) {
    for(var cnt = 0; cnt < childForms.length; cnt++) {
        if(childForms[cnt].id) {
            mfInternal._updateForms.push(childForms[cnt].id);
        }
    }
} {code}
the updateForms later are processed after the insertion is done to update the 
viewstate which comes in its own response tag.

I will need to investigate why this fails. 

Either way thanks for reporting this. I will keep you in the loop!

 

 

> Cross form rending via ajax, form is missing ViewState
> ------------------------------------------------------
>
>                 Key: MYFACES-4605
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4605
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 3.0.1, 2.3.10
>            Reporter: Joe Crichton
>            Assignee: Werner Punz
>            Priority: Major
>             Fix For: 2.3.11, 3.0.3
>
>
> Seems this is an old issue, which was presumably fixed for MyFaces in 2.2 as 
> discussed here 
> [https://balusc.omnifaces.org/2011/09/communication-in-jsf-20.html#AjaxRenderingOfContentWhichContainsAnotherForm|https://balusc.omnifaces.org/2011/09/communication-in-jsf-20.html#AjaxRenderingOfContentWhichContainsAnotherForm),]
> and [https://github.com/jakartaee/faces/issues/790]
> Using openliberty with jsf-3.0 feature still has this occurring. Using the 
> workaround outlined by the first link fixes the issue. I believe the same is 
> true for the jsf-2.3 feature as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to