You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cosmindumy <co...@yahoo.com> on 2011/12/02 16:52:58 UTC

Re: Internationalization on panels

Hello,
I know is off topic but maybe you have an answer. :)
I have the following problems. If you have any idea please tell me.
I implemented the application internationalization but
the label components are not refreshed after changing locale. Do you know
why.
Another problem is that when I change the locale I refresh the whole page.
(target.addComponent(instance);) where instance is my Page class. Therefore
all completed fields are lost. I didn't found other solution. Do you have
any idea?
Thanks. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4147702.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Hi again, 
I have a curiosity. It's not my problem, but I want to know if is there a
solution for the following problem. 

Now when I change the locale I refresh the whole page. (target.add(MyPage)).
But I loose all the changes the user has made.
(if he completed some fields)
But how can I make to refresh only some components but allso the
wicket:message properties as they have no java 
corespondent. 

I want to to something like this: 
target.add(component1);
target.add(component2);
and also refresh the wicket:message. Is there a solution.
I hope is clear what I ask. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4164652.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
The only reason I can see is that your .properties file (the resource
bundle) is next to a Component (e.g. MyPage.properties).
If the translation is in MyApplication.properties then it will work.

On Mon, Dec 5, 2011 at 2:38 PM, cosmindumy <co...@yahoo.com> wrote:
> Thanks. :*
> I subcalssed the Model. It works. I understand now exactly the difference
> between static and dynamic models.
> But as I know ResourceModel is a dynamic model. Why it didn't find the key?
> And why for other components it worked and for BeatyTipBehavior it didn't
> work? I didn't find an explanation in that wiki.
>
> P.S As you probably noticed I'm very new in wicket, and there my questions
> may seem stupid. But I enjoy wicket very much.
> It's the coolest web framework I worked with.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160463.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Thanks. :*
I subcalssed the Model. It works. I understand now exactly the difference
between static and dynamic models. 
But as I know ResourceModel is a dynamic model. Why it didn't find the key? 
And why for other components it worked and for BeatyTipBehavior it didn't
work? I didn't find an explanation in that wiki.

P.S As you probably noticed I'm very new in wicket, and there my questions
may seem stupid. But I enjoy wicket very much.
It's the coolest web framework I worked with. 

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160463.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Here is the class:
http://www.heypasteit.com/clip/04FA
But I don't use the model inside. I just pass it to superclass. 
Anyway it didn't work with their BeautyTipBehavior, so it should't be a
problem with my Behavior.
But you can take a look.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160360.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
See DropDownChoice's constructors.
Use the one that accepts a IModel<List> instead of List.
In #getObject() make the proper sorting.

On Fri, Dec 16, 2011 at 5:42 PM, cosmindumy <co...@yahoo.com> wrote:
> Can you give me a short example? I don't understand what you mean.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4205110.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Can you give me a short example? I don't understand what you mean.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4205110.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
Use a model for the list of choices, instead of a plain List

On Fri, Dec 16, 2011 at 5:12 PM, cosmindumy <co...@yahoo.com> wrote:
> It worked. But the problem is that the drop down list is sorted. When I
> change the locale it keeps the original sorting. The sorting is made
> depending on locale but it doesn't change the order when I change the
> locale. Only if I eneter again on this page it is sorted properly. Any idea?
> I hope is clear what I mean.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204967.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
It worked. But the problem is that the drop down list is sorted. When I
change the locale it keeps the original sorting. The sorting is made
depending on locale but it doesn't change the order when I change the
locale. Only if I eneter again on this page it is sorted properly. Any idea?
I hope is clear what I mean.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204967.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Sven Meier <sv...@meiers.net>.
Hi,

you should delay getting the string until it's needed for rendering.

Let your drop-down iterate over your domainVOs and use a custom ChoiceRenderer to render the id and the i18ned value, no need for a custom "SelectOption".

Sven


Am 16.12.2011 14:46, schrieb cosmindumy:
> Hello again.
> I have one problem with internationalization. I want to internationalize
> the values from a drop down. But the values are not refreshed when I change
> the locale. Here is the code
>
> subjectsMatterList.add(new SelectOption(domainVO.getId().toString(),
> getString(Util.getDomainVOKey(domainVO.getId().toString()))));
>
> where subject matter is the list of choices. that has a pair of id and
> display value. I want the display value to be internationalized. If I eneter
> this page with the locale already changed the values are translated. Any
> idea how can I refresh the values when I change the locale.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204686.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Hello again. 
I have one problem with internationalization. I want to internationalize 
the values from a drop down. But the values are not refreshed when I change
the locale. Here is the code 

