On 1/17/06, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> And how can I apply some CSS so that the user knows he has to fill in these
> fields before seeing an error?  I have "validator = V.String(if_empty = None)"
> that gives me the same result, but without the visual feedback when the form
> is shown (imgine 'red dots' on required fields, for example).

And that is the mystery. I have been skating around this issue. There
should really be a 'required' attribute on the base widget. If true it
would add 'required_field' to the class so you can css it and would
set the validator to V.NotEmpty by default.

If a validator is passed in, that overrides V.NotEmpty. This means
that you can do something like V.String(if_empty = None) and secretly
make a required field not required, but I think this would work for
most situations.

Reply via email to