4

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?

Marco Vasapollo
  • 509
  • 5
  • 16
  • No, only a form, but this code is in a xhtml page without html tag, only composition (it uses a template). Maybe could be a problem? – Marco Vasapollo Sep 03 '11 at 13:36
  • Only if you are nesting forms. For other hints, check http://stackoverflow.com/questions/2118656/hcommandlink-hcommandbutton-is-not-being-invoked – BalusC Sep 03 '11 at 14:07
  • Ok with your responses I successfully ovverride the problem, it was response 5, I rendered the dialog, then set null the value renderer, so it couldn't complete the security check. Many Thanks! – Marco Vasapollo Sep 03 '11 at 14:24
  • You're welcome. I reposted it as an answer. – BalusC Sep 03 '11 at 14:30

1 Answers1

2

This can have many possible causes, the common ones being nesting <h:form> components or using a rendered attribute on the input or one of its parents which evaluated false during form submit. For a detailed overview of them all, check commandButton/commandLink/ajax action/listener method not invoked or input value not updated

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555