Hi,

I don't see how you could work around this.
But I think we could remove the check
at org.apache.wicket.Component#createRequestHandler().
I think it is fine to render urls with the page mount path in
them. 
org.apache.wicket.core.request.mapper.AbstractBookmarkableMapper#processHybrid()
is responsible to throw PageExpiredException when needed.

I've just tried this change and I see that two unit tests are failing, but
in my opinion they should pass.

Please create a ticket and we will investigate deeper!

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jun 15, 2016 at 12:39 PM, Ravi <[email protected]> wrote:

> Hi all,
>
> I have an application where I set cookies with the app's context +
> mountedPageUrl as the cookie's path.
> Something like this: 'wicket-sandbox/pageA'
>
> Work's fine out of the box.
> Now I want to have a SessionExpiredPage.
> According to this https://issues.apache.org/jira/browse/WICKET-4014 I
> simply
> have to set setRecreateBookmarkablePagesAfterExpiry(false).
>
> But now all of my Ajax-/Listener-URLs don't use their mounted page URLs
> anymore, but a generic 'wicket/page'.
>
> So before, they look like:
>
> http://localhost:8081/wicket-sandbox/pageA?2-1.IBehaviorListener.0-increment&_=1465988637772
> Now they look like:
>
> http://localhost:8081/wicket-sandbox/wicket/page?1-1.IBehaviorListener.0-increment&_=1465988144642
>
> So it is not possible to get or differentiate between the cookies.
>
> I tried debugging it, but I do not see where I can change this behavior
> because at the point where the application decides on which
> IPageRequestHandler to use (/see Component.class, method
> createRequestHandler(RequestListenerInterface listener, PageParameters
> parameters, Integer id)/),
> it does query the getRecreateBookmarkablePagesAfterExpiry() method (which
> returns false) and uses a ListenerInterfaceRequestHandler instead of an
> BookmarkableListenerInterfaceRequestHandler.
>
> Any ideas on how I can get this working?
>
> Kind regards,
>
> Ravi
>
> I am using wicket 7.2.0
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to