5 Replies Latest reply on Apr 2, 2007 5:37 PM by mikeeprice

    CRUD framework documentation

    mikeeprice

      Where would I find complete documentation for all the XML associated with the CRUD stuff. I am thinking particularly of things in the components.xml file like entity-home. I have found examples of some of it in the Seam reference manual and in the Seam book but neither of these appear to be a complete description of all the associated xml. For example can I specifiy declaratively a different navigation outcome other than "persist" for the persist operation or would I have to go the extension route to do this.

        • 1. Re: CRUD framework documentation

          You can see what the options are by looking at the XSD. There isn't much explanation there, but ....

          To answer your question, you can only change the navigation outcome by subclassing EntityHome. Im curious

          • 2. Re: CRUD framework documentation

            Sorry - I hit submit by accident. I meant to finish: I'm curious why you would want to change the navigation outcomes. The XML navigation is fine-grained enough that I don't see how changing the outcome would help much.

            • 3. Re: CRUD framework documentation
              mikeeprice

              I have a person bean/table and I also wanted to create another bean/table for certain zip codes that would be allowed.


              <fwk:entity-home name="personDao"
              entity-class="Person"
              entity-manager="#{em}"/>


              <fwk:entity-home name="zipCodeDao"
              entity-class="ZipCode"
              entity-manager="#{em}"/>

              The navigation result from both of these is "persisted" but I want to go to
              a different result page for zipCode than for Person. I thought it would be nice if I could specifiy the result with something like
              persisted-result="personPersisted" for person and something else for zipCode. The same thing would nice for updated and removed. But I guess at some point there is practical limit to this sort of thing.

              • 4. Re: CRUD framework documentation
                mariuszs

                You can define other results (redirections) for diffrent pages, even if outcome is equal, ex. persisted.

                • 5. Re: CRUD framework documentation
                  mikeeprice

                  OK. So I looked up some info on <navigation-rule> and found <from-view-id> which I used to make things work the way I would like to.

                  Thanks for the info.