-
> 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
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
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
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
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
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
;
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> --
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
;> }
>>
>>
>
> --
> -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
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
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
-
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
.
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
odel title) {
>>super(title);
>>}
>>
>>public MenuTab(IModel title, Panel panel) {
>>super(title);
>>this.panel=panel;
>>}
>>
>>@Override
>>public Panel getPanel(String panelId) {
>>return p
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
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
16 matches
Mail list logo