webtier@glassfish.java.net

javax.faces.ViewState without ID after partial render

From: <webtier_at_javadesktop.org>
Date: Fri, 24 Sep 2010 09:23:19 PDT

Hello,

I have this page:

<h:form id="form">
      ....
      <h:commandButton actionListener="xxx" id="save">
                 <f:ajax execute="@form" render="@form" />
      </h:commandButton>
</form>

When this page is rendering (normal rendering) the component "javax.faces.ViewState" has id="javax.faces.ViewState"

When I click in the button "save". After the rendering the component "javax.faces.ViewState" hasn't id

I looked the jsf.js in method doUpdate (line 809) is missing the command: field.id = "javax.faces.ViewState";

The original is:

                    field = document.createElement("input");
                    field.type = "hidden";
                    field.name = "javax.faces.ViewState";
                    stateForm.appendChild(field);

Is this a bug?


Mojarra 2.0.3
Jboss 5.1
[Message sent by forum member 'fabiano_oss']

http://forums.java.net/jive/thread.jspa?messageID=483644