开发者

Focus is lost if validation fails on onblur event

开发者 https://www.devze.com 2023-03-11 16:30 出处:网络
I use JSF 1.2. I process onblur event with aj4:support and actionListener <开发者_如何学Python;a4j:support event=\"onblur\" reRender=\"panel1\"

I use JSF 1.2. I process onblur event with aj4:support and actionListener

<开发者_如何学Python;a4j:support event="onblur" reRender="panel1"  
      actionListener="#{bean.changeData}"  />

ActionListener validates inputted data. I would like focus to be returned if validation fails. How can I do it?


Set focus="componentId" in a4j:support.

0

精彩评论

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