Re: How to use language/locale from url without creating a session?

2018-05-31 Thread Bas Gooren
, Bas Gooren Op 26 mei 2018 bij 13:41:25, Martin Grigorov (mgrigo...@apache.org) schreef: Hi, Here is another solution: - put the locale in RequestCycle's metadata - override Session#getLocale() and if Session#isTemporary() then use the metadata, otherwise use the session's locale On Fri, May 25

Re: How to use language/locale from url without creating a session?

2018-05-26 Thread Martin Grigorov
Hi, Here is another solution: - put the locale in RequestCycle's metadata - override Session#getLocale() and if Session#isTemporary() then use the metadata, otherwise use the session's locale On Fri, May 25, 2018 at 7:20 PM, Bas Gooren <b...@iswd.nl> wrote: > Hi! > > We build ma

How to use language/locale from url without creating a session?

2018-05-25 Thread Bas Gooren
Hi! We build mainly e-commerce websites on wicket, which means most pages are publicly visible and indexable. Since our websites are multi-language we have a custom CompoundRequestMapper which checks if the url contains a valid locale, and updates the session locale accordingly. This works great

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-08 Thread extraquoo
I add a converter class and it works without impacting the message resources. Thank you so much. -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-06 Thread Sven Meier
protected NumberFormat newNumberFormat(Locale locale) {                             return super.newNumberFormat(Locale.ENGLISH);                         };                     };                 }             }); You could equally well just override Component#getLocale() to return ENGLISH, but th

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread extraquoo
why using getDateFormat() for the decimal/currency converter ? can you explain a little bit detailed? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail:

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread Sven Meier
Hi, override #newConverter() and let is return a subclass of DateConverter, which overrides #getDateFormat() to return a DateFormat ignoring the given locale. Have fun Sven Am 05.01.2018 um 19:03 schrieb extraquoo: I understand. could you please show me any sample of such this custom

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread extraquoo
I understand. could you please show me any sample of such this custom converter? -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: wicket switch locale to Spanish but dot is being ignored

2018-01-05 Thread Sven Meier
b: >Hi , > >my application supports the locale switch and when I am switching to >Spanish >locale, the bigDecimal type textfield cannot be recognized the dot (eg. >555.555 is read as 55 ). > >The textfield code is: > >final

wicket switch locale to Spanish but dot is being ignored

