You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Howard M. Lewis Ship" <hl...@comcast.net> on 2004/06/04 18:59:06 UTC
RE: Is it possible to use the string validation to validate the inputs maxlength?
This has been asked for informally; it should be added to bugzilla.
Given that you can set maxlength of an <input>, I didn't see this as a priority :-)
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com
> -----Original Message-----
> From: Chris Norris [mailto:CNorris@widen.com]
> Sent: Friday, June 04, 2004 12:27 PM
> To: Tapestry users
> Subject: RE: Is it possible to use the string validation to
> validate the inputs maxlength?
>
>
> The StringValidator does not have this functionality, but you
> could easily
> make your own class that validated strings and validated
> based on max length
> as well. Look at the
> org.apache.tapestry.valid.StringValidator class, it's
> pretty straightforward.
>
> -chris
>
> > -----Original Message-----
> > From: Dylan Etkin [mailto:detkin@csir.co.za]
> > Sent: Friday, June 04, 2004 3:30 AM
> > To: tapestry-user@jakarta.apache.org
> > Subject: Is it possible to use the string validation to
> > validate the inputs maxlength?
> >
> > Hi,
> > This feels like a stupid question but I have looked around
> and don't
> > seem to find an answer. I want to use the tapestry string
> > validation to
> > validate that a TextArea's input does not exceed a max
> > length. Is there
> > a way to do this?
> >
> > Thanks in advance,
> >
> > Dylan Etkin
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > MailScanner thanks transtec Computers for their support.
> >
> >
>
> ---------------------------------------------------------------------
> 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
RE: Is it possible to use the string validation to validate the inputs maxlength?
Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
This IS an easy task, at least if you know a little bit about the encoding.
I see this as an issue. I'll go ahead and add it to Bugzilla, if it is not
already done by someone else.
-Filip S. Adamsen
> -----Original Message-----
> From: Kevin J. Menard, Jr. [mailto:nirvdrum@negativetwenty.net]
> Sent: Tuesday, June 08, 2004 4:55 AM
> To: Tapestry users
> Subject: Re: Is it possible to use the string validation to validate the
> inputs maxlength?
>
> What if someone manually modifies the query string? I don't think this
> is a particularly easy task, but there's always someone out there
> trying to thwart web apps . . . Or is this not so much of an issue?
>
> --
> Kevin
>
> On Jun 4, 2004, at 12:59 PM, Howard M. Lewis Ship wrote:
>
> > This has been asked for informally; it should be added to bugzilla.
> >
> > Given that you can set maxlength of an <input>, I didn't see this as a
> > priority :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Is it possible to use the string validation to validate the inputs maxlength?
Posted by "Kevin J. Menard, Jr." <ni...@negativetwenty.net>.
What if someone manually modifies the query string? I don't think this
is a particularly easy task, but there's always someone out there
trying to thwart web apps . . . Or is this not so much of an issue?
--
Kevin
On Jun 4, 2004, at 12:59 PM, Howard M. Lewis Ship wrote:
> This has been asked for informally; it should be added to bugzilla.
>
> Given that you can set maxlength of an <input>, I didn't see this as a
> priority :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Is it possible to use the string validation to validate the inputs maxlength?
Posted by "Filip S. Adamsen" <fi...@stubkjaer-adamsen.dk>.
You _should_ be able to. But the HTML specification(s) lacks this kind of
support. We'll just have to wait for XForms to be _properly_ supported. Have
a look at the XForms page at W3C: http://www.w3.org/MarkUp/Forms/
-Filip S. Adamsen
> -----Original Message-----
> From: Jim Menard [mailto:jimm@io.com]
> Sent: Friday, June 04, 2004 7:06 PM
> To: Tapestry users
> Subject: RE: Is it possible to use the string validation to validate the
> inputs maxlength?
>
> Howard M. Lewis Ship writes:
> > This has been asked for informally; it should be added to bugzilla.
> >
> > Given that you can set maxlength of an <input>, I didn't see this as a
> priority :-)
>
> If I'm not mistaken, you can't set the max length of a textarea.
>
> Jim
> --
> Jim Menard, jimm@io.com, http://www.io.com/~jimm/
> "What's a Superbowl? Does it save the city from ruin and destruction ON
> TOP
> OF containing some part of a complete breakfast?" -- J. on alt.fan.tom-
> servo
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Is it possible to use the string validation to validate the inputs maxlength?
Posted by Jim Menard <ji...@io.com>.
Howard M. Lewis Ship writes:
> This has been asked for informally; it should be added to bugzilla.
>
> Given that you can set maxlength of an <input>, I didn't see this as a priority :-)
If I'm not mistaken, you can't set the max length of a textarea.
Jim
--
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
"What's a Superbowl? Does it save the city from ruin and destruction ON TOP
OF containing some part of a complete breakfast?" -- J. on alt.fan.tom-servo
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org