Matt Jensen-2 wrote:
>
> Is there any way to get a ListChoice to render as empty (no options)
> when its choice model is empty? By default, "Choose One" appears. If I
> set nullValid to true, an empty item appears which is still selectable.
> I would like to have the list come up completely empty if the choice
> model is empty, and I'd like to do it without creating a new component
> (though obviously I will do that if it is what is needed.)
>
Try:
ListChoice lc = new ListChoice("lc", ...) {
protected CharSequence getDefaultChoice(Object selected) {
return "";
}
};
-----
--
Kent Tong
Wicket tutorials freely available at http://www.agileskills2.org/EWDW
--
View this message in context:
http://www.nabble.com/Empty-ListChoice-tf4604759.html#a13172939
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]