jsf - Primefaces and visible autocomplete in SelectOneMenu -
Is there a way to obtain the following requirement
- Using JSF with Primus
- Use
SelectOneMenuwith auto-complete - Make the input text visible: i.e. not just typing (as already supported ), But the user should also have a visible typing field to select the given menu item.
I think this should be a combination of (customized) filtering , editable input and server -right validation, but I do not know how.
Thank you!
The question is the source of the old, but it would be useful for others to answer.
Yes, it is possible to get both. Below is an example of the primetime demo for editingable combobox.
& lt; P: = "city" value for the output label = "editable": /> & lt; P: selectOneMenu id = "city" value = "# {selectOneMenuView.city}" effect = "fold" edit = "true" & gt; & Lt; F: select item item label = "select one" itemValue = "" /> & Lt; F: SelectionEdit value = "# {selectOneMenuView.cities}" /> & Lt; / P: selectOneMenu & gt; You can add another feature to it and get editing as well as advanced features.
& lt; P: outputLabel for = "city" value = "editable:" /> & Lt; P: selectOneMenu id = "city" value = "# {selectOneMenuView.city}" effect = "fold" editable = "true" filter = "true" filterMitchMode = "starts" & gt; & Lt; F: select item item label = "select one" itemValue = "" /> & Lt; F: SelectionEdit value = "# {selectOneMenuView.cities}" /> & Lt; / P: selectOneMenu & gt; And you have done both of you.
Comments
Post a Comment