Hi all,

While this is a Java Client application I'm working on, I think the question may be more of a "nested editing contexts" question.

With WO on the client side you can call methods that only exist on the server. This is useful for doing things that may require fetching large numbers of records from the database and processing them without copying them down to the client. This is much like how a normal web application works.

A WO Java Client application has a version of EOF that sits on the client, including client-side EOEditingContexts that are basically a snapshot of the corresponding EC on the server.

Now, the tricky part is when you invoke a remote method on the server, the first thing the client side EOF does is resync the client-side EC up to the server. This is basically the same thing as saving a normal EC, in that it triggers validation.

Does anyone have a way to disable the validation for a specific Remote Method Invocation (RMI), or and elegant way to not send the RMI unless the EO passes validation?

Right now I'm adding a EOGenerator method that simply checks for any properties that cannot be null, and if any are it returns "false" and I have all my RMI calls wrapped in an "if" statement to keep them from firing.

Thanks!

Dave

_______________________________________________
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