On Mar 3, 2013, at 2:00 PM, Johnny Miller wrote: > Hi, > > So I'm trying to create a component like the master detail page in the > "Custom and embedded d2w components" presentation. > > My list page component subclasses ERD2WListPage and my inspect page > subclasses ERD2WInspectPage. > > So, I can select an object from the list and the inspect page pulls up the > object and I can edit it. > > But one nagging thing that is happening is that if an object fails validation > and I select a different object from the list the error message persists. > How would I reset the error message dictionary?
I don't think that should happen. ERD2WPage calls clearValidationFailed() in takeValuesFromRequest(). Every component should be getting awake, takeValues, invoke, append, sleep on each RR loop. If you're using Ajax, I think those steps are less guaranteed/clear. > Another question I have is that I'm using the "validationKeys" rule to add a > custom validation. I see that the validation gets called, the error gets > thrown and caught during performAdditionalValidations but the error message > does not get added to the error messages dictionary. Any idea where I am > going wrong with that? Are your components based on ERModern? https://github.com/projectwonder/wonder/issues/97 Not picking on modern specifically though. validationKeys is little used. It could have been broken by code changes at some point and there may just have been nobody using it to notice yet. > Finally, I'm a little confused about how the branchDelegates work. Is there > an example that would be good for me to look at? Did you look at this yet? http://wiki.wocommunity.org/display/documentation/D2W+Flow+Control Ramsey > > Thank you, > > Aloha, > Mr. Johnny Miller > Web Development Manager > Kahalawai Media Company > Lahaina, HI 96761 > tel: (808) 661-7962 | mobile: (808) 283-0791 > website | e-mail > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
