• 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
Re: JavaClient RMI and Validation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JavaClient RMI and Validation


  • Subject: Re: JavaClient RMI and Validation
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 11 Apr 2008 10:33:33 +1000

Hi there,

On 11/04/2008, at 7:43 AM, David Avendasora wrote:
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.

No idea... but maybe optionally calling super in validateForSave?

with regards,
--

Lachlan Deck

_______________________________________________
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


  • Follow-Ups:
    • Re: JavaClient RMI and Validation
      • From: Anjo Krank <email@hidden>
References: 
 >JavaClient RMI and Validation (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Apache 2.2 mod_WebObjects.so on linux
  • Next by Date: Re: Convenience functions in model classes
  • Previous by thread: JavaClient RMI and Validation
  • Next by thread: Re: JavaClient RMI and Validation
  • Index(es):
    • Date
    • Thread