Hi Ramsey,
On Mar 3, 2013, at 1:13 PM, Ramsey Gurley <[email protected]> wrote:
>
> 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.
I'm not using Ajax (yet). So, the takeValuesFromRequest phase is not getting
called during the select action.
So the "action" I'm passing in to the select component looks something like
this:
public WOActionResults selectObject() {
setEditorPageKey(INSPECT_TASK);
return context().page();
}
Do I need to return a new component instead? i.e.
public WOActionResults selectObject() {
SomeComponent nextPage = pageWithName(SomeComponent.class);
nextPage.setEditorPageKey(INSPECT_TASK);
nextPage.setSelectedObject(selectedObject());
return nextPage;
}
>
>> 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 yet. I wanted to start with the basics to get an understanding of the
original Wonderized version. As a side note... the original frameworks for
Apple had the master/detail pages do you know why they were never created in
the Wonder frameworks? Ultimately, I would like to combine query, select and
inspect/edit into one page. Do you see any reason that wouldn't be possible?
>
> 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.
OK. I'll try to figure it out.
>
>> 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
No thank you for pointing that out. I'm going to read it now.
Thanks,
Johnny
>
> 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]