-
1. Re: suggestionbox with value limited in the list
ilya_shaikovsky Mar 21, 2007 4:33 AM (in response to mazant)Seems you need some custom JS because of the current design... inputText now is a simple text field and it isn't controlled by the suggestion component.. So any value can be entered there in common case.
-
2. Re: suggestionbox with value limited in the list
baz Mar 21, 2007 7:06 AM (in response to mazant)I haven't tried it.
But i would use Hibernate Validator.
Write a new Validator which restricts the field to your list. And make seggested list common to both the validator and the suggestion box.
Do not define this list twice.
This would be a nice experience for writing custom hibernate validators(Should be easy)
But why are you not using h:selectOneMenu??
Ciao,
Carsten -
3. Re: suggestionbox with value limited in the list
mazant Mar 22, 2007 5:52 AM (in response to mazant)I don't want to use the selectOneMenu,
because the list of possible value is long (about 1000)... -
4. Re: suggestionbox with value limited in the list
baz Mar 22, 2007 6:39 AM (in response to mazant)Hello,
if you have written a Hibernate Validator for your use case , it would be nice to share the code with us. Thanks.
Ciao,
Carsten