You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gatos <eg...@gmail.com> on 2009/07/27 11:11:33 UTC
urls with localization
Hello,
How is it possible to use such urls in wicket?
If users clicks that link then appropriate page with defined locale will be
shown.
www.domain.com/uk/home
www.domain.com/nl/home
Thank you
Re: urls with localization
Posted by Jan Kriesten <kr...@mail.footprint.de>.
Hi,
> How is it possible to use such urls in wicket?
> If users clicks that link then appropriate page with defined locale will be
> shown.
> www.domain.com/uk/home
> www.domain.com/nl/home
see this thread:
http://www.nabble.com/Localization%2C-Bookmarkable-pages%2C-and-mounting-strategies-to16676213.html#a16682606
Best regards, --- Jan.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
Good work, thank you!
Vytautas
Alex Objelean wrote:
> I've created a draft version of the page in wiki:
> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>
> Now it will not expire ;).
>
> Alex Objelean
>
>
> Vytautas C(ivilis wrote:
>> Hi, Alex.
>>
>> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
>> been expired?
>>
>> Thanks!
>>
>> Vytautas
>>
>> Alex Objelean wrote:
>>> RequestDecorator is nothing but a decorator implementation of Request
>>> class...
>>> [CODE]
>>> public class RequestDecorator
>>> extends Request {
>>> /**
>>> * Decorated request.
>>> */
>>> private final Request request;
>>>
>>>
>>> /**
>>> * Constructor.
>>> *
>>> * @param request to decorate.
>>> */
>>> public RequestDecorator(final Request request) {
>>> if (request == null) {
>>> throw new IllegalArgumentException("Decorated Request cannot be
>>> NULL!");
>>> }
>>> this.request = request;
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public Locale getLocale() {
>>> return request.getLocale();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getParameter(final String key) {
>>> return request.getParameter(key);
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public Map<String, String[]> getParameterMap() {
>>> return request.getParameterMap();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String[] getParameters(final String key) {
>>> return request.getParameters(key);
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getPath() {
>>> return request.getPath();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getQueryString() {
>>> return request.getQueryString();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getRelativePathPrefixToContextRoot() {
>>> return request.getRelativePathPrefixToContextRoot();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getRelativePathPrefixToWicketHandler() {
>>> return request.getRelativePathPrefixToWicketHandler();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getURL() {
>>> return request.getURL();
>>> }
>>> }
>>> [/CODE]
>>>
>>>
>>> Gatos wrote:
>>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>>
>>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>>> <al...@yahoo.com>wrote:
>>>>
>>>>> There is another thread where I have posted a link with implementation
>>>>> (which is currently in production)... so, you can just reuse it:
>>>>>
>>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>>
>>>>> Alex Objelean
>>>>>
>>>>>
>>>>> Gatos wrote:
>>>>>> Hello,
>>>>>>
>>>>>> How is it possible to use such urls in wicket?
>>>>>> If users clicks that link then appropriate page with defined locale
>>>>> will
>>>>>> be
>>>>>> shown.
>>>>>> www.domain.com/uk/home
>>>>>> www.domain.com/nl/home
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by Alex Objelean <al...@yahoo.com>.
It is indeed a simple decorator of the Request object... nothing special..
Alex Objelean
Vytautas C(ivilis wrote:
>
> Question regarding your code in wiki page: RequestDecorator, this seems
> to be class in your package? Could it be posted too?
>
> Regards,
> Vytautas
>
>
> Alex Objelean wrote:
>> I've created a draft version of the page in wiki:
>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>>
>> Now it will not expire ;).
>>
>> Alex Objelean
>>
>>
>> Vytautas C(ivilis wrote:
>>> Hi, Alex.
>>>
>>> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
>>> been expired?
>>>
>>> Thanks!
>>>
>>> Vytautas
>>>
>>> Alex Objelean wrote:
>>>> RequestDecorator is nothing but a decorator implementation of Request
>>>> class...
>>>> [CODE]
>>>> public class RequestDecorator
>>>> extends Request {
>>>> /**
>>>> * Decorated request.
>>>> */
>>>> private final Request request;
>>>>
>>>>
>>>> /**
>>>> * Constructor.
>>>> *
>>>> * @param request to decorate.
>>>> */
>>>> public RequestDecorator(final Request request) {
>>>> if (request == null) {
>>>> throw new IllegalArgumentException("Decorated Request cannot be
>>>> NULL!");
>>>> }
>>>> this.request = request;
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public Locale getLocale() {
>>>> return request.getLocale();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getParameter(final String key) {
>>>> return request.getParameter(key);
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public Map<String, String[]> getParameterMap() {
>>>> return request.getParameterMap();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String[] getParameters(final String key) {
>>>> return request.getParameters(key);
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getPath() {
>>>> return request.getPath();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getQueryString() {
>>>> return request.getQueryString();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getRelativePathPrefixToContextRoot() {
>>>> return request.getRelativePathPrefixToContextRoot();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getRelativePathPrefixToWicketHandler() {
>>>> return request.getRelativePathPrefixToWicketHandler();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getURL() {
>>>> return request.getURL();
>>>> }
>>>> }
>>>> [/CODE]
>>>>
>>>>
>>>> Gatos wrote:
>>>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>>>
>>>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>>>> <al...@yahoo.com>wrote:
>>>>>
>>>>>> There is another thread where I have posted a link with
>>>>>> implementation
>>>>>> (which is currently in production)... so, you can just reuse it:
>>>>>>
>>>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>>>
>>>>>> Alex Objelean
>>>>>>
>>>>>>
>>>>>> Gatos wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> How is it possible to use such urls in wicket?
>>>>>>> If users clicks that link then appropriate page with defined locale
>>>>>> will
>>>>>>> be
>>>>>>> shown.
>>>>>>> www.domain.com/uk/home
>>>>>>> www.domain.com/nl/home
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/urls-with-localization-tp24676709p25754194.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
Thanks again, works perfectly.
Vytautas
Vytautas C wrote:
> My guess it's just simple delegateable class?
>
> Vytautas
>
> Vytautas C wrote:
>> Question regarding your code in wiki page: RequestDecorator, this seems
>> to be class in your package? Could it be posted too?
>>
>> Regards,
>> Vytautas
>>
>>
>> Alex Objelean wrote:
>>> I've created a draft version of the page in wiki:
>>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>>>
>>> Now it will not expire ;).
>>>
>>> Alex Objelean
>>>
>>>
>>> Vytautas C(ivilis wrote:
>>>> Hi, Alex.
>>>>
>>>> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
>>>> been expired?
>>>>
>>>> Thanks!
>>>>
>>>> Vytautas
>>>>
>>>> Alex Objelean wrote:
>>>>> RequestDecorator is nothing but a decorator implementation of Request
>>>>> class...
>>>>> [CODE]
>>>>> public class RequestDecorator
>>>>> extends Request {
>>>>> /**
>>>>> * Decorated request.
>>>>> */
>>>>> private final Request request;
>>>>>
>>>>>
>>>>> /**
>>>>> * Constructor.
>>>>> *
>>>>> * @param request to decorate.
>>>>> */
>>>>> public RequestDecorator(final Request request) {
>>>>> if (request == null) {
>>>>> throw new IllegalArgumentException("Decorated Request cannot be
>>>>> NULL!");
>>>>> }
>>>>> this.request = request;
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public Locale getLocale() {
>>>>> return request.getLocale();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getParameter(final String key) {
>>>>> return request.getParameter(key);
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public Map<String, String[]> getParameterMap() {
>>>>> return request.getParameterMap();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String[] getParameters(final String key) {
>>>>> return request.getParameters(key);
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getPath() {
>>>>> return request.getPath();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getQueryString() {
>>>>> return request.getQueryString();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getRelativePathPrefixToContextRoot() {
>>>>> return request.getRelativePathPrefixToContextRoot();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getRelativePathPrefixToWicketHandler() {
>>>>> return request.getRelativePathPrefixToWicketHandler();
>>>>> }
>>>>>
>>>>>
>>>>> /**
>>>>> * {@inheritDoc}
>>>>> */
>>>>> @Override
>>>>> public String getURL() {
>>>>> return request.getURL();
>>>>> }
>>>>> }
>>>>> [/CODE]
>>>>>
>>>>>
>>>>> Gatos wrote:
>>>>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>>>>
>>>>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>>>>> <al...@yahoo.com>wrote:
>>>>>>
>>>>>>> There is another thread where I have posted a link with implementation
>>>>>>> (which is currently in production)... so, you can just reuse it:
>>>>>>>
>>>>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>>>>
>>>>>>> Alex Objelean
>>>>>>>
>>>>>>>
>>>>>>> Gatos wrote:
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> How is it possible to use such urls in wicket?
>>>>>>>> If users clicks that link then appropriate page with defined locale
>>>>>>> will
>>>>>>>> be
>>>>>>>> shown.
>>>>>>>> www.domain.com/uk/home
>>>>>>>> www.domain.com/nl/home
>>>>>>>>
>>>>>>>> Thank you
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>>
>>>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
My guess it's just simple delegateable class?
Vytautas
Vytautas C wrote:
> Question regarding your code in wiki page: RequestDecorator, this seems
> to be class in your package? Could it be posted too?
>
> Regards,
> Vytautas
>
>
> Alex Objelean wrote:
>> I've created a draft version of the page in wiki:
>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>>
>> Now it will not expire ;).
>>
>> Alex Objelean
>>
>>
>> Vytautas C(ivilis wrote:
>>> Hi, Alex.
>>>
>>> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
>>> been expired?
>>>
>>> Thanks!
>>>
>>> Vytautas
>>>
>>> Alex Objelean wrote:
>>>> RequestDecorator is nothing but a decorator implementation of Request
>>>> class...
>>>> [CODE]
>>>> public class RequestDecorator
>>>> extends Request {
>>>> /**
>>>> * Decorated request.
>>>> */
>>>> private final Request request;
>>>>
>>>>
>>>> /**
>>>> * Constructor.
>>>> *
>>>> * @param request to decorate.
>>>> */
>>>> public RequestDecorator(final Request request) {
>>>> if (request == null) {
>>>> throw new IllegalArgumentException("Decorated Request cannot be
>>>> NULL!");
>>>> }
>>>> this.request = request;
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public Locale getLocale() {
>>>> return request.getLocale();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getParameter(final String key) {
>>>> return request.getParameter(key);
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public Map<String, String[]> getParameterMap() {
>>>> return request.getParameterMap();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String[] getParameters(final String key) {
>>>> return request.getParameters(key);
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getPath() {
>>>> return request.getPath();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getQueryString() {
>>>> return request.getQueryString();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getRelativePathPrefixToContextRoot() {
>>>> return request.getRelativePathPrefixToContextRoot();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getRelativePathPrefixToWicketHandler() {
>>>> return request.getRelativePathPrefixToWicketHandler();
>>>> }
>>>>
>>>>
>>>> /**
>>>> * {@inheritDoc}
>>>> */
>>>> @Override
>>>> public String getURL() {
>>>> return request.getURL();
>>>> }
>>>> }
>>>> [/CODE]
>>>>
>>>>
>>>> Gatos wrote:
>>>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>>>
>>>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>>>> <al...@yahoo.com>wrote:
>>>>>
>>>>>> There is another thread where I have posted a link with implementation
>>>>>> (which is currently in production)... so, you can just reuse it:
>>>>>>
>>>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>>>
>>>>>> Alex Objelean
>>>>>>
>>>>>>
>>>>>> Gatos wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> How is it possible to use such urls in wicket?
>>>>>>> If users clicks that link then appropriate page with defined locale
>>>>>> will
>>>>>>> be
>>>>>>> shown.
>>>>>>> www.domain.com/uk/home
>>>>>>> www.domain.com/nl/home
>>>>>>>
>>>>>>> Thank you
>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by divad91 <di...@hotmail.com>.
Hi,
Do you think it's possible to replace the url language part "/en/" , "/fr/"
by other english or french url ?
Instead of having
/fr/home
/en/home
could we have
/frenchCompanyName/home
/englishCompanyName/home
I changed the LocaleUrlCodingStrategyDecorator class to do so but I have
lots of non related errors..
Thanks for your help.
Dav
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/urls-with-localization-tp1890817p4655435.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
Question regarding your code in wiki page: RequestDecorator, this seems
to be class in your package? Could it be posted too?
Regards,
Vytautas
Alex Objelean wrote:
> I've created a draft version of the page in wiki:
> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
> http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
>
> Now it will not expire ;).
>
> Alex Objelean
>
>
> Vytautas C(ivilis wrote:
>> Hi, Alex.
>>
>> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
>> been expired?
>>
>> Thanks!
>>
>> Vytautas
>>
>> Alex Objelean wrote:
>>> RequestDecorator is nothing but a decorator implementation of Request
>>> class...
>>> [CODE]
>>> public class RequestDecorator
>>> extends Request {
>>> /**
>>> * Decorated request.
>>> */
>>> private final Request request;
>>>
>>>
>>> /**
>>> * Constructor.
>>> *
>>> * @param request to decorate.
>>> */
>>> public RequestDecorator(final Request request) {
>>> if (request == null) {
>>> throw new IllegalArgumentException("Decorated Request cannot be
>>> NULL!");
>>> }
>>> this.request = request;
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public Locale getLocale() {
>>> return request.getLocale();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getParameter(final String key) {
>>> return request.getParameter(key);
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public Map<String, String[]> getParameterMap() {
>>> return request.getParameterMap();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String[] getParameters(final String key) {
>>> return request.getParameters(key);
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getPath() {
>>> return request.getPath();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getQueryString() {
>>> return request.getQueryString();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getRelativePathPrefixToContextRoot() {
>>> return request.getRelativePathPrefixToContextRoot();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getRelativePathPrefixToWicketHandler() {
>>> return request.getRelativePathPrefixToWicketHandler();
>>> }
>>>
>>>
>>> /**
>>> * {@inheritDoc}
>>> */
>>> @Override
>>> public String getURL() {
>>> return request.getURL();
>>> }
>>> }
>>> [/CODE]
>>>
>>>
>>> Gatos wrote:
>>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>>
>>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>>> <al...@yahoo.com>wrote:
>>>>
>>>>> There is another thread where I have posted a link with implementation
>>>>> (which is currently in production)... so, you can just reuse it:
>>>>>
>>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>>
>>>>> Alex Objelean
>>>>>
>>>>>
>>>>> Gatos wrote:
>>>>>> Hello,
>>>>>>
>>>>>> How is it possible to use such urls in wicket?
>>>>>> If users clicks that link then appropriate page with defined locale
>>>>> will
>>>>>> be
>>>>>> shown.
>>>>>> www.domain.com/uk/home
>>>>>> www.domain.com/nl/home
>>>>>>
>>>>>> Thank you
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by Alex Objelean <al...@yahoo.com>.
I've created a draft version of the page in wiki:
http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
http://cwiki.apache.org/confluence/display/WICKET/Wicket+and+localized+URLs
Now it will not expire ;).
Alex Objelean
Vytautas C(ivilis wrote:
>
> Hi, Alex.
>
> Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
> been expired?
>
> Thanks!
>
> Vytautas
>
> Alex Objelean wrote:
>> RequestDecorator is nothing but a decorator implementation of Request
>> class...
>> [CODE]
>> public class RequestDecorator
>> extends Request {
>> /**
>> * Decorated request.
>> */
>> private final Request request;
>>
>>
>> /**
>> * Constructor.
>> *
>> * @param request to decorate.
>> */
>> public RequestDecorator(final Request request) {
>> if (request == null) {
>> throw new IllegalArgumentException("Decorated Request cannot be
>> NULL!");
>> }
>> this.request = request;
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public Locale getLocale() {
>> return request.getLocale();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getParameter(final String key) {
>> return request.getParameter(key);
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public Map<String, String[]> getParameterMap() {
>> return request.getParameterMap();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String[] getParameters(final String key) {
>> return request.getParameters(key);
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getPath() {
>> return request.getPath();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getQueryString() {
>> return request.getQueryString();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getRelativePathPrefixToContextRoot() {
>> return request.getRelativePathPrefixToContextRoot();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getRelativePathPrefixToWicketHandler() {
>> return request.getRelativePathPrefixToWicketHandler();
>> }
>>
>>
>> /**
>> * {@inheritDoc}
>> */
>> @Override
>> public String getURL() {
>> return request.getURL();
>> }
>> }
>> [/CODE]
>>
>>
>> Gatos wrote:
>>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>>
>>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>>> <al...@yahoo.com>wrote:
>>>
>>>>
>>>> There is another thread where I have posted a link with implementation
>>>> (which is currently in production)... so, you can just reuse it:
>>>>
>>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>>
>>>> Alex Objelean
>>>>
>>>>
>>>> Gatos wrote:
>>>>> Hello,
>>>>>
>>>>> How is it possible to use such urls in wicket?
>>>>> If users clicks that link then appropriate page with defined locale
>>>> will
>>>>> be
>>>>> shown.
>>>>> www.domain.com/uk/home
>>>>> www.domain.com/nl/home
>>>>>
>>>>> Thank you
>>>>>
>>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/urls-with-localization-tp24676709p25713262.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by "ivilis <vytautas.civilis@gmail.com>" <Vytautas>.
Hi, Alex.
Could you repost LocaleUrlCodingStrategyDecorator to pastebin, as it has
been expired?
Thanks!
Vytautas
Alex Objelean wrote:
> RequestDecorator is nothing but a decorator implementation of Request
> class...
> [CODE]
> public class RequestDecorator
> extends Request {
> /**
> * Decorated request.
> */
> private final Request request;
>
>
> /**
> * Constructor.
> *
> * @param request to decorate.
> */
> public RequestDecorator(final Request request) {
> if (request == null) {
> throw new IllegalArgumentException("Decorated Request cannot be
> NULL!");
> }
> this.request = request;
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public Locale getLocale() {
> return request.getLocale();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getParameter(final String key) {
> return request.getParameter(key);
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public Map<String, String[]> getParameterMap() {
> return request.getParameterMap();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String[] getParameters(final String key) {
> return request.getParameters(key);
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getPath() {
> return request.getPath();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getQueryString() {
> return request.getQueryString();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getRelativePathPrefixToContextRoot() {
> return request.getRelativePathPrefixToContextRoot();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getRelativePathPrefixToWicketHandler() {
> return request.getRelativePathPrefixToWicketHandler();
> }
>
>
> /**
> * {@inheritDoc}
> */
> @Override
> public String getURL() {
> return request.getURL();
> }
> }
> [/CODE]
>
>
> Gatos wrote:
>> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>>
>> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
>> <al...@yahoo.com>wrote:
>>
>>>
>>> There is another thread where I have posted a link with implementation
>>> (which is currently in production)... so, you can just reuse it:
>>>
>>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>>
>>> Alex Objelean
>>>
>>>
>>> Gatos wrote:
>>>> Hello,
>>>>
>>>> How is it possible to use such urls in wicket?
>>>> If users clicks that link then appropriate page with defined locale
>>> will
>>>> be
>>>> shown.
>>>> www.domain.com/uk/home
>>>> www.domain.com/nl/home
>>>>
>>>> Thank you
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by Alex Objelean <al...@yahoo.com>.
RequestDecorator is nothing but a decorator implementation of Request
class...
[CODE]
public class RequestDecorator
extends Request {
/**
* Decorated request.
*/
private final Request request;
/**
* Constructor.
*
* @param request to decorate.
*/
public RequestDecorator(final Request request) {
if (request == null) {
throw new IllegalArgumentException("Decorated Request cannot be
NULL!");
}
this.request = request;
}
/**
* {@inheritDoc}
*/
@Override
public Locale getLocale() {
return request.getLocale();
}
/**
* {@inheritDoc}
*/
@Override
public String getParameter(final String key) {
return request.getParameter(key);
}
/**
* {@inheritDoc}
*/
@Override
public Map<String, String[]> getParameterMap() {
return request.getParameterMap();
}
/**
* {@inheritDoc}
*/
@Override
public String[] getParameters(final String key) {
return request.getParameters(key);
}
/**
* {@inheritDoc}
*/
@Override
public String getPath() {
return request.getPath();
}
/**
* {@inheritDoc}
*/
@Override
public String getQueryString() {
return request.getQueryString();
}
/**
* {@inheritDoc}
*/
@Override
public String getRelativePathPrefixToContextRoot() {
return request.getRelativePathPrefixToContextRoot();
}
/**
* {@inheritDoc}
*/
@Override
public String getRelativePathPrefixToWicketHandler() {
return request.getRelativePathPrefixToWicketHandler();
}
/**
* {@inheritDoc}
*/
@Override
public String getURL() {
return request.getURL();
}
}
[/CODE]
Gatos wrote:
>
> I'm using wicket 1.3.5 and RequestDecorator could not be found.
>
> On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean
> <al...@yahoo.com>wrote:
>
>>
>>
>> There is another thread where I have posted a link with implementation
>> (which is currently in production)... so, you can just reuse it:
>>
>> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>>
>> Alex Objelean
>>
>>
>> Gatos wrote:
>> >
>> > Hello,
>> >
>> > How is it possible to use such urls in wicket?
>> > If users clicks that link then appropriate page with defined locale
>> will
>> > be
>> > shown.
>> > www.domain.com/uk/home
>> > www.domain.com/nl/home
>> >
>> > Thank you
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
--
View this message in context: http://www.nabble.com/urls-with-localization-tp24676709p24681795.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by Jan Kriesten <kr...@mail.footprint.de>.
> I'm using wicket 1.3.5 and RequestDecorator could not be found.
You have to read the posts more carefully - there were two references to pastebin!
--- Jan.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: urls with localization
Posted by Gatos <eg...@gmail.com>.
I'm using wicket 1.3.5 and RequestDecorator could not be found.
On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean <al...@yahoo.com>wrote:
>
>
> There is another thread where I have posted a link with implementation
> (which is currently in production)... so, you can just reuse it:
>
> http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
>
> Alex Objelean
>
>
> Gatos wrote:
> >
> > Hello,
> >
> > How is it possible to use such urls in wicket?
> > If users clicks that link then appropriate page with defined locale will
> > be
> > shown.
> > www.domain.com/uk/home
> > www.domain.com/nl/home
> >
> > Thank you
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: urls with localization
Posted by Alex Objelean <al...@yahoo.com>.
There is another thread where I have posted a link with implementation
(which is currently in production)... so, you can just reuse it:
http://www.nabble.com/Is-IRequestTargetUrlCodingStrategy-needed-for-mapping-bookmarkable--URLs--td24407411.html#a24409330
Alex Objelean
Gatos wrote:
>
> Hello,
>
> How is it possible to use such urls in wicket?
> If users clicks that link then appropriate page with defined locale will
> be
> shown.
> www.domain.com/uk/home
> www.domain.com/nl/home
>
> Thank you
>
>
--
View this message in context: http://www.nabble.com/urls-with-localization-tp24676709p24677616.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org