tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Longman" <glong...@intelligentworks.com>
Subject Re: [VOTE] Adding a URL Validator to tapestry valid package
Date Tue, 16 Sep 2003 13:39:00 GMT
And a Canadian postal code validator? A#A #A# (alpha-number-alpha
number-alpha-number).

Which reminds me of story..

I was flown down the U.S. by a company to interview for a java job. The
process included several interviews as well as a short demo of thier product
by one thier coders.

They had postal code validation implemented in javascript but it was wrong
(A#A A#A is wrong). When I pointed this out, I was blown off. I guess the
coder was thinking why would he know the validation was incorrect and who
was he to tell me I'm wrong?

Turns out that only thier bigwigs/ HR people knew I was Canadian.

I didn't take the job.

Geoff
----- Original Message -----
From: "Harish Krishnaswamy" <hkrishnaswamy@comcast.net>
To: "Tapestry development" <tapestry-dev@jakarta.apache.org>
Sent: Tuesday, September 16, 2003 9:04 AM
Subject: Re: [VOTE] Adding a URL Validator to tapestry valid package


> +1
>
> Do we also may be need a zipcode validator?
>
> -Harish
>
> tsvetelin wrote:
>
> >Hi All,
> >
> >Last week Jimmi Dyson made a proposal URLValidator to the tacos project
but
> >I think its right place is in tapestry valid package. The vaidator
support
> >both client and server side validations.
> >
> >I would like to propose this validator to be added to tapestry
distribution.
> >
> >Here are the things that will be done:
> >1. New UrlValidator.java file will be added to org.apache.tapestry.valid
> >package with ASL license agreements.
> >2. A UrlValidator.js file fill be added.
> >3. org.apache.tapestry.valid.ValidationStrings.properties will be updated
> >with new error messages. The default messages are:
> >  2.1 invalid-url-format = Invalid URL.
> >  2.2 disallowed-protocol = Disallowed protocol - protocol must be {0}.
> > If you think that the strings need to be changed please make yours
> >proposals.
> >
> >4. New JUnit Test must be written in validators unit test suite
> >5. A example will be add to workbench application (the page Fields.html
will
> >be update to contains a example for new validator).
> >
> >
> >Looking forward
> >Tsvetelin.
> >PS If someone would like to receive the source code, please contact to me
or
> >Jimmi.Dyson@barclayscapital.com.
> >
> >Here is his mail to tacos mailing list.
> >-----Original Message-----
> >From: tacos-devel-admin@lists.sourceforge.net
> >[mailto:tacos-devel-admin@lists.sourceforge.net]On Behalf Of
> >Jimmi.Dyson@barclayscapital.com
> >Sent: Friday, September 12, 2003 11:35 AM
> >To: tacos-devel@lists.sourceforge.net
> >Subject: [Tacos-devel] Custom component: URLValidator
> >
> >
> >Tsvetelin,
> >
> >I have written a custom validator to validate that a URL entered is of a
> >valid format - can limit to specific protocols as well. Includes
client-side
> >validation.
> >
> >If you're interested, then let me know how I can add this to the
repository.
> >
> >Thanks,
> >Jim
> >
> >
> >
> >------------------------------------------------------------------------
> >For more information about Barclays Capital, please
> >visit our web site at http://www.barcap.com.
> >
> >
> >Internet communications are not secure and therefore the Barclays
> >Group does not accept legal responsibility for the contents of this
> >message. Although the Barclays Group operates anti-virus programmes,
> >it does not accept responsibility for any damage whatsoever that is
> >caused by viruses being passed. Any views or opinions presented are
> >solely those of the author and do not necessarily represent those of the
> >Barclays Group. Replies to this email may be monitored by the Barclays
> >Group for operational or business reasons.
> >
> >------------------------------------------------------------------------
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


Mime
View raw message