the listRenderer to the DDChoice (last param).
Seems a lot simpler than what you are doing.
-Original Message-
From: Xavier López [mailto:xavil...@gmail.com]
Sent: Monday, November 09, 2009 9:37 AM
To: users@wicket.apache.org
Subject: Re: Combination CompoundPropertyModel and ChoiceRenderer
Hi Ann,
I've also encountered this problem, but with RadioChoice instead of
DropDownChoice.
This is the thread I started about it:
http://mail-archives.apache.org/mod_mbox/wicket-users/200911.mbox/browser
After all this thread, I still don't know what should I do to model, for
instance, a
You want to select one value from a list of values, so obviously everything
has to have the same type.
These 'IdDescrBeans' smell like Struts, such constructs are not needed.
What's wrong with the following:
ListString genders = new ArrayListString();
list.add(M);
list.add(F);
Why not use IChoiceRenderer?
Ernesto
On Mon, Nov 9, 2009 at 2:27 PM, Xavier López xavil...@gmail.com wrote:
Hi Sven,
Absolutely awesome. So sweet how problems vanish away when you know the
right way to address them on Wicket: ).
But, what if I had a list of countries in the database
Hi Ernesto, Sven,
Regarding the usage of localizeDisplayValues, I see that if I put simply M
or F it also works. Wonderful! Now I can define a general description for
M and F, and provide specialized ones in case of need (thinking about
yes/no literals). But, could I someway define 'groups' of
Got it!
Here is the code i got into. Improvements and critics are welcome !
class MappedModel extends Model {
protected Map map;
public String getDescription(Object id){
return (String) map.get(id);
}
}
// Localized choices
final MappedModel countryModel = new MappedModel(){
are doing.
-Original Message-
From: Xavier López [mailto:xavil...@gmail.com]
Sent: Monday, November 09, 2009 9:37 AM
To: users@wicket.apache.org
Subject: Re: Combination CompoundPropertyModel and ChoiceRenderer on
DropDownChoice gives problems
Got it!
Here is the code i got