You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sebastiaan van Erk (JIRA)" <ji...@apache.org> on 2008/04/14 14:33:06 UTC

[jira] Created: (WICKET-1530) Mount resources by locale

Mount resources by locale
-------------------------

                 Key: WICKET-1530
                 URL: https://issues.apache.org/jira/browse/WICKET-1530
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.3.3
            Reporter: Sebastiaan van Erk


When mounting resources (e.g., bookmarkable pages) and using localization, I find it strange that you have to mount all versions of the resource (all locales) on 1 path.

This has the following major drawbacks:

1) The resource is not directly reference-able in any locale other than the default locale.
2) An indexer only finds one version of the resource (or if it finds multiple, the others are not bookmarkable, so they are expired by the time they're in the index).
3) It is visitor unfriendly: visitors of the site that press a "change locale" button get a non-bookmarkable page, which breaks if they copy paste it to link to your supposedly bookmarkable page.

If it were possible to specify the locale when mounting a resource, this would allow a different path to be specified per locale, solving all of the above problems. It would allow links within your pages to the other versions of the page (other locales) that are stateless, making them crawlable. It would allow for a stateless locale change link that properly changes the URL so that users which copy/paste the URL get an URL that actually works.

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


[jira] Resolved: (WICKET-1530) Mount resources by locale

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-1530.
-------------------------------------

    Resolution: Fixed

This is possible with the new IRequestMapper in Wicket 1.5.
See "Wicket 1.5 request mappers" application in wicket-examples for inspiration.

> Mount resources by locale
> -------------------------
>
>                 Key: WICKET-1530
>                 URL: https://issues.apache.org/jira/browse/WICKET-1530
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.3
>            Reporter: Sebastiaan van Erk
>             Fix For: 1.5-M1
>
>
> When mounting resources (e.g., bookmarkable pages) and using localization, I find it strange that you have to mount all versions of the resource (all locales) on 1 path.
> This has the following major drawbacks:
> 1) The resource is not directly reference-able in any locale other than the default locale.
> 2) An indexer only finds one version of the resource (or if it finds multiple, the others are not bookmarkable, so they are expired by the time they're in the index).
> 3) It is visitor unfriendly: visitors of the site that press a "change locale" button get a non-bookmarkable page, which breaks if they copy paste it to link to your supposedly bookmarkable page.
> If it were possible to specify the locale when mounting a resource, this would allow a different path to be specified per locale, solving all of the above problems. It would allow links within your pages to the other versions of the page (other locales) that are stateless, making them crawlable. It would allow for a stateless locale change link that properly changes the URL so that users which copy/paste the URL get an URL that actually works.

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


[jira] Updated: (WICKET-1530) Mount resources by locale

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Compagner updated WICKET-1530:
------------------------------------

    Fix Version/s: 1.5-M1

> Mount resources by locale
> -------------------------
>
>                 Key: WICKET-1530
>                 URL: https://issues.apache.org/jira/browse/WICKET-1530
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.3.3
>            Reporter: Sebastiaan van Erk
>             Fix For: 1.5-M1
>
>
> When mounting resources (e.g., bookmarkable pages) and using localization, I find it strange that you have to mount all versions of the resource (all locales) on 1 path.
> This has the following major drawbacks:
> 1) The resource is not directly reference-able in any locale other than the default locale.
> 2) An indexer only finds one version of the resource (or if it finds multiple, the others are not bookmarkable, so they are expired by the time they're in the index).
> 3) It is visitor unfriendly: visitors of the site that press a "change locale" button get a non-bookmarkable page, which breaks if they copy paste it to link to your supposedly bookmarkable page.
> If it were possible to specify the locale when mounting a resource, this would allow a different path to be specified per locale, solving all of the above problems. It would allow links within your pages to the other versions of the page (other locales) that are stateless, making them crawlable. It would allow for a stateless locale change link that properly changes the URL so that users which copy/paste the URL get an URL that actually works.

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