You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Geoff Callender <ge...@gmail.com> on 2013/12/28 03:12:15 UTC
Is JSR-303 validation possible in a Loop?
Is there a way to enable client-side JSR-303 validation of the bean in each
row of a Loop?
Re: Is JSR-303 validation possible in a Loop?
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Sat, 28 Dec 2013 21:21:42 -0200, Chris Mylonas <ch...@opencsta.org>
wrote:
> Out of curiosity, is it possible with normal form components i.e.
> textfields?
Yep. See http://tapestry.apache.org/bean-validation.html.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Is JSR-303 validation possible in a Loop?
Posted by Lance Java <la...@googlemail.com>.
I'm not sure I fully understand the "validate" parameter on form
On 29 December 2013 00:58, Geoff Callender <
geoff.callender.jumpstart@gmail.com> wrote:
> I'm thinking that Loop and Grid both need a "validate" parameter like Form
> has.
>
>
> On 29 December 2013 11:54, Lance Java <la...@googlemail.com> wrote:
>
> > It's possible but requires a bit of fancy footwork. See here:
> >
> > http://tapestry-stitch.uklance.cloudbees.net/mapbindingdemo
> >
> > Note usage of FieldSnapshot and reverse engineering a field name from a
> > control name.
> > On 28 Dec 2013 23:22, "Chris Mylonas" <ch...@opencsta.org> wrote:
> >
> > > Out of curiosity, is it possible with normal form components i.e.
> > > textfields?
> > >
> > >
> > >
> > > On Sat, Dec 28, 2013 at 1:12 PM, Geoff Callender <
> > > geoff.callender.jumpstart@gmail.com> wrote:
> > >
> > > > Is there a way to enable client-side JSR-303 validation of the bean
> in
> > > each
> > > > row of a Loop?
> > > >
> > >
> >
>
Re: Is JSR-303 validation possible in a Loop?
Posted by Geoff Callender <ge...@gmail.com>.
I'm thinking that Loop and Grid both need a "validate" parameter like Form
has.
On 29 December 2013 11:54, Lance Java <la...@googlemail.com> wrote:
> It's possible but requires a bit of fancy footwork. See here:
>
> http://tapestry-stitch.uklance.cloudbees.net/mapbindingdemo
>
> Note usage of FieldSnapshot and reverse engineering a field name from a
> control name.
> On 28 Dec 2013 23:22, "Chris Mylonas" <ch...@opencsta.org> wrote:
>
> > Out of curiosity, is it possible with normal form components i.e.
> > textfields?
> >
> >
> >
> > On Sat, Dec 28, 2013 at 1:12 PM, Geoff Callender <
> > geoff.callender.jumpstart@gmail.com> wrote:
> >
> > > Is there a way to enable client-side JSR-303 validation of the bean in
> > each
> > > row of a Loop?
> > >
> >
>
Re: Is JSR-303 validation possible in a Loop?
Posted by Lance Java <la...@googlemail.com>.
It's possible but requires a bit of fancy footwork. See here:
http://tapestry-stitch.uklance.cloudbees.net/mapbindingdemo
Note usage of FieldSnapshot and reverse engineering a field name from a
control name.
On 28 Dec 2013 23:22, "Chris Mylonas" <ch...@opencsta.org> wrote:
> Out of curiosity, is it possible with normal form components i.e.
> textfields?
>
>
>
> On Sat, Dec 28, 2013 at 1:12 PM, Geoff Callender <
> geoff.callender.jumpstart@gmail.com> wrote:
>
> > Is there a way to enable client-side JSR-303 validation of the bean in
> each
> > row of a Loop?
> >
>
Re: Is JSR-303 validation possible in a Loop?
Posted by Chris Mylonas <ch...@opencsta.org>.
Out of curiosity, is it possible with normal form components i.e.
textfields?
On Sat, Dec 28, 2013 at 1:12 PM, Geoff Callender <
geoff.callender.jumpstart@gmail.com> wrote:
> Is there a way to enable client-side JSR-303 validation of the bean in each
> row of a Loop?
>