Re: Generated drop down list of countries in Wicket - any better way?

2013-11-20 Thread Martin Grigorov
Hi, On Wed, Nov 20, 2013 at 1:30 AM, Marcin Zajączkowski msz...@wp.pl wrote: On 2013-11-19 08:44, Martin Grigorov wrote: Hi, I think you can use IModelString for the dropdown. This will be the country code. The transformation from id to name and back (if needed) can be moved to a

Re: Generated drop down list of countries in Wicket - any better way?

2013-11-20 Thread Marcin Zajączkowski
On 2013-11-20 09:28, Martin Grigorov wrote: Hi, On Wed, Nov 20, 2013 at 1:30 AM, Marcin Zajączkowski msz...@wp.pl wrote: On 2013-11-19 08:44, Martin Grigorov wrote: Hi, I think you can use IModelString for the dropdown. This will be the country code. The transformation from id to name

Re: Generated drop down list of countries in Wicket - any better way?

2013-11-19 Thread Marcin Zajączkowski
On 2013-11-19 08:44, Martin Grigorov wrote: Hi, I think you can use IModelString for the dropdown. This will be the country code. The transformation from id to name and back (if needed) can be moved to a custom IChoiceRenderer. There you have access to the current locale for each

Generated drop down list of countries in Wicket - any better way?

2013-11-18 Thread Marcin Zajączkowski
Hi, Working on Wicket frontend for AppFuse I had to implement a drop down choice of countries. I did it, but don't like the solution and I wonder if it could be done easier/prettier? Issues: 1. In domain model there is a country represented as a String field (a country code) in an address class.

Re: Generated drop down list of countries in Wicket - any better way?

2013-11-18 Thread Martin Grigorov
Hi, I think you can use IModelString for the dropdown. This will be the country code. The transformation from id to name and back (if needed) can be moved to a custom IChoiceRenderer. There you have access to the current locale for each rendering. CountryChoiceRenderer can delegate the actual