On Thu, 05 Apr 2007, Toscano wrote:
> The getCountries() method outputs the list of countries depending on the
> language stored in session.
> But if I create the DropDownChoice as you said:
>
> countries = new DropDownChoice("country",
> new Model() {
> publi
Hello again,
And again thank you for all your help and interest I really appreciate it!.
This is not working...
I have a CompoundPropertyModel with all the data from the form, including
the country.
The getCountries() method outputs the list of countries depending on the
language stored in sess
2007/3/30, Toscano <[EMAIL PROTECTED]>:
countries = new DropDownChoice ("country",
new Model() {
public List getObject() {
return getCountries();
}
}, getCountries(),
new CountryChoic
Hello,
Thank you very much for your fast answer.
I'm using what you said, but sure I'm not doing in the way I should because
it doesn't work as expected. Now I can get keep the country selected, but it
is not refreshed when changing the locale.
This is what I have:
countries = new DropDownChoi
2 things:
1. Probably you should use an IChoiceRenderer in addition to your current list.
2. you *replace* the component, and with it the selected value, better
to use a lazy model to retrieve the list of countries, instead of
pushing it to the component
ad 2:
new DDC("countries", new Model() {
Hello,
I had the following: one extended DropDownChoice with different languages
and some fields in a form. When the user changes it, I get success in
getting the translation of everything in the page, and also Wicket maintains
whatever the user wrote in the fields, so it's nice. But I have a pro