Click event of buttons is not fired when it causes onChange event of textbox is fired first

Posted by bakkujp on Stack Overflow See other posts from Stack Overflow or by bakkujp
Published on 2010-04-02T10:27:45Z Indexed on 2010/04/04 11:23 UTC
Read the original article Hit count: 248

Filed under:
|

Hi All,

I have a textbox like below

<h:inputText value="#{bean.strQuantite}">   
  <a4j:support        
    actionListener="#{tabacListCommandeAltadisDetailBean.actionListenerQuantity}" 
    event="onchange" 
  />                                            
</h:inputText>

I input some value into the textbox above and keep the caret inside the textbox. After that, when I continue to click a other button, the event onchange of the input text above is fired.

I want to when clicking the button, the click event is fired before. Can anyone help me to solve this problem ?

© Stack Overflow or respective owner

Related posts about richfaces

Related posts about jsf