• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

comboBox onblur event not called

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all

Please study the following combobox in my jsf:

<rich:comboBox id="cities"
valueChangeListener="#{myBean.selectionChanged}"
defaultLabel="#{bundle.defaultEntry}" >

<f:selectItems value="#{myBean.cities}" />
<a4j:support event="onselect" reRender="cities" />

<f:validator validatorId="myValidator" />
<rich:ajaxValidator event="onblur" />
</rich:comboBox>

The validator "myValidator" should do some validating when the onblur event is called. It works, at least when I select an entry from the list
and leave the combobox. However when I click into the combobox, not selecting anything and then leave the combox the onblur event
seems not to be fired: the validator method doesn't run. The same thing happens when I vist and leave the combox with tab-key.
Anyone has an idea why that is an what I could do?
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic