Validate B4 NextPage
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.