Autocomplete with forceSelection = true (ON BLUR ISSUE)

UI Components for JSF
Post Reply
luisalves00
Posts: 71
Joined: 21 Feb 2011, 18:37

04 May 2011, 19:33

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

luisalves00
Posts: 71
Joined: 21 Feb 2011, 18:37

05 May 2011, 12:20

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.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests