[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: Is it possible to attach validator to a Checkbox?
From:       Balázs Palcsó <palcso.balazs () gmail ! com>
Date:       2014-04-17 7:26:33
Message-ID: CAGNixymKZ3mobgFEiXxd28QcMn9_=OXceS9k=udtJsuy7s2EnA () mail ! gmail ! com
[Download RAW message or body]


Thanks Geoff. It looks like. I have commented the issue.


On 17 April 2014 03:49, Geoff Callender <geoff.callender.jumpstart@gmail.co=
m
> wrote:

> This might be the client-side counterpart of
> https://issues.apache.org/jira/browse/TAP5-2075 ?
>
> On 17/04/2014, at 7:08 AM, Bal=C3=A1zs Palcs=C3=B3 wrote:
>
> > Hi,
> >
> > I was trying to apply @AssertTrue on a boolean field.
> > I noticed that it is ignored during the server side validation. So I
> > implemented custom validation on my page in onValidate().
> > Now I tried to attach a custom client side validation to my field
> annotated
> > with @AssertTrue as it is described at
> >
> http://jumpstart.doublenegative.com.au/jumpstart7/examples/input/contribu=
tingvalidators
> >
> > But it does not seem to work either. This made me wonder if there is
> > validation on checkbox/boolean is ignored/not added on purpose.
> >
> > Is this a correct observation?
> > I guess I will need to create a page specific JS for this particular
> > checkbox validation. Any other suggestions?
> >
> > Cheers,
> > Balazs
> >
> >
> > On 13 April 2014 23:51, Bal=C3=A1zs Palcs=C3=B3 <palcso.balazs@gmail.co=
m> wrote:
> >
> >> @AssertTrue JSR-303 annotation is what I need
> >>
> http://docs.jboss.org/hibernate/stable/beanvalidation/api/javax/validatio=
n/constraints/AssertTrue.html
> >> Just need to get it working with tapestry-beanvalidator.
> >>
> >>
> >> On 12 April 2014 15:40, Bal=C3=A1zs Palcs=C3=B3 <palcso.balazs@gmail.c=
om> wrote:
> >>
> >>> Hi All,
> >>>
> >>> I need to implement a registration form where the user has to accept
> the
> >>> terms & conditions of the site by ticking a checkbox.
> >>> I was wondering somebody has come across a tapestry extension that do=
es
> >>> something like this.
> >>> I would say that a custom validator could solve this.
> >>>
> >>> Thanks and regards,
> >>> Balazs
> >>>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic