I have found a solution for this after all, not quite elegant, but works like
charm :)
new ListMultipleChoice("select",new Model(new ArrayList<T>(0)), new
PropertyModel(this, "choices"), renderer) {
@Override
protected void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.getAttributes().remove("multiple");
}
};
The trick is to use the multiselect component (because this one neither
requires preselection nor nullValid option.
Having an empty list in the model means nothing is preselected.
Since I do not want it to be multi-selectable, I removed the attribute by
overwriting onComponentTag.
Thats it :)
--
View this message in context:
http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120439.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]