You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kristian Marinkovic (JIRA)" <de...@tapestry.apache.org> on 2007/10/18 13:01:50 UTC

[jira] Commented: (TAPESTRY-1836) Redirect after post causes issues with maintaining client side persistence and forces use of session

    [ https://issues.apache.org/jira/browse/TAPESTRY-1836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535886 ] 

Kristian Marinkovic commented on TAPESTRY-1836:
-----------------------------------------------

i think everything you need is to save the serialized data from the From
into an annotated property with @Persist("flash"). The value of the property
will only stay in the session between the two request and will be cleared 
afterwards.

the load balancer will have to have sticky session enabled so the second
request (redirect) reaches the same T5 instance.

g,
kris

> Redirect after post causes issues with maintaining client side persistence and forces use of session
> ----------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1836
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1836
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.5
>            Reporter: kron bars
>
> We have a lot of pages that serialize objects into the form (gzip + base 64). This is necessary because we want to absolutely avoid using the session (clustering concerns and multiple-browsers with same session concerns). In T5, a form post results in a redirect. So if serialized state is present in the form, the redirect will necessarily cause that to be lost (the URL with its 256 character limitation is not an option to pass the state through). Thus we are forced to hold the state in session. This leads to major problems when the user has multiple browsers open into the same session (which they always do given the nature of our application).
> An option is required to disable the redirect after form post.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org