]
Brian Leathem updated RF-12430:
-------------------------------
Fix Version/s: 4-Tracking
Client side validators and @ReportAsSingleViolation
---------------------------------------------------
Key: RF-12430
URL:
https://issues.jboss.org/browse/RF-12430
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-validators
Affects Versions: 4.2.2.Final
Environment: JBoss AS 7.1.1 Final, Hibernate Validator 4.2.0, Oracle Java
1.7.0_02, Windows 7
Reporter: Dan Osterrath
Fix For: 4-Tracking
I'm using CSV with the {{@NotEmpty}} constraint and a specific message. When the form
is validated on server side the error messega is always the specified one. When the field
is validated on client side, the error message is sometimes my specified, sometimes one of
"can not be null" or "must be between 1 and 2147483647".
The problem here is, that for CSV the JS code contains 3 validators:
{code:JavaScript}
var p={
da:da,
v:[
{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"kann nicht null
sein","severity":0,"summary":"kann nicht null sein"}
},
{f:RichFaces.csv.validateSize,p:{"min":1} ,m:{"detail":"muss
zwischen 1 und 2147483647
liegen","severity":0,"summary":"muss zwischen 1 und
2147483647 liegen"} },
{f:RichFaces.csv.validateRequired,p:{} ,m:{"detail":"Bitte gib einen
Benutzernamen an!","severity":0,"summary":"Bitte gib einen
Benutzernamen an!"} }
]
};
{code}
Unfortunately the order of these 3 validators seems random. When validating the first
validator fails and its message will be displayed.
It seems that the {{@ReportAsSingleViolation}} annotation is being ignored when creating
JS code for CSV.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: