hello,
got a autoComplete with forceSelection = true so the user has to select values from the list.
Problem:
After selection user can write on the text box...can add or remove chars...
IF i click the submit form button after messing with the the text on the box I get exception.
This happens because the ON BLUR doesn't happen to clear the text box.
HOW TO SOLVE IT?
thks
Autocomplete with forceSelection = true (ON BLUR ISSUE)
-
- Posts: 71
- Joined: 21 Feb 2011, 18:37
Solved...added a missing throw new ConverterException(); on the converter and a custom message on the p:autoComplete that tells the user not to mess with the selected text.
But anyway got a suggestion:
when using:
forceSelection="true"
after select the field should become readonly...and have a clear button...this way the user can't mess with the selected text, only clear it.
But anyway got a suggestion:
when using:
forceSelection="true"
after select the field should become readonly...and have a clear button...this way the user can't mess with the selected text, only clear it.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests