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.
>


Reply via email to