On Sun, Jan 8, 2012 at 4:29 PM, Chris Colman
<chr...@stepaheadsoftware.com> wrote:
>>On Sun, Jan 8, 2012 at 11:31 AM, Chris Colman
>><chr...@stepaheadsoftware.com> wrote:
>>>>> Not sure if I have an answer to your question but recently I asked how
>>to
>>>>turn off page versioning and was told to do:
>>>>>
>>>>> getRequestCycleSettings().
>>>>>
>> setRenderStrategy(IRequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
>>>>
>>>>Actually this just turns off the redirecting. The pages are still
>>>>versioned.
>>>
>>> So would
>>>
>>> getPageSettings().setVersionPagesByDefault(false);
>>>
>>> have been a better/safer option for turning off page versioning?
>>
>>Yes.
>
> I tried setVesionPagesByDefault(false) on its own but the version parameters 
> still appeared in the URL in the browser address bar. Should we use both of 
> the above to make page versioning disappear so as to make Wicket 1.5 behave 
> just like version 1.5?

Make your page stateless to not have page ids in the URL (and the page
wont be saved in the page stores too).
Otherwise you'll need special version of
org.apache.wicket.request.mapper.MountedMapper#mapHandler that doesn't
org.apache.wicket.request.mapper.AbstractComponentMapper#encodePageComponentInfo
for IPageRequestHandler.


>
>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>
>>
>>
>>--
>>Martin Grigorov
>>jWeekend
>>Training, Consulting, Development
>>http://jWeekend.com
>>
>>---------------------------------------------------------------------
>>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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to