开发者

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

开发者 https://www.devze.com 2022-12-25 17:11 出处:网络
I have a textbox like below <h:inputText value=\"#{bean.strQuantite}\"> <a4j:support actionListener=\"#{tabacListCommandeAltadisDetailBean.actionListenerQuanti开发者_运维技巧ty}\"

I have a textbox like below

<h:inputText value="#{bean.strQuantite}">   
  <a4j:support        
    actionListener="#{tabacListCommandeAltadisDetailBean.actionListenerQuanti开发者_运维技巧ty}" 
    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 ?


Its a bit hard to parse your English, so I'm not quite sure what your desired outcome is. But I wonder, does your change listener need to be a4j? Wouldn't

<h:inputText value="#{bean.strQuantite}" valueChangeListener="#{tabacListCommandeAltadisDetailBean.actionListenerQuantity}" />

work, since you have the button to submit the form?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号