Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-14 Thread Wayne W
Hi, it looks like we cannot make the page stateless as we have many links that require the model etc. Martin- regarding RedirectPolicy#Never - is there any way we can 'mark' the page to use that? As people are coming to this page from a mount url (with a parameter), so we never get a chance to

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-14 Thread Martin Grigorov
You can setup your own PageRenderer via org.apache.wicket.Application#setPageRendererProvider. It should return the correct redirect policy per page type. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Nov 14, 2014 at 12:57 PM, Wayne W

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-14 Thread Wayne W
Ah yes, brilliant - didn't think of that. Thanks Martin - that works a treat. On Fri, Nov 14, 2014 at 11:00 AM, Martin Grigorov mgrigo...@apache.org wrote: You can setup your own PageRenderer via org.apache.wicket.Application#setPageRendererProvider. It should return the correct redirect

RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Wayne W
Hi, We have an issue with hyperlinks Microsoft Word and Excel documents. Its seems to vary from version and OS, but the long and short of it is that Word when a user clicks on a link it uses an internal library to try and access the page, and once it gets a HTTP 200 it will open the default

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Sven Meier
Hi, make your page stateless, then no redirection will occur. Sven On 11/13/2014 11:55 AM, Wayne W wrote: Hi, We have an issue with hyperlinks Microsoft Word and Excel documents. Its seems to vary from version and OS, but the long and short of it is that Word when a user clicks on a link it

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Wayne W
Hi Sven, I tried setting setStatelessHint(true); but it always does a 302 redirect. I see something like this in the Net panel in Firebug: https://www.example.com/share/df43f 302 https://www.example.com/share/df43f?1 200 Any idea? thanks On Thu, Nov 13, 2014 at 11:07 AM, Sven Meier

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Sven Meier
Hi, your page doesn't become stateless, just by claiming it to be. #setStatelessHint() is just a hint. Here's a real stateless page: http://www.wicket-library.com/wicket-examples/stateless/foo Regards Sven On 11/13/2014 03:27 PM, Wayne W wrote: Hi Sven, I tried setting

Re: RenderStrategy.ONE_PASS_RENDER possible for single page?

2014-11-13 Thread Martin Grigorov
See how RequestCycle#setResponsePage() works. You need to use RedirectPolicy#Never. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 13, 2014 at 4:56 PM, Sven Meier s...@meiers.net wrote: Hi, your page doesn't become stateless, just by claiming it to