Problem with server-side computed EO property in DTJ Client
Problem with server-side computed EO property in DTJ Client
- Subject: Problem with server-side computed EO property in DTJ Client
- From: Joseph Catalano <email@hidden>
- Date: Tue, 31 Dec 2002 18:18:20 -0500
The "Enhancing the Application" chapter of the WODesktopApps.pdf
tutorial explains how to add custom business logic to an EO so that it
can support a property that is computed server-side from other
properties in the EO. I implemented this technique in my own project
and it works fine except when making a new instance of the EO because
certain properties are set to be non-null in the EOModel. The odd thing
is that none of the non-null attributes are used by the custom code,
however, it seems that when the remote invocation is made, the
client-side copy of the EO has to be synched with the server-side (or
possibly created server-side however it's done) and for whatever
reason, the server is performing validation on the object even though
it's not being committed to the data store. I can work around this by
setting default values for those non-null attributes, or I could just
specify in the EOModel that they allow for null, but I really didn't
want either of those solutions. Has anyone ever come across this issue
and know of a fix for it? I'm using WO 5.2 btw.
-Joe
----------------------------------
Joseph Catalano
Department of CS and EE
University of Maryland, Baltimore County
Baltimore, MD 21250
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.