You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Johan Compagner (JIRA)" <ji...@apache.org> on 2007/02/01 20:22:05 UTC

[jira] Commented: (WICKET-30) Nice and more practical url scheme

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

Johan Compagner commented on WICKET-30:
---------------------------------------

what we also could think about is that we have mounts that are really "static" with that i mean one session has always one instance for that page.

We could do this if you say it if you mount (extra param)
or what we could do.. if we get a bookmarkable url request. Then we first check what the active page is in the current pagemap if that is the same class then we just return that one.
Would this cause big problems??

I don't think so because there is no backbutton added. (when you do a refresh of the url, the browser already really thinks that that is the current/same page)


> Nice and more practical url scheme
> ----------------------------------
>
>                 Key: WICKET-30
>                 URL: https://issues.apache.org/jira/browse/WICKET-30
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3, 2.0
>            Reporter: Matej Knopp
>         Assigned To: Matej Knopp
>
> I'd like our urls to be redesigned. Currently, there are lot of issues, such as not preserving bookmarkable urls after action on page or not preserving page state when using ajax on pages with bookmarkable urls.
> We should introducte hybrid urls - urls that would contains both page class and page instance id.
> Example of url of mounted page with hybrid url:  /my/page/param1/value1[25]
> When such url is entered, wicket would first try to retrieve page with id 25. If the page is found, it would check whether the class matches with given mount point. If so, it would show the page, otherwise new page instance would be created and the url would be redirected to e.g.
> /my/page/param1/value1[31]  (where 31 would be new page instance).
> Also (this would be configurable per page class), after entering bookmarkable url, the browser would be automatically redirected to hybrid url. For instance user enters /my/page and gets immediately rendered to /my/page[4]   where 4 is new page instance. The benefit of this would be that ajax changes on page would be persisted after refreshing the page, which is not the case with current bookmarkable urls.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.