I'd like to apply validation to a standard 'check here to sign your rights away forever' checkbox on a form, so that I can use javascript to tell the user that they can't submit until they click it. Using a standard required validator do anything.
SImilarly, the pattern of populating the first value of a Select list with text rather than a valid value means that I'd like to use a validator to force the user to select some other value before submitting the form. I don't think there is a NotEquals validator, but I could write one easily enough, if the Select component worked with Validators, which it doesn't seem to. Any advice there? More importantly, it would seem natural to modify the Select component in Tapestry so that it would be possible to specify disallow-first or some similar parameter, since this is a fairly common parameter. THe same functionality could actually check that the sutmitted value is a valid value, rather than merely checking that it is not equal to some known bad value, although it seems reasonable to assume that anyone attempting to spoof value to the server will probably disable javascript first, anyway. --sam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
