[ 
http://issues.apache.org/jira/browse/TAPESTRY-1116?page=comments#action_12457422
 ] 
            
Greg Woolsey commented on TAPESTRY-1116:
----------------------------------------

One thing to consider when implementing this, that we've had to handle in our 
implementation - some types of pages/requests should be ignored for the 
purposes of determining the "last rendered page".

Specifically, some AJAX requests we have are generic, part of our custom page 
border component, and thus request data from a page class different than the 
displayed page.  Those requests, when serviced, should not be recorded as the 
last page rendered.

Popups have a similar issue - if a popup is opened from a page, and it records 
itself as the last page, then the user refreshes the opener page, it's 
session:page properties will have disappeared.

If there were some way to tell which window/frame a request is made from, that 
would help.  

What we've done is just implemented a class hierarchy for our pages, which 
implement an interface with one boolean method - ignoreLastPage().  When true, 
requests handled by those classes don't update the session property for last 
rendered page.

> page level session scope
> ------------------------
>
>                 Key: TAPESTRY-1116
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1116
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 4.1.1
>         Environment: any
>            Reporter: Jesse Kuhnert
>         Assigned To: Jesse Kuhnert
>            Priority: Minor
>             Fix For: 4.1.1
>
>
> http://wiki.apache.org/tapestry/SessionPagePersistence

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to