[
http://opensource.atlassian.com/projects/hibernate/browse/HV-229?page=com...
]
Ted Bergeron commented on HV-229:
---------------------------------
I initially reported this feature request in HV-19, which I've now linked to this
issue. I just commented in HV-19 that we should look to the HTML 5 spec as the source for
Email and URL validation patterns. Web apps today can use input type="email"
and type="url" with no ill effects from old browsers. They ignore unrecognized
type values and default to input type="text". A benefit from the new types you
can realize today is on the iPhone. Mobile Safari renders an optimized keyboard layout
for these types. In the future, browsers will implement the validation logic for these
types, making the javascript solutions unnecessary.
Users will bind these fields to beans annotated with @Email and @URL, so its important the
validation logic is compatible.
@Url needs to be added
----------------------
Key: HV-229
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-229
Project: Hibernate Validator
Issue Type: New Feature
Components: validators
Affects Versions: 3.1.0.GA
Reporter: Ken Egervari
Fix For: 4.1.0
Original Estimate: 2 hours
Remaining Estimate: 2 hours
It would be nice to have a @Url constraint. This is a very common use-case. The regular
expression itself is tedious to write - there are tons of versions online. There could be
options to allow for mailto: and others, to make it stronger or looser as needed by the
application. However, a basic one would be a great addition to the library as lots and
lots of users will need this to be sure.
Thanks!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira