• 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
Validate B4 NextPage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Validate B4 NextPage


  • Subject: Validate B4 NextPage
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Wed, 18 Dec 2002 17:21:10 +0000

Hello All,
You would happen to know how to run a validation before going to a next page would you? Here are the two bits of code I want to try and marry together but am not succeding:


// This method runs validation on the form
   public WOComponent dbAddTbJobToList() {
       try {
           tbJob.validateForSave();

       }
       catch (NSValidation.ValidationException exception) {
           validationDictionary.setObjectForKey(Boolean.TRUE,
                                                "saveValidationFailed");
           validationDictionary.setObjectForKey(exception.getMessage(),
                                                "saveValidationString");
       }

       return context().page();
   }


// method used on the "Done" submit button
public WOComponent done() {
ClientSearchAddEditPage nextPage = (ClientSearchAddEditPage)pageWithName("ClientSearchAddEditPage");


       return nextPage;
   }

Advanced thanks for your help
Jonathan


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
_______________________________________________
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.

  • Follow-Ups:
    • Re: Validate B4 NextPage
      • From: Zoe Test <email@hidden>
  • Prev by Date: Dec Tools 2002 Warning
  • Next by Date: Re: Validate B4 NextPage
  • Previous by thread: Dec Tools 2002 Warning
  • Next by thread: Re: Validate B4 NextPage
  • Index(es):
    • Date
    • Thread