0 Replies Latest reply on May 9, 2007 10:57 AM by dacloutier

    seam generate-entities with recursive table

    dacloutier

      I need help.

      I am new to seam, I am reading the book, and playing with seam gen.

      I am having a problem with application generated by seam gen and I can't figure out how to manually fix it.

      I am having a problem where as the seam generated app, which has a recursive table ( it can't add new child entries ) and I can't figure out how to manually fix it.

      This is because the link to add the new child points to the same edit page that I am currently on, and goes back to the same parent entry....

      Details:
      I have a ReportSection class which has a

      Set<ReportSection> reportSections
      property and
      ReportSection parentReportSection
      property.

      My ReportSectionEdit.xhtml page has a tab which lists the reportSections and has a "Add reportSection" button, as follows:

      <s:button id="addreportSection"
       value="Add reportSection"
       view="/ReportSectionEdit.xhtml"
       propagation="none">
       <f:param name="reportSectionId" value="#{reportSectionHome.instance.id}"/>
       <f:param name="reportSectionFrom" value="ReportSection"/>
       </s:button>
      


      When I click on "Add reportSection" button, I just go back to the same page.

      Any help is appreciated.

      Thanks.