File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes comboBox onblur event not called Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "comboBox onblur event not called" Watch "comboBox onblur event not called" New topic
Author

comboBox onblur event not called

rouven gorsky
Greenhorn

Joined: Feb 10, 2009
Posts: 14
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?
 
wood burning stoves
 
subject: comboBox onblur event not called