subjectsMatterList.add(new SelectOption(domainVO.getId().toString(),
getString(Util.getDomainVOKey(domainVO.getId().toString()))));

where subject matter is the list of choices. that has a pair of id and
display value. I want the display value to be internationalized. If I eneter
this page with the locale already changed the values are translated. Any
idea how can I refresh the values when I change the locale. 



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4204686.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
Re-read the wiki page about dynamic models, then read what Igor pasted
in his response and I'm sure you'll find the solution.

On Mon, Dec 5, 2011 at 2:07 PM, cosmindumy <co...@yahoo.com> wrote:
> Just as a remar, the following code works, but the tooltip is not refreshed
> after I change locale:
>
> Label phoneTooltip = new Label("phoneTooltip");
>        phoneTooltip.add(new LTooltipBehavior(new
> Model<String>(getString("baloise.settings.userdetails.phonetooltip"))).setFadeInOut(true));
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160383.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Just as a remar, the following code works, but the tooltip is not refreshed
after I change locale:

Label phoneTooltip = new Label("phoneTooltip");
        phoneTooltip.add(new LTooltipBehavior(new
Model<String>(getString("baloise.settings.userdetails.phonetooltip"))).setFadeInOut(true));

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160383.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
Paste the code of the behavior.
I want to see what you do with the model inside.
Use any pastebin service to paste the code because it is easier to
read formatted and highlighted code ;-)

On Mon, Dec 5, 2011 at 1:48 PM, cosmindumy <co...@yahoo.com> wrote:
> I'm afraid I don't understand your question? What do you mean by "how do you
> use ResourceModel" ?
> Actually I have a class LTooltipBehavior that extends BeautyTipBehavior, but
> i alson tried with BeautyTipBehavior as you saw in the example and it didn't
> work.
>
> Here is the original code:
>  targetLanguageToolTip = new Label("targetLanguageToolTip");
>        targetLanguageToolTip.add(new LTooltipBehavior(new
> ResourceModel("baloise.order.create.ordercreate.targetlanguagetooltip")).setFadeInOut(true));
>        targetLanguageToolTip.setOutputMarkupId(true);
>
> and I also tried for test the following as you saw thinking that the problem
> is in my behavior:
>
> sourceLanguageTooltip = new Label("sourceLanguageTooltip");
>        BeautyTipBehavior behavior = new BeautyTipBehavior(new
> ResourceModel("baloise.order.create.ordercreate.sourcelanguagetooltip"));
>        behavior.setFadeInOut(true);
>        sourceLanguageTooltip.add(behavior);
>        sourceLanguageTooltip.setOutputMarkupId(true);
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160335.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
I'm afraid I don't understand your question? What do you mean by "how do you
use ResourceModel" ?
Actually I have a class LTooltipBehavior that extends BeautyTipBehavior, but
i alson tried with BeautyTipBehavior as you saw in the example and it didn't
work.

Here is the original code:
 targetLanguageToolTip = new Label("targetLanguageToolTip");
        targetLanguageToolTip.add(new LTooltipBehavior(new
ResourceModel("baloise.order.create.ordercreate.targetlanguagetooltip")).setFadeInOut(true));
        targetLanguageToolTip.setOutputMarkupId(true);

and I also tried for test the following as you saw thinking that the problem
is in my behavior: 

sourceLanguageTooltip = new Label("sourceLanguageTooltip");
        BeautyTipBehavior behavior = new BeautyTipBehavior(new
ResourceModel("baloise.order.create.ordercreate.sourcelanguagetooltip"));
        behavior.setFadeInOut(true);
        sourceLanguageTooltip.add(behavior);
        sourceLanguageTooltip.setOutputMarkupId(true);



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160335.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

How do you use the resource model in this behavior ?

On Mon, Dec 5, 2011 at 1:36 PM, cosmindumy <co...@yahoo.com> wrote:
> I solved the localization for most of the components except one. This is
> BeatyTipBehavior
> This is the code:
> sourceLanguageTooltip = new Label("sourceLanguageTooltip");
>        BeautyTipBehavior behavior = new BeautyTipBehavior(new
> ResourceModel("baloise.order.create.ordercreate.sourcelanguagetooltip"));
>        behavior.setFadeInOut(true);
>        sourceLanguageTooltip.add(behavior);
>
> It give me the message that it doesn't find the key, but surely the key is
> there. Any idea?
> I've got the same error with the code
> myLabel = new Label("id", new Model<String>(new
> ResourceModel("key").getObject()) ). but i solved by passing the
> ResourceModel directly to label. But for TolltipBehavior I found no
> solution.
>
> Thanks
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160300.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
I solved the localization for most of the components except one. This is
BeatyTipBehavior
This is the code:
sourceLanguageTooltip = new Label("sourceLanguageTooltip");
        BeautyTipBehavior behavior = new BeautyTipBehavior(new
ResourceModel("baloise.order.create.ordercreate.sourcelanguagetooltip"));
        behavior.setFadeInOut(true);
        sourceLanguageTooltip.add(behavior);

