AutoComplete completeMethod does not work in dialog

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 placed the form (and all its contents) outside the dialog box, then completeMethod works fine, but inside the dialog box it doesn't work!

Any idea how to do this?

+4
source share
1 answer

This can have many possible reasons, while the common ones insert <h:form> components or use the rendered attribute at the input or one of its parents, which evaluates to false when the form was rendered . For a detailed overview of all of them, check the commandButton / commandLink / ajax action / listener method is not called or the value is not updated

+2
source

All Articles