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