It give me the message that it doesn't find the key, but surely the key is
there. Any idea? 
I've got the same error with the code 
myLabel = new Label("id", new Model<String>(new
ResourceModel("key").getObject()) ). but i solved by passing the
ResourceModel directly to label. But for TolltipBehavior I found no
solution. 

Thanks

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4160300.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Igor Vaynberg <ig...@gmail.com>.
class mymodel extends abstractreadonlymodel<string> {
  string getobject() {
     if (show) return getstring("show.components") else return
getstring("hide.components");}}

-igor

On Sun, Dec 4, 2011 at 2:09 PM, cosmindumy <co...@yahoo.com> wrote:
> Thanks. I red the tutorial and now is more clear.
> Now I am looking for a solution to change the ResourceModel of a Lable.
> For instance I want  the key to be changed between "show.components" and
> when the component is displayed the property to be "hide.componets".
> Therefore I need a way to set my label resource model.
> If you know a solution please tell me.
> Thanks.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4158350.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Thanks. I red the tutorial and now is more clear. 
Now I am looking for a solution to change the ResourceModel of a Lable. 
For instance I want  the key to be changed between "show.components" and
when the component is displayed the property to be "hide.componets".
Therefore I need a way to set my label resource model.
If you know a solution please tell me.
Thanks.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4158350.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
Read https://cwiki.apache.org/WICKET/working-with-wicket-models.html

Be careful on the static vs. dynamic part ;-)

On Sun, Dec 4, 2011 at 8:54 PM, cosmindumy <co...@yahoo.com> wrote:
> It works with
> columns.add(new PropertyColumn<User>(new ResourceModel("name.name",
> "Default"), "age", "age"));
>
> but I don't understand why it didn't find property with the first variant.
>  columns.add(new PropertyColumn<User>(new Model<String>(new
> ResourceModel("name.name", "Default").getObject()), "age", "age"));
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4157887.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
It works with 
columns.add(new PropertyColumn<User>(new ResourceModel("name.name",
"Default"), "age", "age"));

but I don't understand why it didn't find property with the first variant.
 columns.add(new PropertyColumn<User>(new Model<String>(new
ResourceModel("name.name", "Default").getObject()), "age", "age"));

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4157887.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Hi again, 
I have the same problems with table header columns internationalization. 
This is what I use:

-columns.add(new PropertyColumn<User>(new Model<String>(new
ResourceModel("name.name", "Default").getObject()), "age", "age"));
-columns.add(new PropertyColumn<User>(new
Model<String>(getString("name.name")), "name", "name"));

It seems it doesn't find the property "name.name" with ResourceModel and it
displays "Default". This property exists. as for the second columns it
displays. Do you have any idea? Is there other solution to pass the property
to the PropertyColumn?
Thanks.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4157832.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by cosmindumy <co...@yahoo.com>.
Thanks a lot. 
You were right. I used getString("my.key"). Now it works. 
I will also try your advice using AjaxBehavior.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4147818.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Internationalization on panels

Posted by Martin Grigorov <mg...@apache.org>.
On Fri, Dec 2, 2011 at 4:52 PM, cosmindumy <co...@yahoo.com> wrote:
> Hello,
> I know is off topic but maybe you have an answer. :)
> I have the following problems. If you have any idea please tell me.
> I implemented the application internationalization but
> the label components are not refreshed after changing locale. Do you know
> why.

Show us your code.
I guess you do: new Label(someId, getString("someKey"))
while you should use: new Label(someId, new ResourceModel("someKey"))

> Another problem is that when I change the locale I refresh the whole page.
> (target.addComponent(instance);) where instance is my Page class. Therefore
> all completed fields are lost. I didn't found other solution. Do you have
> any idea?

You either need to track the client side changes and show a
confirmation to the user "You did some changes. Are you sure you want
to leave the page?" or make the locale switch a submitting component
(with AjaxFormSubmitBehavior for example)

> Thanks.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalization-on-panels-tp2299768p4147702.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org