You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Commented) (JIRA)" <ji...@apache.org> on 2012/03/15 10:01:40 UTC

[jira] [Commented] (WICKET-4452) Page id unique across sessions (or even globally unique)

    [ https://issues.apache.org/jira/browse/WICKET-4452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229998#comment-13229998 ] 

Martin Grigorov commented on WICKET-4452:
-----------------------------------------

Hi,

What will that bring for you ? I don't see any benefit here.
People are complaining about the "ugly" page id in the url even now. With UUID it will be even more ugly. With Random it will be just broken because you may see someone else's session.
Can you explain what is the current problem ?
I'll answer you separately in WICKET-3554.
                
> Page id unique across sessions (or even globally unique)
> --------------------------------------------------------
>
>                 Key: WICKET-4452
>                 URL: https://issues.apache.org/jira/browse/WICKET-4452
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Erik Godding Boye
>
> The page id (Page#numericId) is an integer originating from a session scoped "sequence" (Session#pageId). This makes the page id only unique to the session.
> I think there are rationales for making the page id unique across sessions, or even globally unique (using UUID i.e.).
> One potential use case is described in the (closed) issue WICKET-3554.
> Without breaking the API backwards compatibility, some uniqueness may be introduced by using the Random class to generate pageIds. 
> But this can be greatly improved by changing the type of pageId from int to String, and use the UUID class to generate globally unique identifiers, but that will break the API compatibility....

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira