This content has been marked as final.
Show 1 reply
-
1. Re: Maximum data entry in rich:comboBox
sivaprasad9394 Sep 21, 2010 9:17 PM (in response to lenyas66)In your case it should accept only 15 chars means this should be there first enableManualInput="true"
next
Add this code before your f:selectItems
<a4j:support event="onkeyup"
actionListener="#{urBeanName.comboValidation}"
reRender="urComboboxID" limitToList="true" />
public void comboValidation(ActionEvent event) {
if(this.getvalueofcombobox().toString().length()>15)
{
this.setgetvalueofcombobox(this.getgetvalueofcombobox().toString().substring(0, 15));
}
}
With out reRender="urComboboxID" you cant display only 15 chars in screen because your enableManualInput="true".
<a4j:support event="onkeyup"actionListener="#{existingCustomerBean.userOfficePhoneNumberValidation}"reRender="cbxServiceTypeField" limitToList="true" />