0
我这有如下:按enter键就刷新页面A4J:的commandButton
<a4j:form>
<h:inputText id="name" value="#{someBean.item.name}" styleClass="medium-field" onclick="if (this.value == 'Name') this.value = ''" onblur="if (this.value == '') this.value = 'Name'" />
<a4j:commandButton action="#{someBean.find}" styleClass="bt-find" reRender="someFields"/>
</a4j:form>
当我键入名称,然后按Enter键的东西,它刷新页面并没有给我带来任何结果。 如果我将其更改为h:commandButton,它可以正常工作。你们有什么想法,我怎么能让它与a4j一起工作?如果不是与a4j,看起来像a4j的方式。
谢谢。