• 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: newEO.localInstanceIn(localEditingContext)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newEO.localInstanceIn(localEditingContext)


  • Subject: Re: newEO.localInstanceIn(localEditingContext)
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 26 Mar 2009 14:51:40 -0700


On Mar 26, 2009, at 2:36 PM, Ricardo J. Parada wrote:


On Mar 26, 2009, at 5:05 PM, Chuck Hill wrote:

On Mar 26, 2009, at 1:44 PM, Ricardo J. Parada wrote:


Yes, you are right... I better comment on the context. :-)

I'm playing with ajax tabbed panel and tabs.

Each component in a tab is getting its own editing context. Its own sandbox. :-)

If the user is editing something in tab1 (i.e. has pending edits), he can switch to tab2 and change something there and save that... then come back to tab1 and the changes there are still pending and he can click save there. Anyways, each tab has its own sandbox.

But this design breaks when you have a new EO because you cannot make a copy of the EO into the other editing contexts used by the other tabs.
And I think it also breaks if I attempt to make a copy of the EO if it has pending changes from tab1 for example (right?).


So... I could change it to have all the tabs share the editing context and would probably make things easier... I just wished I could have the tab submit the form within the displayed tab when the user switches tabs... Otherwise the user will change something in a text field in tab1 then switch to tab2 and then back to tab1 and notice that the change made in the text field was lost.

Thanks,
Ricardo

Have one EC for the tab form as whole, and one child EC for each tab. I think that will do what you want.

Hmm... If I do this then clicking save in one tab will simply commit the changes to the parent editing context (it won't save to the database right?).



Right, you need something to save the whole form. I'm not sure if this control will handle saving before each tab switch and refusing switching if not valid. I had wanted to add this, but don't think that I did.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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: newEO.localInstanceIn(localEditingContext)
      • From: "Ricardo J. Parada" <email@hidden>
References: 
 >newEO.localInstanceIn(localEditingContext) (From: "Ricardo J. Parada" <email@hidden>)
 >Re: newEO.localInstanceIn(localEditingContext) (From: Ken Anderson <email@hidden>)
 >Re: newEO.localInstanceIn(localEditingContext) (From: "Ricardo J. Parada" <email@hidden>)
 >Re: newEO.localInstanceIn(localEditingContext) (From: Chuck Hill <email@hidden>)
 >Re: newEO.localInstanceIn(localEditingContext) (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: [Somewhat OT] Code organization question
  • Next by Date: Re: newEO.localInstanceIn(localEditingContext)
  • Previous by thread: Re: newEO.localInstanceIn(localEditingContext)
  • Next by thread: Re: newEO.localInstanceIn(localEditingContext)
  • Index(es):
    • Date
    • Thread