gpt4 book ai didi

jsf - 错误 :/index. xhtml @30,146 'valueChange' is not a supported event for HtmlForm. 请指定 : click, dblclick、keydown 等之一

转载 作者:行者123 更新时间:2023-12-04 00:21:06 24 4
gpt4 key购买 nike

我这里有可以正常工作的代码:

<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>

关于jsf - 错误 :/index. xhtml @30,146 <f :ajax> 'valueChange' is not a supported event for HtmlForm. 请指定 : click, dblclick、keydown 等之一,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31690721/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com