myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Friedrich (JIRA)" <>
Subject [jira] Commented: (TRINIDAD-1195) Length validator broken if "maximum" attributes is missing
Date Wed, 27 Aug 2008 13:11:44 GMT


Stephen Friedrich commented on TRINIDAD-1195:

No, this is not a seam issue.
See the war file in TRINIDAD-1130 for a complete test application (including deployable war,
jsp, sources and even an ant script).
That test.war is the minimal application using trinidad and mojarra that I could think of.

> Length validator broken if "maximum" attributes is missing
> ----------------------------------------------------------
>                 Key: TRINIDAD-1195
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.9-core
>            Reporter: Stephen Friedrich
>         Attachments: 0-or-more-not-fewer.png, 2-up-to-a-maximum-of-0.png
> <tr:validateLength minimum="2">
> Client side validation _always_  results in "Enter 2 or more characters, up to a maximum
of 0."
> No valid data can be entered at all.
> Server side validation works in principal, but spits out an incorrect message when the
validation (correctly) fails: "Enter 0 or more characters, not fewer."
> See for test.war that you can simply
drop into Tomcat 6.
> Much of my code omits the "maximum" attribute, because I have a maximum length set on
my input components (so that joe user just cannot enter more characters anyway) and have wrapped
the form in a seam validation (s:validateAll) that validates on the server side against constraints
set with hibernate validation annotations on the entity objects (so that a hacker can do no

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message