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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org