You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jochen Zink <jo...@web.de> on 2007/12/03 09:50:09 UTC
Difference between 1.1.5 and 1.2 in validation errorMessages
Hello,
I have a simple <h:input> field with required validator.
<h:input id="Name" required="true" />
With myFaces 1.1.5 (running inside tomcat 6), the validation errormessages looks like this
"You must insert a value in field Name"
With myfaces 1.2 (running inside geronimo 2.0.1), the validation errormessages looks like this:
"You must insert a value in field _jsp97:content:submitForm:_jsp33:Name"
The last Errormessages is very ugly. Is it possible to force myfaces 1.2 to use only the local ID and not the complete ID for validation Messages?
Thanks a lot
Regards
Jochen
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
Odp: Difference between 1.1.5 and 1.2 in validation errorMessages
Posted by Pa...@anicasystem.com.pl.
Hi,
As far as I know, the new JSF specification (since 1.2.0) tells that all
inputs fields may have an additional parameter called "label", that
accepts both - static and el expressions. (i.e. <h:inputText
id="fieldName" label="#{msg.fieldName}" />) And due to this enhacement
validation messages should use this "label" value to create an error
message, instead of "id" value. Maybe this is the reason, please check and
let us know. If the mentioned "label thing" is true and really works that
would be great improvement considering validation matter of JSF.
--
Regards
Paweł Czerwiński
Jochen Zink <jo...@web.de>
2007-12-03 09:50
Odpowiedz użytkownikowi
"MyFaces Discussion" <us...@myfaces.apache.org>
Do
users@myfaces.apache.org
DW
Temat
Difference between 1.1.5 and 1.2 in validation errorMessages
Hello,
I have a simple <h:input> field with required validator.
<h:input id="Name" required="true" />
With myFaces 1.1.5 (running inside tomcat 6), the validation errormessages
looks like this
"You must insert a value in field Name"
With myfaces 1.2 (running inside geronimo 2.0.1), the validation
errormessages looks like this:
"You must insert a value in field _jsp97:content:submitForm:_jsp33:Name"
The last Errormessages is very ugly. Is it possible to force myfaces 1.2
to use only the local ID and not the complete ID for validation Messages?
Thanks a lot
Regards
Jochen
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066