looks like an oversight -i'll put together a patch
On Jun 8, 11:51 am, Roelof Blom <[email protected]> wrote:
> Can't think of a good reason why TextFieldValue shouldn't generate
> validation.
>
> On Fri, May 22, 2009 at 9:59 PM, Mike Nichols <[email protected]>wrote:
>
>
>
> > I'm applying validation to my forms and note that when I use
> > Form.TextFieldValue("myTarget.Project","somevalue") the validation
> > decorated on the object in PropertyBag["myTargetType"] is failing, but
> > when I just use Form.TextField("myTarget.Project") the validation JS
> > is generated correctly.
>
> > Is the lack of javascript generation by design or an oversight? It
> > seems like validation javascript should be generated regardless of
> > whether a value is provided or not.
>
> > I realize I could use 'defaultValue="somevalue"' but I am not sure why
> > in either case validation wouldn't be generated.
>
> > BTW, I am using the JQueryValidator.
>
> > Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---