You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lidija Dolinar <li...@gmail.com> on 2013/11/27 20:36:05 UTC
Client-side email validation not working
Hi,
I can't seem to get client-side email validation to work.
My tml code:
<input t:type="TextField" t:id="emailValue" t:validate="required,email"
id="emailValue" value="emailValue" style="${displayEmailInvalid()}"
size="40" />
emailValue is being validated for "required", but not for "email" validity.
Why not?
Regards,
Lidija
Re: Client-side email validation not working
Posted by Lidija Dolinar <li...@gmail.com>.
Thank you for your responses.
I solved it by using regexp as Jan suggested.
My email text field looks like this:
<t:textfield t:type="TextField" t:id="email"
t:validate="required,email,regexp=.*@.*\..*" id="email" value="email">
Tapestry 5.4 has email validation, that's good to know.
Currently we're using version 5.3.7, so the above solution will do fine :).
Kind regards,
Lidija
On Tue, Dec 3, 2013 at 7:11 PM, Dimitris Zenios
<di...@gmail.com>wrote:
> Tapestry 5.4 implements client side email validation along with server side
>
>
> On Tue, Dec 3, 2013 at 7:14 PM, Jan Fryblik <jan.fryblik@ebrothers.cz
> >wrote:
>
> > On Tue, 03 Dec 2013 18:07:10 +0100, Thiago H de Paula Figueiredo <
> > thiagohp@gmail.com> wrote:
> >
> > On Wed, 27 Nov 2013 17:36:05 -0200, Lidija Dolinar <
> lidija.ldo@gmail.com>
> >> wrote:
> >>
> >> Hi,
> >>>
> >>
> >> Hi!
> >>
> >
> > Hi,
> >
> >
> >> I can't seem to get client-side email validation to work.
> >>>
> >>
> >> I don't think the client-side validation was ever implemented, just the
> >> server-side one.
> >>
> >
> > Yes, pretty annoying thing.
> >
> >>
> >>
> > As a workaround you can use regexp validation which supports also
> > client-side implementation.
> >
> >
> > BR,
> > Jan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
Re: Client-side email validation not working
Posted by Dimitris Zenios <di...@gmail.com>.
Tapestry 5.4 implements client side email validation along with server side
On Tue, Dec 3, 2013 at 7:14 PM, Jan Fryblik <ja...@ebrothers.cz>wrote:
> On Tue, 03 Dec 2013 18:07:10 +0100, Thiago H de Paula Figueiredo <
> thiagohp@gmail.com> wrote:
>
> On Wed, 27 Nov 2013 17:36:05 -0200, Lidija Dolinar <li...@gmail.com>
>> wrote:
>>
>> Hi,
>>>
>>
>> Hi!
>>
>
> Hi,
>
>
>> I can't seem to get client-side email validation to work.
>>>
>>
>> I don't think the client-side validation was ever implemented, just the
>> server-side one.
>>
>
> Yes, pretty annoying thing.
>
>>
>>
> As a workaround you can use regexp validation which supports also
> client-side implementation.
>
>
> BR,
> Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Client-side email validation not working
Posted by Jan Fryblik <ja...@ebrothers.cz>.
On Tue, 03 Dec 2013 18:07:10 +0100, Thiago H de Paula Figueiredo
<th...@gmail.com> wrote:
> On Wed, 27 Nov 2013 17:36:05 -0200, Lidija Dolinar
> <li...@gmail.com> wrote:
>
>> Hi,
>
> Hi!
Hi,
>
>> I can't seem to get client-side email validation to work.
>
> I don't think the client-side validation was ever implemented, just the
> server-side one.
Yes, pretty annoying thing.
>
As a workaround you can use regexp validation which supports also
client-side implementation.
BR,
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Client-side email validation not working
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 27 Nov 2013 17:36:05 -0200, Lidija Dolinar <li...@gmail.com>
wrote:
> Hi,
Hi!
> I can't seem to get client-side email validation to work.
I don't think the client-side validation was ever implemented, just the
server-side one.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
Help me spend a whole month working on Tapestry bug fixes and
improvements: http://igg.me/at/t5month
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org