0 Replies Latest reply on Apr 21, 2008 5:16 AM by lucab

    ModalPanel: validation errors ARE displayed BUT on the wrong

    lucab

      I have a page that looks something like this:

      <h: form>
      // lot of fields
      <a4j:commandButton type="button" action="#{contactNavigation.reset}" reRender="addcontact-view" oncomplete="Richfaces.showModalPanel('addContactPanel');" styleClass="button" value="#{msg.addContact}" />
      // rest of the form
      </h:form>

      Then, at the bottom of the jsp i have a ModalPanel included this way:
      <a4j:include id="addcontact-panel" viewId="addContact.jsp" />

      The modalPanel contains its own h:form (external respect to the previuos h:form)
      The problem is that when i submit the form inside the modalPanel, errors are displayed in the first form, not in the modalPanel (both forms include a rich:messages). Although errors are displayed correctly i don't want them to be displayed is such a way. Each form should intercept only its own errors. Any ideas?

      regards