Thanks for reply. Yes, the resource bundle is defined in the faces-config.xml. Everything works fine before the validation Required="true" is added.
David --- Srikanth Madarapu <[EMAIL PROTECTED]> wrote: > Have you defined your resource bundle in the faces > config file ? Looks like that is missing. > > -----Original Message----- > From: David Qain [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 16, 2005 1:48 PM > To: MyFaces Discussion > Subject: Validation Problem > > > Hi all, > > I have a problem with validation. > > After the validation required="true" is added to the > input field, an exception is throwed: > > java.util.MissingResourceException: Can't find > bundle > for base name com.test.Messages.properties, locale > en_US > > java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804) > > java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694) > > java.util.ResourceBundle.getBundle(ResourceBundle.java:661) > > javax.faces.validator.MessageFactory.getMessage(MessageFactory.java:121) > > javax.faces.validator.MessageFactory.getMessage(MessageFactory.java:198) > > javax.faces.validator.LengthValidator.validate(LengthValidator.java:212) > > javax.faces.component.UIInput.validateValue(UIInput.java:781) > > javax.faces.component.UIInput.validate(UIInput.java:645) > > javax.faces.component.UIInput.executeValidate(UIInput.java:849) > > javax.faces.component.UIInput.processValidators(UIInput.java:412) > > javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912) > > javax.faces.component.UIForm.processValidators(UIForm.java:170) > > javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:912) > > javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342) > > com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78) > > com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) > > Everything is working fine without adding the > validation required="true". I can not make progress > any more. Any help will be appreciated. > > Thanks ! > > David > > > > __________________________________ > Do you Yahoo!? > All your favorites on one personal page - Try My > Yahoo! > http://my.yahoo.com > __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com

