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 <[email protected]> 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 <[email protected]> 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: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to