I have a DropDownChoice like below:
final DropDownChoice<Term> terms = new DropDownChoice("terms", new Model<Term>(), new Model(new ArrayList(termDao.findAll())), new IChoiceRenderer<Term>() {
public Object getDisplayValue(Term object) {
return object.getIdentifier();
}
public String getIdValue(Term object, int index) {
return object.getId().toString();
}
});
I want to have "Choose All" instead of "Choose one". How can I do that?
I tried Goli's suggestion under wicket 6.4 and it doesn't work. For me the right way is:
It is not necessary to set terms.setMarkupId("termsDDC"); It will work without it
Exactly as above, if you have a form on the panel (wicket:id="form") and a DropDownChoice on the form (wicket:id="terms"), it doesn't matter, you should name .properties file as mypanel.properties
In the property file write: form.terms.null=Choose All or form.terms.nullValid=Empty, if the dropdown has setNullValid(true)