Hey Bertrand,

This is not a complete answer. The complete answer is in the mail
thread that led to WICKET-4488:
"Only the initial version of _stateful_ page is bookmarkable".
I.e. only ?0 is really bookmarkable because in my session page1?3
could be created by clicking link1 then link2 while in the other
session page1?3 could be already created by clicking link4 and then
link5 (i.e. by doing completely different actions than the ones I
did). Then sending this url with the version encoded in it will just
load it from the receiver's page store and show it.

Summary - bookmarkable urls are:
1) the url of a stateless page (because it keeps the state in page parameters)
2) the url to the initial version of a stateful page. The pageId (1.5:
mountPath?pageId, 1.4 Hybrid url: mountPath.pageId) is session scoped
so it could be 0 or bigger. The important thing is that this is the
first render of this page instance.

An exception in these rules is when there is authorization involved.
I.e. the application may decide to show/hide some components depending
on the current user roles. In this case users with different roles
will see different content as well.

On Thu, Apr 12, 2012 at 1:08 AM, Bertrand Guay-Paquet
<ber...@step.polymtl.ca> wrote:
> Hi,
>
> A ticket regarding this was created and resolved in 1.5 (WICKET-4488). From
> the work log:
> "There was code for this situation but it didn't cover the case 100%.
> Now if a request to page2?0 is made and the type of the found page with id=0
> is not Page2 then a new instance of Page2 is instantiated."
>
>
>
>
> On 11/04/2012 5:56 PM, Igor Vaynberg wrote:
>>
>> page 5 in your session can be completely different then page 5 in
>> user's session.
>>
>> non-bookmarkable urls cannot be emailed...thats kind of the point.
>>
>> -igor
>>
>> On Wed, Apr 11, 2012 at 2:37 PM, Alec Swan<alecs...@gmail.com>  wrote:
>>>
>>> Hello,
>>>
>>> I received a link from a customer to a versioned page (.version at the
>>> end of the URL). However, when I click on the link I see a completely
>>> different page.
>>>
>>> We are using Wicket 1.4.17 and the page is mounted  as:
>>>
>>> mount(new HybridUrlCodingStrategy("mp", MyPage.class));
>>>
>>> Why is this happening and how can I fix this?
>>>
>>> Thanks,
>>>
>>> Alec
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>
> ---------------------------------------------------------------------
> 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