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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to