error: /index.xhtml @30,146 <f:ajax> 'valueChange' is not a supported event for HtmlForm. Please specify one of: click, dblclick, keydown, etc
error: /index.xhtml @30,146 <f:ajax> 'valueChange' is not a supported event for HtmlForm. Please specify one of: click, dblclick, keydown, etc
我这里有可以正常工作的代码:
<h:selectOneMenu value="#{customer.selectedname}" id="ulist">
<f:selectItems value="#{customer.allCustomers}"/>
<f:ajax event="change" render="cid fname lname email sd" listener="#{customer.fullInfo}"/>
</h:selectOneMenu>
但是,当我在不同的项目中实施它时,它不起作用。下面是代码:
<td><h:outputLabel value="No Polisi:"/></td>
<td><h:inputText value="#{motor.VNOPOL}" id="VNOPOL"/></td>
<f:ajax event="valueChange" render="VIDPROSPEK VFRAMENUM VENGINENUM VTHNPROD NKMSERVICE " listener="#{motor.fullInfo}"/>
我收到一个错误:
/index.xhtml @30,146 'valueChange' is not a supported event
for HtmlForm. Please specify one of these supported event names:
click, dblclick, keydown, keypress, keyup, mousedown, mousemove,
mouseout, mouseover, mouseup.
在 VNOPOL 中输入后,我应该如何实现才能显示所有信息?
JSF ajax 仅支持 JSF 组件,您没有在组件内包含 <f:ajax>
您应该如下更改代码
<td>
<h:inputText value="#{motor.VNOPOL}" id="VNOPOL">
<f:ajax event="your event" render="your elements" listener="your listener"/>
</h:inputText>
</td>
请注意 <f:ajax>
现在在 <h:inputText>
中
我这里有可以正常工作的代码:
<h:selectOneMenu value="#{customer.selectedname}" id="ulist">
<f:selectItems value="#{customer.allCustomers}"/>
<f:ajax event="change" render="cid fname lname email sd" listener="#{customer.fullInfo}"/>
</h:selectOneMenu>
但是,当我在不同的项目中实施它时,它不起作用。下面是代码:
<td><h:outputLabel value="No Polisi:"/></td>
<td><h:inputText value="#{motor.VNOPOL}" id="VNOPOL"/></td>
<f:ajax event="valueChange" render="VIDPROSPEK VFRAMENUM VENGINENUM VTHNPROD NKMSERVICE " listener="#{motor.fullInfo}"/>
我收到一个错误:
/index.xhtml @30,146 'valueChange' is not a supported event for HtmlForm. Please specify one of these supported event names: click, dblclick, keydown, keypress, keyup, mousedown, mousemove, mouseout, mouseover, mouseup.
在 VNOPOL 中输入后,我应该如何实现才能显示所有信息?
JSF ajax 仅支持 JSF 组件,您没有在组件内包含 <f:ajax>
您应该如下更改代码
<td>
<h:inputText value="#{motor.VNOPOL}" id="VNOPOL">
<f:ajax event="your event" render="your elements" listener="your listener"/>
</h:inputText>
</td>
请注意 <f:ajax>
现在在 <h:inputText>