Copied from Jira

/Works!
Thank you./

Sorry, but I have to correct myself.

The way I use it, it still does not work.
In a nutshell that's what we try to archive:
Save a cookie on a client browser under the path of the current page.
The page does have a mandatory named parameter!
If the Session expires. The SessionExpiredPage will read the cookie and
start a redirect.

What happens now is that by the time the AbstractBookmarkableMapper wants to
generate the URL of the component, before including the existent parameters,
it does an getRecreateMountedPagesAfterExpiry() check (see
https://github.com/apache/wicket/blob/wicket-7.x/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/AbstractBookmarkableMapper.java#L479).
which answers false and the existing parameters are not added to the new
UrlInfo object.

That in return will lead to a failure when calling setPlaceholders(copy,
url) (see
https://github.com/apache/wicket/blob/wicket-7.x/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/MountedMapper.java#L206)
and results in a null url return value, that lets wicket default to the
generic URL we had before.

I hope to get across what I mean, my english is a little rusty :)

Thanks!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Implications-of-setRecreateBookmarkablePagesAfterExpiry-tp4674899p4674993.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to