Re: urls with localization
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >>>>> 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.nabbl
Re: urls with localization
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 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 >>>>>> 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-unsubscr...@wicket.apache.org >>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>>> >>>>>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>>> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >>>>> 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-unsubscr...@wicket.apache.org >>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>> >>>>>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >>>> 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-unsubscr...@wicket.apache.org >>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>> >>>>> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >>>> 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-unsubscr...@wicket.apache.org >>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>> >>>>> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >>> 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-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 >> 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-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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 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 > 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-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
> 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
I'm using wicket 1.3.5 and RequestDecorator could not be found. On Mon, Jul 27, 2009 at 1:05 PM, Alex Objelean 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: urls with localization
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: urls with localization
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org