myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-4160) ViewState not written for Ajax request
Date Fri, 15 Dec 2017 11:56:00 GMT

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

Werner Punz commented on MYFACES-4160:
--------------------------------------

I have revisited this bug again because Thomas has reported also a firefox warning
of getElementById called with an empty string. The cause of this warning is not in the javascripts
but in the way the h:selectOneRadio is resolved:
 <h:selectOneRadio group="testGroup" value="#{selectOneRadioGroupBean.selectedValue}">
                <f:selectItem itemValue="staticValue1"/>
            </h:selectOneRadio>

Becomes

<input id="j_id_8" type="radio" name="form1:testGroup"
                                                         checked="checked" value="j_id_8:staticValue1"/><label
for="">
    staticValue1</label>

Now if you check the label field, an empty string is passed as for and Firefox then complains
probably due to some internal code
the getElementById with empty string warning.

There is no way to fix this in the javascripts, the selectOneRadio renderer must be fixed
for this. I dont know if we need another bug report for that.




> ViewState not written for Ajax request
> --------------------------------------
>
>                 Key: MYFACES-4160
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4160
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.0-beta
>            Reporter: Thomas Andraschko
>            Assignee: Werner Punz
>             Fix For: 2.3.0
>
>         Attachments: test1.xhtml
>
>
> If you run the application from MYFACES-4156 via mvn jetty:run, the viewStateId isn't
rendered again after the first ajax request.
> Seems like FaceletViewDeclerationLanguage line 1910 should handle that but it skips.
> [~lu4242] Could you please check that?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message