From: Michael P. <mp...@ma...> - 2004-09-28 20:08:27
|
Anjo, Thanks! It works beautifully, with either assignment class. Perhaps you could suggest a preference as I'm not sure of the performance differences between the two. The problem I see now is that I can not assign branch choices with the syntax given in Max's post (http://sourceforge.net/mailarchive/message.php?msg_id=1722030). I'll past the quoted example below: >> pageConfiguration = "PickResponsesForProposal" => branchChoices = >> "( { branchName = "acceptProposals"; displayName = "Accept";}, >> { branchName = "rejectProposals"; displayName = "Reject";}, >> { branchName = "reviewProposals"; displayName = "Send For Review";}, >> { branchName = "forwardProposals"; displayName = "Forward To >> Another";}) When I try to assign branchChoices in this manner I my button labels show up as "Submit", but the action works correctly. If I delete my branchChoices rule, the ERD2WPickListPage component appears to auto generate the button labels, which is nice but not quite what I'd like. Thanks again and I think your nextPageDelegate() implementation would be very nice to have included in ERD2WPage. Mike On Sep 28, 2004, at 10:51 AM, Anjo Krank wrote: > > Am 28.09.2004 um 19:21 schrieb Michael Parlee: > >> >> My question is what is the best method for setting a nextPageDelegate >> for a given page or page configuration. I would like to be able to >> do it with a rule, but all the examples I can find do it >> programmatically. >> > > That's a nice idea. You can use a ERDInstanceCreationAssignment or a > ERDDelayedObjectCreationAssignment (probably the latter) and have it > return from your page's > > public NextPageDelegate nextPageDelegate() { > NextPageDelegate n = super.nextPageDelegate(); > if(n == null) { > n = (NextPageDelegate)d2wContext().valueForKey("nextPageDelegate"); > if(n != null) { > setNextPageDelegate(n); > } > } > return n; > } > > If this actually works, we could put this in ERD2WPage. > > Cheers, Anjo > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give > us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc > |