Is there any way to configure validation so that a validator only runs
for a specific submit method?
My situation is that I have a page with a few checkboxes and some
linksubmits on it. There's also a popup dialog box with some other form
controls and a submit button. I need everything in one form because the
checkbox states should be persisted even when the popup dialog is
submitted. However, the validation for the controls in the dialog
should only be performed when the submit button in the dialog is clicked.
My options as I see them:
- find a way to tie a control's validation to a specific submit method
(what I'd prefer)
- validate manually in the listener method (loses client-side
validation, requires more code)
- use a separate form with an async submit for the popup (may work, but
then I'd have to return some javascript to submit the main page and
redirect)
- change the submitType to refresh on the LinkSubmits in the main page
so that only the the popup dialog's submit triggers validation. I'm not
sure if this would work at all, and I don't like it because it's a
yes/no solution rather than letting me choose a set of controls to validate.
-Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]