myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Medín (JIRA) <>
Subject [jira] Created: (MYFACES-748) t:saveState only works with client-side state saving
Date Tue, 25 Oct 2005 14:40:55 GMT
t:saveState only works with client-side state saving

         Key: MYFACES-748
     Project: MyFaces
        Type: Bug
  Components: Tomahawk (RI Compatability)  
    Versions: Nightly    
 Environment: Windows XP, RSA 6.0.1, JDK 1.5.0_04, Tomcat 5.0.28, Sun RI (distributed with
RSA 6.0.1), Tomahawk nightly build (17/10/05)
    Reporter: Juan Medín

t:saveState doesn't store the state when setting STATE_SAVING_METHOD to server. It _does_
work when setting STATE_SAVING_METHOD to client.

I'm using the Sun RI (distributed with RSA 6.0.1) plus a recent nightly build of Tomahawk.

The test code is trivial: two JSPs with <t:saveState value="aRequestScopedObject"/>
like this:

              <t:saveState value="#{aRequestScopedObject}"/>
              <h:form id="form1">

.... more html ....

The generated HTML doesn't include any reference to the saveState object when setting server-side
state saving. For the example above in a simple test form with two fields (text1 and text2)
this is the generated form code:

        <form id="form1" method="post"

               <input id="form1:text1" type="text"
                       name="form1:text1" value=""/>
               <input id="form1:text2" type="text"
                       name="form1:text2" value=""/>
               <input type="submit" value="Submit"
                       name="form1:button1" id="form1:button1"/>
               <input type="hidden" name="form1" value="form1" />


There is no html code for the saveState() tag.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message