• 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
direct actions and the current editing context
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

direct actions and the current editing context


  • Subject: direct actions and the current editing context
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Fri, 25 Sep 2009 14:57:10 -0700

I posted on Twitter:
"I'm stuck, try planetarysufis.com and see how the date popups, which are submits from wopopups reset the area popups, both call direct actions, the hyperlinked next month arrows succeed."


After a date change the area is set back to null because the following search throws a <EOObjectNotAvailableException> even though the <values> are the same as when it succeeds.

values.takeValueForKey( curRegionName, "state.region.regionName" );
values.takeValueForKey( curStateName, "state.stateName" );
values.takeValueForKey( curAreaName, "areaName" ); // with these <values> we'll search the <Area> table


curArea = (Area)EOUtilities.objectMatchingValues( ec, "Area", values );

Is there a problem with the way I am handling the EOEditingContext? Or something else?

setEC() gets called in the constructor and/or the awake method of the WOComponent.
The WOComponent is used by Direct Actions and by Session based form entry, but in the error case it is used by a non-session scenario.


public void setEC()  {
	if ( hasSession() )  {
...
	} else {
		if ( ec == null )  {
			ec = new EOEditingContext();
		}
	}
}

************************
I need to know how to adjust timeouts so that instances stay available rather than disconnecting as I step through code, (Note: ChuckH, I am finally using Direct Connect thanks to WOLips), that's good. I don't see how you can debug cookie interaction otherwise.
----
Baiss Eric Magnusson
http://www.CascadeWebDesign.com




_______________________________________________
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


  • Prev by Date: Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
  • Next by Date: [SOLVED] direct actions and the current editing context
  • Previous by thread: Re: Even Java 1.5 on Snow Leopard is actually Java 1.6
  • Next by thread: [SOLVED] direct actions and the current editing context
  • Index(es):
    • Date
    • Thread