-
1. Re: CRUD framework documentation
norman.richards Apr 2, 2007 1:07 PM (in response to mikeeprice)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
norman.richards Apr 2, 2007 1:10 PM (in response to mikeeprice)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 Apr 2, 2007 1:35 PM (in response to 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 Apr 2, 2007 2:04 PM (in response to mikeeprice)You can define other results (redirections) for diffrent pages, even if outcome is equal, ex. persisted.
-
5. Re: CRUD framework documentation
mikeeprice Apr 2, 2007 5:37 PM (in response to 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.