use Component#getString(key) method
-igor
On Fri, Oct 7, 2011 at 5:53 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
I cant get the below to work in 1.5.1 (only version I've tried it in
for a long time)
http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg10790.html
my code:
DropDownChoiceEntrance ddEntrance = new
DropDownChoiceEntrance(
idEntranceOrIvrMenu, entranceModel,
backendDaoService.getCustomerEntranceList(),
new DropDownRendererEntrance()) {
@Override
protected CharSequence
getDefaultChoice(String arg0) {
return new
ResourceModel(chooseone.customerentrance)
.getObject();
}
};
property file:
chooseone.ivr=Vælg IVR Menu
chooseone.customerentrance=Vælg Kundeindgang
chooseone.shadowentrance=Vælg Skyggeindgang
Screen shots:
top one are where I override (theres actually no default text just the
first option) , bottom one where i don't.
http://imgur.com/a/SJwOt
-regards Nino
-
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