autoCompletecompleteMethod 在对话框中不起作用
我写了这段代码:
<p:dialog header="Bolletta" width="800" height="600">
<h:form id="newBillForm" >
<p:panel header="Dati fiscali">
<h:panelGrid columns="4">
<h:outputLabel value="Cliente *: " for="customer"/>
<p:autoComplete id="customer" value="#{billController.customerString}" completeMethod="#{customerController.autoComplete}" required="true"/>
</h:panelGrid>
</p:panel>
</h:form>
</p:dialog>
如果我将表单(及其所有内容)放在对话框之外,completeMethod 工作正常,但在对话框内它不起作用!
知道怎么做吗?
I wrote this code:
<p:dialog header="Bolletta" width="800" height="600">
<h:form id="newBillForm" >
<p:panel header="Dati fiscali">
<h:panelGrid columns="4">
<h:outputLabel value="Cliente *: " for="customer"/>
<p:autoComplete id="customer" value="#{billController.customerString}" completeMethod="#{customerController.autoComplete}" required="true"/>
</h:panelGrid>
</p:panel>
</h:form>
</p:dialog>
If i put the form (and all its content) outside the dialog the completeMethod works fine, but inside the dialog it doesn't work!
Any idea how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能有许多可能的原因,常见的原因是嵌套
组件或在输入或其评估的父级之一上使用
表单提交期间。有关它们的详细概述,请检查 commandButton/commandLink/ajax action/listener method not invoked或输入值未更新rendered
属性>falseThis can have many possible causes, the common ones being nesting
<h:form>
components or using arendered
attribute on the input or one of its parents which evaluatedfalse
during form submit. For a detailed overview of them all, check commandButton/commandLink/ajax action/listener method not invoked or input value not updated