Which version of MyFaces is this? I just took a look at SVN trunk and Sylvain is explicitly catching ParseException in HtmlInputDateRenderer.getConvertedValue and wrapping it as a ConverterException. In which case you should get a little message using the h:message tag.
Dennis Byrne >-----Original Message----- >From: Isto Pajarinen [mailto:[EMAIL PROTECTED] >Sent: Friday, March 17, 2006 02:34 AM >To: 'MyFaces Discussion' >Subject: Re: Problem with inputDate -component conversion. > >Thanks for answering > >I have got that that message-component after the inputDate-component. But >it doesn't work, server throws the exception to the browser. >The problem seems to be coming from renderer, that it does not catch that >certain exception??? > >T. Isto > > > > > > >"Dennis Byrne" <[EMAIL PROTECTED]> >17.03.2006 09:30 >Please respond to "MyFaces Discussion" > > To: "MyFaces Discussion" <[email protected]> > cc: > Subject: Re: Problem with inputDate -component conversion. > > >What happens when you put the following in the JSP ? > ><h:message for="vastauspvm" /> > >Dennis Byrne > >>-----Original Message----- >>From: Isto Pajarinen [mailto:[EMAIL PROTECTED] >>Sent: Friday, March 17, 2006 02:17 AM >>To: 'MyFaces Discussion' >>Subject: Problem with inputDate -component conversion. >> >>Hi >> >>When user enters invalid numbers (e.g. like text-characteres) to text >>fields of t:inputDate -component, >>I get an exception like this : >> >> 2006-03-16 16:08:15,563 ERROR >>[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[Faces > >>Servlet]] Servlet.service() for servlet Faces Servlet threw exception >> java.lang.NumberFormatException: For input string: "g" >> at >>java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) >> at java.lang.Integer.parseInt(Integer.java:447) >> at java.lang.Integer.parseInt(Integer.java:497) >> at >>org.apache.myfaces.custom.date.HtmlInputDate$UserData.parse(HtmlInputDate.java:208) >> at >>org.apache.myfaces.custom.date.HtmlDateRenderer.getConvertedValue(HtmlDateRenderer.java:277) >> at >>javax.faces.component.UIInput.getConvertedValue(UIInput.java:289) >> at >>javax.faces.component.UIInput.validate(UIInput.java:265) >> at >>javax.faces.component.UIInput.processValidators(UIInput.java:144) >> at >>javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417) >> at >>javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417) >> at >>javax.faces.component.UIForm.processValidators(UIForm.java:68) >> at >>javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417) >> .... >> >>And the component is setted like this : >> >> <t:inputDate id="vastauspvm" >> value="#{formAction.formAnswer.vastauspvm}" >> popupCalendar="true" >> type="both" >> /> >> >>Could somebody say is this now because component setting or what? I >>assumed component should add error-message >>in this kind of cases? >> >>t. Isto. >> > > > >

