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 do something like: scheduleRequestHandlerAfterCurrent(new RenderPageRequestHandler(new PageProvider(page), RenderPageRequestHandler.RedirectPolicy.NEVER_REDIRECT)); On Thu, Nov 13, 2014 at 8:15 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > 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 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 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 <s...@meiers.net> wrote: > >> > >> 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 uses an internal library to try > and > >>>> access the page, and once it gets a HTTP 200 it will open the default > >>>> browser. We have a page that is used for sharing files so it gets > added > >>>> to > >>>> documents. > >>>> > >>>> We have several customers complaining they cannot open these links, > and > >>>> I > >>>> can verify this seems to happen depending on OS (Mac is worse for > >>>> example). > >>>> After doing a lot of digging about the only thing we can do is make > sure > >>>> we > >>>> return a HTTP 200 from the first request, as anything else seems to > >>>> sometimes work, sometimes not. > >>>> > >>>> So to my question: > >>>> > >>>> Is it possible to set RenderStrategy.ONE_PASS_RENDER for a single page > >>>> only? We don't really want to loose the advantages of the 302 redirect > >>>> elsewhere > >>>> > >>>> Any ideas? > >>>> > >>>> many thanks > >>>> Wayne > >>>> > >>>> > >>>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >>> > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >