Re: How to set wicket's locale?

2007-09-07 Thread Gabor Szokoli
I'm planing to have a little celebration in our office when our webapp is officially released to customers. I was thinking about ordering pizza to be delivered to the wicket developers who have helped us so much here on the list, so they can share our joy, not just our problems. How hard can it be

Re: How to set wicket's locale?

2007-09-06 Thread Johan Compagner
can you send some over? On 9/6/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > > T-37 minutes until sushi time! > > On 9/6/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > sushi > > > > > > -igor > > > > > > On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > > new PropertyM

Re: How to set wicket's locale?

2007-09-06 Thread Igor Vaynberg
you suck! -igor On 9/6/07, Evan Chooly <[EMAIL PROTECTED]> wrote: > > T-37 minutes until sushi time! > > On 9/6/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > > sushi > > > > > > -igor > > > > > > On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > > > new PropertyModel(P

Re: How to set wicket's locale?

2007-09-06 Thread Evan Chooly
T-37 minutes until sushi time! On 9/6/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > sushi > > > -igor > > > On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > > > new PropertyModel(Page.this, "session.foo.sushi.bar"); > > > > ? > > > > > > On 9/6/07, Gabor Szokoli <[EMAIL PROTE

Re: How to set wicket's locale?

2007-09-06 Thread Igor Vaynberg
sushi -igor On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > > new PropertyModel(Page.this, "session.foo.sushi.bar"); > > ? > > > On 9/6/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > > On 9/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > can you make an jira issue for

Re: How to set wicket's locale?

2007-09-06 Thread Gabor Szokoli
On 9/6/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > new PropertyModel(Page.this, "session.foo.sushi.bar"); > > ? Wow. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to set wicket's locale?

2007-09-06 Thread Martijn Dashorst
new PropertyModel(Page.this, "session.foo.sushi.bar"); ? On 9/6/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > On 9/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > can you make an jira issue for this? > > https://issues.apache.org/jira/browse/WICKET-936 > > Any ideas on encapsulating the s

Re: How to set wicket's locale?

2007-09-06 Thread Gabor Szokoli
On 9/5/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > can you make an jira issue for this? https://issues.apache.org/jira/browse/WICKET-936 Any ideas on encapsulating the session as a propertymodel for components in 1.2? Gabor

Re: How to set wicket's locale?

2007-09-05 Thread Johan Compagner
can you make an jira issue for this? On 9/4/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > > Uh, oh, one more quick thing: > > I'm still on wicket 1.2, and my wicket:message labels retain their > text in the locale they were first rendered in. > > Is there anything I can do on locale changes to m

Re: How to set wicket's locale?

2007-09-04 Thread Gabor Szokoli
Uh, oh, one more quick thing: I'm still on wicket 1.2, and my wicket:message labels retain their text in the locale they were first rendered in. Is there anything I can do on locale changes to make them change their text? Is this behavior the same under 1.3? Gabor

Re: How to set wicket's locale?

2007-09-04 Thread Gabor Szokoli
On 9/3/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > Just go with overriding getLocale on your custom session object. If > you need to support just one locale, that's easy: just always let it > return that locale. Otherwise, you'll have to do some more work (e.g. > using request.getLocale()), b

Re: How to set wicket's locale?

2007-09-03 Thread Eelco Hillenius
> Thanks for the support and ideas. > But for the record: > Overriding getLocale() would surely work, but sounds like even worse > of a hack than setLocale(_) No, if you override it, it will *always* return the value you provide. The locale member obviously wouldn't be use unless you yourself use

Re: How to set wicket's locale?

2007-09-03 Thread Gabor Szokoli
On 9/3/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > I use wicket 1.2 for now. > > Yeah, unfortunately it doesn't work for 1.2. It's one of the > improvements for 1.3. We'll upgrade for the next release once this one is out... > But either override getLocale in your session, or set it using

Re: How to set wicket's locale?

2007-09-03 Thread Eelco Hillenius
> I use wicket 1.2 for now. Yeah, unfortunately it doesn't work for 1.2. It's one of the improvements for 1.3. But either override getLocale in your session, or set it using a custom session factory. Eelco - To unsubscribe, e-m

Re: How to set wicket's locale?

2007-09-03 Thread Johan Compagner
with 1.2 you can have your session factory and after you created the session call setLocale On 9/3/07, Gabor Szokoli <[EMAIL PROTECTED]> wrote: > > On 8/22/07, Nino Saturnino Martinez Vazquez Wael > <[EMAIL PROTECTED]> wrote: > > There are some different approaches you could use... > > > > But why

RE: How to set wicket's locale?

2007-09-03 Thread David Leangen
Why don't you just: @Override public Locale getLocale() { return Locale.ENGLISH; } ? > -Original Message- > From: Gabor Szokoli [mailto:[EMAIL PROTECTED] > Sent: 3 September 2007 21:04 > To: users@wicket.apache.org > Subject: Re: How to set wicket's l

Re: How to set wicket's locale?

2007-09-03 Thread Gabor Szokoli
On 8/22/07, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > There are some different approaches you could use... > > But why not make a parent page class where you do it in? And then > inherit from that? Or just use a custom session which does it by it > self(check out the quickst

Re: How to set wicket's locale?

2007-08-21 Thread Nino Saturnino Martinez Vazquez Wael
There are some different approaches you could use... But why not make a parent page class where you do it in? And then inherit from that? Or just use a custom session which does it by it self(check out the quickstart project to see how to create a session class). regards Nino smithfox wrote:

Re: How to set wicket's locale?

2007-08-21 Thread smithfox
I have solved the problem with your help.:jumping: Thanks But I must set locale in every Page java class. Is there a uniform configuration to set it? Eelco Hillenius wrote: > > On 8/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote: >> then you browser tells wicket that it should use English .

Re: How to set wicket's locale?

2007-08-21 Thread Eelco Hillenius
On 8/21/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > then you browser tells wicket that it should use English . > But you can set it yourself: Session.setLocale() Or if for instance you want to fix the locale to always use a certain one, use a custom session and set the locale it's constructor

Re: How to set wicket's locale?

2007-08-21 Thread Johan Compagner
then you browser tells wicket that it should use English . But you can set it yourself: Session.setLocale() johan On 8/22/07, smithfox <[EMAIL PROTECTED]> wrote: > > > I used RequiredTextField, when the field is empty, the feedback show some > meesage in English, How to change it to Chinese. >

How to set wicket's locale?

2007-08-21 Thread smithfox
I used RequiredTextField, when the field is empty, the feedback show some meesage in English, How to change it to Chinese. -- View this message in context: http://www.nabble.com/How-to-set-wicket%27s-locale--tf4309547.html#a12268483 Sent from the Wicket - User mailing list archive at Nabble.co