Then perhaps you could write a patch for t:inputText to support a "label" attribute, and t:messages to look for it?
With that, your code would be much cleaner, and easier to move to jsf1.2 later. I'm fairly sure this patch would be welcome into the tomahawk trunk. Regards, Simon ---- Jochen Zink <[EMAIL PROTECTED]> schrieb: > Hi, > > thanks for your answer. With label it is working, yes. But this is not a > usefull solution for us. We habe the dependencie, to get our applications run > at myfaces 1.1.5 AND 1.2. So we switched from <h:input> to <t:input> Fields > and we use the forceID Attribute. > > Regards > Jochen > > > > -----Ursprüngliche Nachricht----- > > Von: "MyFaces Discussion" <[email protected]> > > Gesendet: 03.12.07 12:38:46 > > An: "MyFaces Discussion" <[email protected]> > > Betreff: Odp: Difference between 1.1.5 and 1.2 in validation errorMessages > > > > 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 <[EMAIL PROTECTED]> > > > > > > 2007-12-03 09:50 > > > > > > Odpowiedz u¿ytkownikowi > > "MyFaces Discussion" <[email protected]> > > > > > > > > Do > > [email protected] > > > > 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 > > > > > > > > > _______________________________________________________________________ > Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate > kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 >

