Hi,

When we've a mounted page for URL '/my-page' and modal window (with
'cookieName' set) is opened from that page modal window size/position
information is set into a cookie and path set for it contains the mount path
as well.

When we enable CryptoMapper in WicketApplication, encrypted URLs for Ajax
links/behaviors will look like '/<context>/my-page?wicket-crypt=...', and
modal window size/position cookie is also sent along with any Ajax call made
(including modal window close ajax call).

On top this if we set
'org.apache.wicket.settings.def.PageSettings.recreateMountedPagesAfterExpiry'
to 'false' by calling 

getPageSettings().setRecreateMountedPagesAfterExpiry(false);

in WicketApplication#init() function, encrypted URLs for Ajax
links/behaviors will look like '/<context>/<encrypted>', and modal window
size/position cookie is NOT sent along with Ajax calls.

This is because the 'path' for the cookie contains page mount path, but the
encrypted ajax URLs doesn't contain the page mount path.

Different seems to be in
"org.apache.wicket.Component.createRequestHandler(RequestListenerInterface,
PageParameters, Integer)"; where for the first scenario
'BookmarkableListenerInterfaceRequestHandler' instance is being created, and
for the second scenario 'ListenerInterfaceRequestHandler' instance is being
created.

Is it a bug ?
How do I solve it in the second scenario mentioned above ?

Regards,
Rakesh.A

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CryptoMapper-Mounted-pages-recreation-and-ModalWindow-cookie-tp4675513.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