开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