如果在onblur事件上验证失败,焦点将丢失

时间:2011-06-08 11:18:35

标签: jsf focus richfaces onblur ajax4jsf

我使用JSF 1.2。 我使用aj4:support和actionListener

处理onblur事件
<a4j:support event="onblur" reRender="panel1"  
      actionListener="#{bean.changeData}"  />

ActionListener验证输入的数据。如果验证失败,我想重点关注。 我该怎么办?

1 个答案:

答案 0 :(得分:1)

在a4j:support中设置focus =“componentId”。

相关问题