direct actions and the current editing context
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