autocomplete "_hinput" not updated if typed or copy-pasted

UI Components for JSF
Post Reply
moonblade.wolf
Posts: 48
Joined: 07 Dec 2010, 02:46

19 Jul 2011, 08:16

primefaces 2.2.1

As far as i know it, an autocomplete has 2 input elements, one with id_input and one with <id>_hinput, where the value <id>_hinput will be used to the converter if we are using POJO.

If i choosed the item from the autocomplete popup list, either by click or up/down arrow keyboard, the <id>_hinput will be updated with the string representation generated by the converter.

But if i type the complete string inside the autocomplete, and if i copy-pasted the whole string inside the autocomplete, the <id>_hinput is not updated with the string representation generated by the converter.

Is there any solution or workaround for this ?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Jul 2011, 08:34

How should autocomplete know the hinput value if you don't select the item from the suggestions.

moonblade.wolf
Posts: 48
Joined: 07 Dec 2010, 02:46

19 Jul 2011, 09:28

Im not sure also, but i wonder whether this approach below will work ?

1) User typed or pasted the content, and as usual, the ajax calls happen to get the suggestions
2) The suggestion returned from the ajax call have 1 exact result and it matches what's in the <id>_input, which i think is the condition to set the converter-string to <id>_hinput

moonblade.wolf
Posts: 48
Joined: 07 Dec 2010, 02:46

11 Aug 2011, 09:58

Hello ..

Do you guys think this make sense ?

I reason if the user can type, and if it matches the converter string, this should be handled as if it's selected from the selection list.
In the eyes of the user, he's just typing or pasting the same thing that appears on the selection list, and gets confused why it wouldnt work when typed or pasted.

Regards,
Albert Kam

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 24 guests