Re: Localization issue

2008-08-29 Thread btakacs
- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19221098.html Sent from the Wicket - User mailing list archive at Nabb

Re: Localization issue

2008-08-27 Thread Nino Saturnino Martinez Vazquez Wael
Yeah this seems to be the issue... Janos Cserep wrote: Actually now I have only one label for testing purposes: add(new Label("locale", getSession().getLocale().getLanguage())); That's actually bad practice. You are adding the component in the constructor. That code runs only once - whe

Re: Localization issue

2008-08-27 Thread Janos Cserep
Actually now I have only one label for testing purposes: add(new Label("locale", getSession().getLocale().getLanguage())); That's actually bad practice. You are adding the component in the constructor. That code runs only once - when you create the component, page, etc. Try: add(new

Re: Localization issue

2008-08-27 Thread btakacs
e forces the reload. It's weird a little... Thanks Bence - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Localiza

Re: Localization issue

2008-08-27 Thread Nino Saturnino Martinez Vazquez Wael
Ok This is my code for a locale switching link that will disable when active: @Override protected WebMarkupContainer getLocaleComponent(String id, final Locale locale) { Link link = new Link(id) { @Override public void onClick() { get

Re: Localization issue

2008-08-27 Thread Janos Cserep
why the locale changes does not apply to the components? Are you setting up your components based on your locale in the constructor? Because if you do, then setting a Page object with setResponsePage won't create new component objects for you. Try: setResponsePage(this.getPage().getClas

Re: Localization issue

2008-08-27 Thread btakacs
; >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> --

Re: Localization issue

2008-08-27 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, I were just uncertain if you might had added some ajax that were causing the problem.. you are still having problems? btakacs wrote: Hi Yeah, I understand that it is working with Ajax. But first I wanted to make it without ajax. Later I can upgrade. I don't know yet how can I ajaxify my

Re: Localization issue

2008-08-27 Thread btakacs
;> } >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands

Re: Localization issue

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael
Yeah I can confirm what Daniel are saying.. I have the same approach.. On the otherhand if it's an ajax link you'll need to add all the components you want rerendered. Daniel Stoch wrote: Hi, But what exactly not work? I'm using a Link with onClick() code: getSession().setLocale(locale); to

Re: Localization issue

2008-08-26 Thread Daniel Stoch
ale changes does not apply to the components? > > They apply only after I click on a bookmarkable link. > > Now it does not seem to be a Localization issue: it's some kind of reload > issue... > > Any tips? > > Thanks: > Bence -

Re: Localization issue

2008-08-26 Thread James Carman
ng the locale (I checked in debug mode) > > when running > setResponsePage(this.getPage()); > why the locale changes does not apply to the components? > > They apply only after I click on a bookmarkable link. > > Now it does not seem to be a Localization issue: it's

Re: Localization issue

2008-08-26 Thread btakacs
. Now it does not seem to be a Localization issue: it's some kind of reload issue... Any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19169188.html Sent from the Wicket - User mailing list archive at Nabbl

Re: Localization issue

2008-08-26 Thread James Carman
odel title) { >>super(title); >>} >> >>public MenuTab(IModel title, Panel panel) { >>super(title); >>this.panel=panel; >>} >> >>@Override >>public Panel getPanel(String panelId) { >>return p

Re: Localization issue

2008-08-26 Thread Ɓukasz Lipka
this.panel=panel; >} > >@Override >public Panel getPanel(String panelId) { >return panel; >} > } > > > My View implementation inherits the ListView, and overrides only the > populateItem method. > > Do you have any tips? > > Thanks

Localization issue

2008-08-26 Thread btakacs
d) { return panel; } } My View implementation inherits the ListView, and overrides only the populateItem method. Do you have any tips? Thanks: Bence -- View this message in context: http://www.nabble.com/Localization-issue-tp19160932p19160932.html Sent from the Wicket - User mailing l