• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More Embedded D2W Questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Embedded D2W Questions...


  • Subject: Re: More Embedded D2W Questions...
  • From: Johnny Miller <email@hidden>
  • Date: Mon, 04 Mar 2013 09:51:52 -1000

Hi Ramsey,

On Mar 3, 2013, at 1:13 PM, Ramsey Gurley <email@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: More Embedded D2W Questions...
      • From: Ramsey Gurley <email@hidden>
References: 
 >More Embedded D2W Questions... (From: Johnny Miller <email@hidden>)
 >Re: More Embedded D2W Questions... (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: EOF not setting the PK in INSERT statements
  • Next by Date: Re: More Embedded D2W Questions...
  • Previous by thread: Re: More Embedded D2W Questions...
  • Next by thread: Re: More Embedded D2W Questions...
  • Index(es):
    • Date
    • Thread