Hi Josh,

On 06/08/2012 22:10, jchappelle wrote:
Currently I am using CryptoMapper for my application. It is installed in the
init method of my application like this: setRootRequestMapper(new
CryptoMapper(getRootRequestMapper(), this));. I need some of my pages to be
bookmarkable with a url like /abc. I was able to accomplish this by doing
this in my init method: getRootRequestMapperAsCompound().add(new
MountedMapper("/abc", AbcPage.class));

It may be easier to just do this:
mountPage("/abc", AbcPage.class);

It does the same thing with less typing.

My problem is that if I do it like that then the url's generated for any
clicks on that page are not encrypted. Ideally I would like the urls to be
encrypted. Is there any way around this? I'm sure it is possible to write an
IRequestMapper or extend MountedMapper but I'm not really sure how to go
about it.

Any ideas?

That is strange behaviour. Mounting pages should not affect the URLs generated for pages not handled by the MountedMapper for those mounted pages. I have tested, and 1.5.7 and 6.0.0-beta3 do not have this behaviour. Which version are you using?

It is very likely that links to mounted pages will be unencrypted, but link to other pages served from within a mounted page should be encrypted (unless those other pages are also mounted of course).

Do you perhaps have any other custom IRequestMappers installed, possibly overriding mapHandler()?

Cheers,
Jesse



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to