[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1922) Back button doesn't work with PAGE scope and JSF-RI Server state saving

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Mar 19 19:28:03 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-1922?page=all ]

Pete Muir updated JBSEAM-1922:
------------------------------

    Fix Version/s: 2.1.0.GA
                       (was: 2.1.0.BETA1)

> Back button doesn't work with PAGE scope and JSF-RI Server state saving
> -----------------------------------------------------------------------
>
>                 Key: JBSEAM-1922
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1922
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0.BETA1
>            Reporter: Michael Youngstrom
>             Fix For: 2.1.0.GA
>
>
> JSF doesn't make any guarentees about the isolation of attributes stored in the view.  Because of this a PAGE scoped component that gets passed along to several views will actually be a single instance when using Server state management with the RI.
> This causes a problem with back button support for the PAGE scope (imho the main difference of PAGE scope over CONVERSATION).  For example:
> @Name("test")
> @Scope(PAGE)
> public class Test implements Serializable {
>  private int value = 0;
>  public int getValue() {
>    return value;
>  }
>  public void incValue() {
>    value++;
>  }
> }
> Value = #{test.value}
> <h:form>
>  <h:commandButton action="#{test.incValue}" value="Increment Value"/>
> </h:form>
> Test Case when using Server side state management:
> 1. I view the page: "Value = 0" Displayed
> 2. I press "Increment" button: "Value = 1"
> 3. I press "Increment" button: "Value = 2"
> 4. I press "back" button: "Value = 1"
> 5. I press "Increment" button: "Value=3"
> If running in client state mode Step 5 displays "Value=2".
> To make PAGE scope work consistently between client and server JSF state management we need to figure out some way to serialize PAGE scoped values when doing "saveState" or something so that a new instance of PAGE is accessed from restore-view of any subsequent requests.
> Here is a link to a conversation on the RI about this issue:
> https://javaserverfaces.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=907018
> From the conversation it appears the MyFaces is not effected by this issue by default.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list