3 Replies Latest reply on May 31, 2007 8:18 AM by Ralf

    DropDownMenu did not find parent form

    Ralf Newbie

      This is my menu:

      <rich:dropDownMenu value="#{msg.menu_chassis_main}">
      <rich:menuItem submitMode="ajax" value="#{msg.menu_chassis_open}" action="goChassis" />
      <rich:menuItem immediate="true" value="#{msg.menu_chassis_insert}" action="#{customer.insert}" />
      </rich:dropDownMenu>

      First item works fine, but the second throws this exception:

      javax.servlet.ServletException: class org.richfaces.component.html.HtmlDropDownMenu (id="_idJsp6") did not find parent form.
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
      org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
      org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      teamdev.jsf.util.ResourceFilter.doFilter(SourceFile:67)


      This is the code:

      public String insert(){
      chassisDAO.loadEmptyChassis(this);
      return "goChassisInsert";
      }

      and fhe faces config:

      <navigation-case>
      <from-action>#{customer.insert}</from-action>
      <from-outcome>goCustomerInsert</from-outcome>
      <to-view-id>/app/customer/details.jsp</to-view-id>
      </navigation-case>


      Any ideas what im doing wrong.