Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-134

t:saveState only works with client-side state saving

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.1.3
    • UISaveState
    • None
    • 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)

    Description

      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:

      <f:view>
      <BODY>
      <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"
      action="/testbox/faces/app/savestate/test1.jsp"
      enctype="application/x-www-form-urlencoded">

      <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" />

      </form>

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

      Attachments

        Activity

          People

            mmarinschek Martin Marinschek
            juan Juan Nunez Jaramillo
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: