Sweet! I assume, based on your comment, that MyFaces currently supports JSF 1.1. I checked the MyFaces manifest file but didnt see any reference to supported version. Is there an ETA on 1.2 support?
Mike Kienenberger wrote: > > You're allowed to create your own custom message bundle file that will > override the default one. > > If you really need it, you can use the instructions on the 2nd half of > the following link to create a custom required validator. However, > there's a performance hit for doing it this way. > > http://wiki.apache.org/myfaces/OptionalValidationFramework > > In JSF 1.2, you can use the "requiredMessage" attribute to set this > directly. > > > > On 10/25/06, monkeyden <[EMAIL PROTECTED]> wrote: >> >> Ok, so there is some flexibility. My spec, however, says that the >> message >> for a required field should appear as such: >> {0} is a required field. >> >> which, for the "First Name" field, would result in: >> First Name is a required field >> >> To my knowledge, there is no facility to pass in a user friendly label >> for >> the field...just the id of the component. Is this accurate? >> >> >> >> Gilles DEMARTY wrote: >> > >> >> I have indeed looked at that. Is there a way to customize the >> resulting >> >> error message? >> > yes, you can load a message bundle and redefine the default error >> messages >> > >> > >> http://jsffaq.com/Wiki.jsp?ptitle=How+can+I+override+the+default+validation+messages%3F&page=HowCanIOverrideTheDefaultValidationMessages >> > >> > >> > 2006/10/25, monkeyden <[EMAIL PROTECTED]>: >> >> >> >> >> >> Dennis Byrne wrote: >> >> > >> >> > Hello monkeyden, >> >> > >> >> > You may want to look at the 'required' attribute for the JSF tag you >> >> are >> >> > using. >> >> > >> >> > Dennis Byrne >> >> > >> >> >>-----Original Message----- >> >> >>From: monkeyden [mailto:[EMAIL PROTECTED] >> >> >>Sent: Wednesday, October 25, 2006 10:23 AM >> >> >>To: [email protected] >> >> >>Subject: So let me get this straight.... >> >> >> >> >> >> >> >> >>Based on what I've read on this forum, which happens to be a very >> >> valuable >> >> >>resource of mine, I find this to be true (corerect me if I'm wrong >> and >> >> >>please excuse my fledgling knowledge of JSF): >> >> >> >> >> >>You cannot use a validator to do null value validation on a field, >> >> because >> >> >>JSF doesn't call the validator if there is no value to validate. As >> a >> >> >>result, you cannot print custom error messages on the client, unless >> of >> >> >>course you validate in the backing bean. >> >> >>-- >> >> >>View this message in context: >> >> >> http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6993052 >> >> >>Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> > >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6993410 >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6994195 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/So-let-me-get-this-straight....-tf2507926.html#a6994948 Sent from the MyFaces - Users mailing list archive at Nabble.com.

