You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian Mittendorf <ch...@freenet.de> on 2006/02/01 11:24:13 UTC
required validator for TextField
Hello!
I have a TextField where I've added an required validator:
<input type="text" jwcid="@TextField" value="ognl:name"
validators="validators:required"/>
This is working nice and it displays an error if no value is
submitted. But...
...if I delete the value from the TextField and submit the form, the
form field will
keep the old value that I had entered before. The text field will not
take the "null"
value, show up as an empty text field and display an error, which
would be the behaviour
that I would expect.
Is this the way "required" is supposed to work?
Christian
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: required validator for TextField
Posted by Christian Mittendorf <ch...@freenet.de>.
Ok, back... please ignore this message.
I was using a Safari Nightly which seems to be somehow broken... the
latest official versions of Safari or Firefox work as I had expected...
Sorry...
Christian
Am 01.02.2006 um 11:24 schrieb Christian Mittendorf:
> Hello!
>
> I have a TextField where I've added an required validator:
>
> <input type="text" jwcid="@TextField" value="ognl:name"
> validators="validators:required"/>
>
> This is working nice and it displays an error if no value is
> submitted. But...
>
> ...if I delete the value from the TextField and submit the form,
> the form field will
> keep the old value that I had entered before. The text field will
> not take the "null"
> value, show up as an empty text field and display an error, which
> would be the behaviour
> that I would expect.
>
> Is this the way "required" is supposed to work?
>
> Christian
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org