user interface - Vaadin: How to Limit length of ComboBox filtering value -
suppose have combo-box allowed input. want limit input, example user can enter 10 characters . how can it? thanks.
current combobox maxlength support
this feature not supported combobox, in same way available childrean of abstracttextfield
abstracttextfield.setmaxlength(int)
however issue recognized shortcoming of vaadin combobox , there ticket created in vaadin trac issue management system:
when combobox.setnewitemsallowed(true), there not method set maxlength input (like textfield.setmaxlength(int)). suggested method: combobox.setmaxlength(int maxlength);
if company has vaadin support subscription, can vote issue implemented.
implementing custom solution
since combobox not support functionality out of box, need implement yourself, if need it. way use vaadin extensions extend existing combobox component functionality required. here resources start extensions:
Comments
Post a Comment