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

        

Reply via email to