4
工作,我写了这个代码:自动完成completeMethod不对话框
<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工作正常的对话外,但该对话框里面不工作!
任何想法如何做到这一点?
你不是嵌套形式? – BalusC
不,只有一个表格,但这个代码是在没有html标签的xhtml页面中,只有组合(它使用了一个模板)。也许可能是一个问题? –
只有在您嵌套表单时。对于其他提示,检查http://stackoverflow.com/questions/2118656/hcommandlink-hcommandbutton-is-not-being-invoked – BalusC