2018-01-04 Thread extraquoo
Hi , my application supports the locale switch and when I am switching to Spanish locale, the bigDecimal type textfield cannot be recognized the dot (eg. 555.555 is read as 55 ). The textfield code is: final FormBorder q4Border = new FormBorder( "questio

Re: Locale issue with kendoui local date time picker

2017-04-01 Thread Maxim Solodovnik
I'm afraid this is incomplete solution I can try to get all different AM/PM symbols, but solution seems to be incomplete :( According to this demo: http://demos.telerik.com/kendo-ui/datetimepicker/api Telerik own datetimepicker.value() JS getter returns GMT date/time Can it be used? On Sat, Apr

Re: Locale issue with kendoui local date time picker

2017-04-01 Thread Sebastien
Hi Maxim, Thanks for having looked into details! So, I am now doing a conversion as soon as the input is processed (#getInput). The conversion is performed in an utility method [1] which might be completed in the future (the user can still override DatePicker#getInput() or TimePicker#getInput()

Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Maxim Solodovnik
I guess, maybe client side processing can be added? i.e. value can be "normalized" before being accessible by wicket? On Sat, Apr 1, 2017 at 11:14 AM, Maxim Solodovnik wrote: > AM can also be: > AM: "နံနက်" > AM: "上午" > AM: "PD" > AM: "காலை" > AM: "dop." > > >

Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Maxim Solodovnik
AM can also be: AM: "နံနက်" AM: "上午" AM: "PD" AM: "காலை" AM: "dop." Is there any well known method to get value from JS.min file? On Sat, Apr 1, 2017 at 11:10 AM, Maxim Solodovnik wrote: > BTW problem is wider :( > in

Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Maxim Solodovnik
BTW problem is wider :( in wicket-kendo-ui-culture/src/main/resources/com/googlecode/wicket/kendo/ui/resource/cultures There are 25 files with "a.m." :( On Sat, Apr 1, 2017 at 10:08 AM, Maxim Solodovnik wrote: > Thanks for the investigation > I'll try to implement

Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Maxim Solodovnik
Thanks for the investigation I'll try to implement something like this: http://stackoverflow.com/questions/13581608/displaying-am-and-pm-in-small-letter-after-date-formatting/42466448#42466448 Will let you know :) On Sat, Apr 1, 2017 at 3:23 AM, Sebastien wrote: >

Re: Locale issue with kendoui local date time picker

2017-03-31 Thread Sebastien
(transferring to users@) Hi Maxim, The #setLabel issue is because DateTimePicker is a composition (of a DatePicker and a TimePicker), therefore you need to set it in #newDateTime and #newTimePicker. If I supply DateTimePicker#label to underlying datepicker and timepicker, it will be unique/same

Re: Failing locale dependent tests in wicket-core

2016-03-30 Thread Tobias Soloschenko
output in your other thread about the issue in the Spring related test. It is a bug in the tests. If a test expects to see _en in the result then it should make sure the session locale is EN. I build Wicket with bg_BG all the time but those tests do not fail in that case :-/ Martin Grigorov

Re: Failing locale dependent tests in wicket-core

2016-03-30 Thread Martin Grigorov
; > It is a bug in the tests. > If a test expects to see _en in the result then it should make sure the > session locale is EN. > > I build Wicket with bg_BG all the time but those tests do not fail in that > case :-/ > > Martin Grigorov > Wicket Training and Consulting > http

Re: Failing locale dependent tests in wicket-core

2016-03-30 Thread Martin Grigorov
I've pasted the same output in your other thread about the issue in the Spring related test. It is a bug in the tests. If a test expects to see _en in the result then it should make sure the session locale is EN. I build Wicket with bg_BG all the time but those tests do not fail in that case

Failing locale dependent tests in wicket-core

2016-03-30 Thread Thorsten Schöning
ndleTest.concatBundle:48->Assert.assertEquals:144->Assert.assertEquals:115 > expected: but was: > > ResourceReferenceLocatingTest.locateMinifiedJavaScriptResourceReference:214->checkNonStrictUsingJavaScriptResourceReference:236->Assert.assertThat:956 > TestCase [locale=

wicket-jquery-ui calendar locale question

2015-08-07 Thread Sandor Feher
Hi, Now I'm checking if calendar component suits to our needs (http://www.7thweb.net/wicket-jquery-ui/calendar/ExtendedCalendarPage?). Is there any options which influence the locale behaviour of Calendar component ? For example in header section the year and month name order and so one. TIA

Re: wicket-jquery-ui calendar locale question

2015-08-07 Thread Sebastien
needs (http://www.7thweb.net/wicket-jquery-ui/calendar/ExtendedCalendarPage?). Is there any options which influence the locale behaviour of Calendar component ? For example in header section the year and month name order and so one. TIA, Sandor -- View this message in context: http

Re: wicket-jquery-ui calendar locale question

2015-08-07 Thread Sandor Feher
-locale-question-tp4671747p4671749.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: wicket-jquery-ui calendar locale question

2015-08-07 Thread Sebastien
to use l10n... TIA, Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-jquery-ui-calendar-locale-question-tp4671747p4671749.html Sent from the Users forum mailing list archive at Nabble.com

Re: Package resource location does not consider current session style and locale

2015-05-18 Thread Sergiy Barlabanov
Done. https://issues.apache.org/jira/browse/WICKET-5909 sorry for delay. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Package-resource-location-does-not-consider-current-session-style-and-locale-tp4670338p4670823.html Sent from the Users forum mailing list

Re: Package resource location does not consider current session style and locale

2015-04-17 Thread Sven Meier
of sample_style.css), which is returned to the browser. This seems to be a bug, isn't it? The same applies to the locale. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Package-resource-location-does-not-consider-current-session-style-and-locale-tp4670338.html Sent

Re: Package resource location does not consider current session style and locale

2015-04-17 Thread Martin Grigorov
PackageResource#getResourceStream(), which does not take Session.get().getStyle() into account and as a result locates the wrong resource file (sample.css instead of sample_style.css), which is returned to the browser. This seems to be a bug, isn't it? The same applies to the locale. -- View

Package resource location does not consider current session style and locale

2015-04-16 Thread Sergiy Barlabanov
#newResourceResponse uses PackageResource#getResourceStream(), which does not take Session.get().getStyle() into account and as a result locates the wrong resource file (sample.css instead of sample_style.css), which is returned to the browser. This seems to be a bug, isn't it? The same applies to the locale

Locale in NumberTextField

2014-04-07 Thread Per Newgro
Hello, i have a question regarding the input conversion in NumberTextField (wicket 6.14) This is the code in question: /** * Always use {@link Locale#ENGLISH} to parse the input. */ @Override protected void convertInput

Re: Locale in NumberTextField

2014-04-07 Thread Martin Grigorov
in question: /** * Always use {@link Locale#ENGLISH} to parse the input. */ @Override protected void convertInput() { IConverterN converter = getConverter(getNumberType()); try { setConvertedInput

Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
Hi, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session locale and it works fine. Nevertheless I wonder if it is a proper place

Re: Change a session locale using a GET parameter

2013-11-25 Thread Martin Grigorov
, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session locale and it works fine. Nevertheless I wonder if it is a proper place

Re: Change a session locale using a GET parameter

2013-11-25 Thread Marcin Zajączkowski
On Mon, Nov 25, 2013 at 6:31 PM, Marcin Zajączkowski msz...@wp.pl wrote: Hi, In the application an user should be able to change session locale with a GET parameter (e.g. ?locale=pl). I implemented it in onConfigure for my abstract WebPage where I check if the parameter exists and change session

Calendar set Locale

2013-09-25 Thread selom
Hi everybody. I am a newby with wicket ... Actually I am using jquery.ui.*calendar*. Nice. And I don't know how to set this Locale from English to *French*. Thanks for you help. Regards. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale

Re: Calendar set Locale

2013-09-25 Thread Martin Grigorov
how to set this Locale from English to *French*. Thanks for you help. Regards. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491.html Sent from the Users forum mailing list archive at Nabble.com

Re: Calendar set Locale

2013-09-25 Thread selom
Hello, I am using https://github.com/sebfz1/wicket-jquery-ui/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491p4661493.html Sent from the Users forum mailing list archive at Nabble.com

Re: Calendar set Locale

2013-09-25 Thread Sebastien
: Hello, I am using https://github.com/sebfz1/wicket-jquery-ui/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491p4661493.html Sent from the Users forum mailing list archive at Nabble.com

Re: Calendar set Locale [SOLVED]

2013-09-25 Thread Selom
Hi Seb, Like someone says, it works like clockwork. Thanks you very much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Calendar-set-Locale-tp4661491p4661496.html Sent from the Users forum mailing list archive at Nabble.com

How properly set locale on application startup

2013-07-23 Thread meduolis
Hi, I try to set locale for my custom session on application newSession method like this: When application start I get my pages localized in EN language, not in XX. What am I doing wrong here? Please help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How

Re: How properly set locale on application startup

2013-07-23 Thread Paul Bors
Maybe you don't have the language pack for the locale you set hence Wicket defaults to the english langauge pack? Get yourself familiar with Chapter 12 Internationalization with Wicket of the Wicket Free Guide http://wicket.apache.org/learn/books/freeguide.html - ~ Thank you, p

Re: How properly set locale on application startup

2013-07-23 Thread meduolis
Thanks for reply, it was my browser cache :). Thanks anyway. The code I mentioned above works as expected. Issue solved. Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-properly-set-locale-on-application-startup-tp4660439p4660443.html Sent from

RE: How properly set locale on application startup

2013-07-23 Thread Paul Bors
When in doubt... clear your cache :) ~ Thank you, Paul Bors -Original Message- From: meduolis [mailto:meduol...@gmail.com] Sent: Tuesday, July 23, 2013 4:14 PM To: users@wicket.apache.org Subject: Re: How properly set locale on application startup Thanks for reply, it was my browser

Is the algorithm used to locate markup via variation, locale etc., pluggable?

2013-03-30 Thread Chris Colman
I'm interested in doing a slight change to the way Wicket resolved markup files in regard to varation, style and locale. Is the algorithm that implements this markup resolution process provided via a pluggable interface or is it hard coded into the framework? Yours sincerely, Chris Colman

Re: Is the algorithm used to locate markup via variation, locale etc., pluggable?

2013-03-30 Thread Andrea Del Bene
markup files in regard to varation, style and locale. Is the algorithm that implements this markup resolution process provided via a pluggable interface or is it hard coded into the framework? Yours sincerely, Chris Colman Pagebloom Team Leader, Step Ahead Software pagebloom - your business

RE: Is the algorithm used to locate markup via variation, locale etc., pluggable?

2013-03-30 Thread Chris Colman
: Saturday, 30 March 2013 10:20 PM To: users@wicket.apache.org Subject: Re: Is the algorithm used to locate markup via variation, locale etc., pluggable? Yes you can freely customize it. What exactly do you want to do? advertisement How this algorithm works it's explained in chapter 12 of Wicket

RE: Is the algorithm used to locate markup via variation, locale etc., pluggable?

2013-03-30 Thread Chris Colman
Actually I think I found it: 12.4.5 in the guide! -Original Message- From: Andrea Del Bene [mailto:an.delb...@gmail.com] Sent: Saturday, 30 March 2013 10:20 PM To: users@wicket.apache.org Subject: Re: Is the algorithm used to locate markup via variation, locale etc., pluggable? Yes you

Re: Is the algorithm used to locate markup via variation, locale etc., pluggable?

2013-03-30 Thread Andrea Del Bene
via variation, locale etc., pluggable? Yes you can freely customize it. What exactly do you want to do? advertisement How this algorithm works it's explained in chapter 12 of Wicket guide :) http://code.google.com/p/wicket-guide/downloads/list /advertisement I'm interested in doing a slight

Re: Mounting URLs with locale prefix

2012-08-28 Thread asfernandes
: for (int i = 0; i getBaseUrl().getSegments().size() - 1; ++i) by: for (int i = 1; i getBaseUrl().getSegments().size() - 1; ++i) So now it doesn't strip the ${locale} part of the URL to relativize resources paths. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting

Re: Mounting URLs with locale prefix

2012-08-28 Thread Martin Grigorov
The segment with the locale should be removed by the IRequestMapper as LocaleFirstMapper does. But in your case you have the locale hardcoded in the .css file, or at least this is what I understood, and Wicket should not remove anything that is not added by it. There could be a bug in UrlRenderer

Re: Mounting URLs with locale prefix

2012-08-28 Thread asfernandes
Martin Grigorov-4 wrote The segment with the locale should be removed by the IRequestMapper as LocaleFirstMapper does. But on UrlRenderer#renderContextRelativeUrl, getBaseUrl() shows pt-br/home when I'm accessing http://localhost:8990/Site/pt-br/home This caused my tags to be rewritten

Mounting URLs with locale prefix

2012-08-27 Thread Adriano dos Santos Fernandes
Hi! I do want to mount our application URLs as following: /${locale}/PageName So I can access Page1 as: /pt-br/Page1 /en-us/Page1 The application is a simple website with not so many dynamic content, so in most cases it directly uses a href=... /, img src=... / without wicket:id. That's fine

Re: Mounting URLs with locale prefix

2012-08-27 Thread Martin Grigorov
Hi, Check http://www.wicket-library.com/wicket-examples/mappers/en_US example. It shows how to do this with LocaleFirstMapper.java On Mon, Aug 27, 2012 at 2:20 PM, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Hi! I do want to mount our application URLs as following: /${locale

Re: Mounting URLs with locale prefix

2012-08-27 Thread asfernandes
my resources inside the locale directory, so CSS background-image in HTML files work, but then it fails on the other resources (caused by this ../ prefix). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Mounting-URLs-with-locale-prefix-tp4651528p4651539.html Sent

set locale in cookie

2012-06-10 Thread oliver.stef
Hi, I'm bulidng my application and i want the user to set is prefered language. My problem is that i want to save the user selecteion in a cookie (i need to set the cookie locale, no?) but i havn't found any working implementation that can show me how it's done. Is there any one that can help

Re: set locale in cookie

2012-06-10 Thread oliver.stef
Hi Martin, Thank you for your fast replay! What do you mean by saying: ...parse it and set it in the session. How to do it? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-locale-in-cookie-tp4649827p4649829.html Sent from the Users forum mailing list archive

Re: set locale in cookie

2012-06-10 Thread Martin Grigorov
On Sun, Jun 10, 2012 at 7:32 PM, oliver.stef ova...@gmail.com wrote: Hi Martin, Thank you for your fast replay! What do you mean by saying: ...parse it and set it in the session. How to do it? The cookie value will be a String like en or en_US or en_US_variation. Create a Locale object

Re: set locale in cookie

2012-06-10 Thread oliver.stef
Thanks again! It's now much clearer!! for some reason i have error on CookieUtils... so i implement it like this: (on my HomePage.java) form.add(new SubmitLink(English){ @Override public void onSubmit() { getSession().setLocale(new Locale(en_US

Re: set locale in cookie

2012-06-10 Thread Daniel Suckow
You can use RequestCycleListener to change locale setting in case . In Application init(): getRequestCycleListeners().add(new RequestLocaleListener()); public class RequestLocaleListener extends AbstractRequestCycleListener { public static final String LOCALE_COOKIE = LC

Re: set locale in cookie

2012-06-10 Thread oliver.stef
YAP!!! WORKING MARTIN - Thanks again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-locale-in-cookie-tp4649827p4649833.html Sent from the Users forum mailing list archive at Nabble.com

Re: set locale in cookie

2012-06-10 Thread oliver.stef
YAP!!! WORKING MARTIN - Thanks again! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-locale-in-cookie-tp4649827p4649834.html Sent from the Users forum mailing list archive at Nabble.com

Re: set locale in cookie

2012-06-10 Thread Martin Grigorov
() {                getSession().setLocale(new Locale(en_US));            Cookie languageCookie = new Cookie(WicketApplication.LANGUAGE_COOKIE_NAME, en_US);                     languageCookie.setMaxAge(WicketApplication.LANGUAGE_COOKIE_AGE);                    ((WebResponse)getResponse()).addCookie

Mapping different paths to the same page and updating session Locale

2012-04-23 Thread sb
Hi, I'm new to wicket I'm trying to map two different paths like /first.html /primero.html to the same page and depending on the mount used the Locale should be set so that the site is internationalized. I've overriden MountedMapper with the following: CODE START import

Re: Mapping different paths to the same page and updating session Locale

2012-04-23 Thread Martin Grigorov
Hi, You should also override #mapHandler() method to produce Urls depending on the current locale. On Mon, Apr 23, 2012 at 6:12 PM, sb simon.bott...@gmail.com wrote: Hi, I'm new to wicket I'm trying to map two different paths like /first.html /primero.html to the same page and depending

Re: Mapping different paths to the same page and updating session Locale

2012-04-23 Thread sb
) { IRequestHandler requestHandler; if (requestPathMatches(_request)) { // set the Locale Session session = Session.get(); session.setLocale(locale); requestHandler = super.mapRequest(_request); } else { requestHandler = null; } return

Re: inferring locale from URL in 1.5

2012-03-26 Thread armhold
Try clicking the source code links from wicket-library.com. Always times out for me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inferring-locale-from-URL-in-1-5-tp4497412p4505742.html Sent from the Users forum mailing list archive at Nabble.com

Re: inferring locale from URL in 1.5

2012-03-26 Thread Martijn Dashorst
in context: http://apache-wicket.1842946.n4.nabble.com/inferring-locale-from-URL-in-1-5-tp4497412p4505742.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: inferring locale from URL in 1.5

2012-03-26 Thread Martin Grigorov
from wicket-library.com. Always times out for me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inferring-locale-from-URL-in-1-5-tp4497412p4505742.html Sent from the Users forum mailing list archive at Nabble.com

Re: inferring locale from URL in 1.5

2012-03-26 Thread armhold
Hmm, I was actually planning to use that code (LazyHttpsConfig) myself. Looked like a nice way to avoid hard-coding port numbers for dev vs prod use. Maybe not now. :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/inferring-locale-from-URL-in-1-5

Re: inferring locale from URL in 1.5

2012-03-25 Thread armhold
what I came up with: https://gist.github.com/2198074 I suspect that stripping the locale from the hostname (vs path segment) is not needed, since you were probably doing that in your example so that the locale doesn't show up as a parameter to the page. I'm still experimenting with it. Thanks

Re: inferring locale from URL in 1.5

2012-03-25 Thread Martin Grigorov
impls are very flexible :-) I suspect that stripping the locale from the hostname (vs path segment) is not needed, since you were probably doing that in your example so that the locale doesn't show up as a parameter to the page. I'm still experimenting with it. Thanks again for your help

Re: inferring locale from URL in 1.5

2012-03-23 Thread Martin Grigorov
Hi, Check http://www.wicket-library.com/wicket-examples/mappers/ - LocaleFirstMapper On Fri, Mar 23, 2012 at 2:04 AM, armhold armh...@gmail.com wrote: What's the cleanest way to set a user's locale based on the domainname of the URL of the request in 1.5? https://cwiki.apache.org/WICKET

inferring locale from URL in 1.5

2012-03-22 Thread armhold
What's the cleanest way to set a user's locale based on the domainname of the URL of the request in 1.5? https://cwiki.apache.org/WICKET/wicket-and-localized-urls.html This guide relies on overriding newRequestCycleProcessor(). Would a proper 1.5 analog be to add a custom

Re: Promlem with date format on changing locale

2012-02-17 Thread Jeremy Thomerson
On Mon, Feb 13, 2012 at 8:57 AM, cosmindumy cosmind...@yahoo.com wrote: Hello again, I have the following problem. I have a customized DateTimePanel component, wich has a DateTextFiled. The problem is that when I change the locale and pressing submit the date is not valid anymore due to date

Re: Promlem with date format on changing locale

2012-02-17 Thread cosmindumy
I solved it somehow. I used addOrReplace(component) so the date is again replaced with the format of the new locale. It's not good solution. Anyway, I have DatePanel that has inside a DateTextField. There is no setter for converter of Date Text Field. In my case date format is not changed when I

Re: Problem with date format on changing locale

2012-02-14 Thread cosmindumy
-on-changing-locale-tp4383834p4386555.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

Promlem with date format on changing locale

2012-02-13 Thread cosmindumy
Hello again, I have the following problem. I have a customized DateTimePanel component, wich has a DateTextFiled. The problem is that when I change the locale and pressing submit the date is not valid anymore due to date format. For example I have set the locale de-DE, date looks 02.02.2012 I

Locale custom mapper in Wicket's example with JQWicket

2011-11-10 Thread Toru Watanabe
Hello, I'm trying to use Wicket(1.5.1) with JQWicket(0.7). But it does not work together with a locale custom mapper shown in Wicket's example page. http://wicketstuff.org/wicket/mappers/de_DE When I access a page where JQWicket components are added through this custom mapper, no JavaScript

Re: How to get a translated string for an arbitrary locale?

2011-10-29 Thread Andrew Schetinin
Thanks, Igor, it worked. Regards, Andrew Schetinin On Fri, Oct 28, 2011 at 10:45 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you are right. i was looking in 1.5 where we have exposed the locale. for the time being you can simply do this: Locale old=session.getlocale

How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
for that key in more than one language (I have a list of locale names). It is easy to get a translation for a current locale - component.getLocalizer().getString() would do the job. But Localizer does not help me to get strings for other locales. Once upon a time, there seems to be Localizer.getString

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
Localizer#getString(final String key, final Component component, final IModel? model, final Locale locale, final String style, final String defaultValue) -igor On Fri, Oct 28, 2011 at 10:54 AM, Andrew Schetinin ascheti...@gmail.com wrote: Hi, I have a question about Wicket localization I

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Andrew Schetinin
Hi Igor, But as I said, this method is deprecated and ignores Locale parameter: @Deprecated public String getString(final String key, final Component component, final IModel? model, final Locale locale, final String style, final String defaultValue) throws

Re: How to get a translated string for an arbitrary locale?

2011-10-28 Thread Igor Vaynberg
you are right. i was looking in 1.5 where we have exposed the locale. for the time being you can simply do this: Locale old=session.getlocale(); session.setlocale(foo); localizer.get(..); session.setlocale(old); -igor On Fri, Oct 28, 2011 at 1:22 PM, Andrew Schetinin ascheti...@gmail.com wrote

changing image on locale change

2011-04-01 Thread hrbaer
and implemented the onSelectionChanged method. If the user choose another option the only thing I have to do is to set the Locale to the choosen language. Is there a similar functionality for images? At the moment I've tried a little bit with this: -- Image imageGerman = new Image( someImage

Re: changing image on locale change

2011-04-01 Thread Igor Vaynberg
There is a locale pub example in wicket-examples that shows how to do it. -igor On Apr 1, 2011 3:21 PM, hrbaer herber.m...@gmail.com wrote: Hi all, is there any chance to change an image once the user choose another language? With a text it's very easy because the only thing you have

Re: changing image on locale change

2011-04-01 Thread hrbaer
Thanks Igor. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/changing-image-on-locale-change-tp3421291p3421371.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e

Re: How to set fallback locale?

2011-02-24 Thread Minas Manthos
*bump* +1 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-set-fallback-locale-tp3160912p3322517.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: How to set fallback locale?

2011-02-24 Thread Martin Grigorov
In a base page check the current locale and if it is not in the list of supported ones just change it to the default one. On Thu, Feb 24, 2011 at 2:29 PM, Minas Manthos minas.mant...@gmail.comwrote: *bump* +1 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How

Re: Set default locale when suitable locale not found

2011-02-02 Thread planime
thanks for informative answer -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Set-default-locale-when-suitable-locale-not-found-tp3252800p3254024.html Sent from the Users forum mailing list archive at Nabble.com

Set default locale when suitable locale not found

2011-02-01 Thread planime
In project i have several *.properties files for custom locale (page_en_GB and page_ru_RU).When user with default locale en US come, hes got exception. Can I do that if a suitable location has not been found to use my custom locale ? I try to use Locale.setDafault(...), but it doesnt work

Re: Set default locale when suitable locale not found

2011-02-01 Thread Igor Vaynberg
if no matches are made the user should fall back to page.html and page.properties. so put your default locale into those files instead of specific locales. otherwise you can call session.setlocale() to force it. -igor On Tue, Feb 1, 2011 at 11:36 AM, planime planime...@mailforspam.com wrote

Default Locale and Resource Lookup Order

2011-01-16 Thread Bruno Borges
I've searched for this on the mailing list archive but could not find. Sorry if my search skills are bad. :-) My application is entirely based on pt_BR, so I create sessions with that specific locale. All resources are based on the pattern ResourceFile.extension. The problem is that Wicket keeps

Re: Default Locale and Resource Lookup Order

2011-01-16 Thread Jeremy Thomerson
On Sun, Jan 16, 2011 at 12:59 PM, Bruno Borges bruno.bor...@gmail.comwrote: I've searched for this on the mailing list archive but could not find. Sorry if my search skills are bad. :-) My application is entirely based on pt_BR, so I create sessions with that specific locale. All resources

CSS not depending on locale but some other logic

2010-08-03 Thread armandoxxx
.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311409.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: CSS not depending on locale but some other logic

2010-08-03 Thread James Carman
.css/ //must be the last one ! Any hints would be appreciated ! King regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311409.html Sent from the Wicket - User mailing list archive

Re: CSS not depending on locale but some other logic

2010-08-03 Thread armandoxxx
Hey Thank you for your reply .. that is what I was looking for ! Kind regards Armando -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CSS-not-depending-on-locale-but-some-other-logic-tp2311409p2311753.html Sent from the Wicket - User mailing list archive

Re: get resource translation with specific locale

2010-06-09 Thread Erik van Oosten
Hi Marieke, To force a component to be rendered in another locale (in this case your e-mail), you can override getLocale() from the top-most component that is used to render the e-mail. Regards, Erik. On Tue, Jun 8, 2010 at 3:30 AM, Marieke Vandammemarieke.vanda...@tvh.be wrote

Re: get resource translation with specific locale

2010-06-09 Thread Marieke Vandamme
Hi Erik, problem is that I generate the emailtext in the onSubmit of my form. The data that is printed in my form, and visible to the webuser, needs to be in the locale from the session. So I can't override the getLocale from the Form. Or am I missing something? Thanks, Marieke -- View

Re: get resource translation with specific locale

2010-06-09 Thread Erik van Oosten
Hi Marieke, So you are using getString? In that case my suggestion won't work. You could still add an invisible component to the form, but that's about as hairy as temporarily setting the session locale. Erik. Op 09-06-10 14:24, Marieke Vandamme schreef: Hi Erik, problem is that I

get resource translation with specific locale

2010-06-08 Thread Marieke Vandamme
something. Now I save the locale from the session into a temp-locale variable, and change the locale from the session to the email-language. Than I can use the getString function. Afterwards I put the temp-locale variable back into the session. I don't find this a perfect solution, so I have you

  1   2   3   >