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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -