Hi,
Environment: GlassFish3.1 + JSF2.1.0 + RF4.0.0-Final + Browsers Firefox4/Chrome11.
I implemented a code to change chars typed by user to uppercase, like this:
<rich:autocomplete id="ClienteFil_cidade" value="#{clienteFil.entity.cidade}"
mode="cachedAjax" minChars="2" showButton="true"
autocompleteMethod="#{clienteFil.cidadeLookup}"
onblur="ConverteMaiuscula('formclienteFil:ClienteFil_cidadeInput');"
>
<f:converter converterId="cidadeConverter"/>
</rich:autocomplete>
If I do the searching in this sequence, all works fine:
1) type some chars
2) select an item from list
3) type TAB to change to other field
If I do the searching in this sequence, it doesn't work:
1) type some chars
2) select an item from list
3) type ENTER to setup the value of the current autocomplete field
4) type TAB to change to other field
After to focus other field, the autocomplete redisplays the list, with only the current field showed.
Look at images below...
First image: when searching:
Then, after change to other field:
At this moment, I am into "UF" field, but "Cidade" autocomplete redisplays the list. I think there is an event onblur built in for autocomplete that is called and does this again.