You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by gonzalomp87 <go...@gmail.com> on 2012/07/25 02:25:28 UTC
Problems with validators
The following code, the validators only work with javascript. If you disable
not displayed on the server side.
Why does this happen?
<form t:type="Form" t:id="uploadForm">
<t:errors/>
<input t:type= "upload" t:id= "file" t:value= "fileup" t:validate=
"required, regexp" />
<br/>
<input type= "submit" value= "${message:botton-upload}" />
</form>
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Problems-with-validators-tp5714769.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Problems with validators
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Tue, 24 Jul 2012 21:25:28 -0300, gonzalomp87 <go...@gmail.com>
wrote:
> The following code, the validators only work with javascript. If you
> disable not displayed on the server side.
>
> Why does this happen?
>
>
> <form t:type="Form" t:id="uploadForm">
> <t:errors/>
> <input t:type= "upload" t:id= "file" t:value= "fileup"
> t:validate=
> "required, regexp" />
The required and regexp validators only work with strings, not
UploadedFile instances. It's a surprise for me they work client-side.
Consider that as a bonus.
--
Thiago H. de Paula Figueiredo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org