thanks Hector!you are right..the problem is in the conversion.
When Stripes attempted to parse the input, it won't parse it because the
pattern didn't exist!
the problem was the Locale picked by Stripes.
It was the Uk one and it hasn't the pattern dd/MM/yyyy
thanks a lot!



Héctor López wrote:
> 
> It's a failed conversion, not validation. Conversion happens always. If
> you
> are mapping to a Date object, Stripes will try to generate a Date object
> from the incoming text.
> 
> Stripes uses the incoming request's locale to build a set of formats for
> parsing the date. Can you debug your app to see what locale is using? US
> or
> UK English locales won't do it. I'm supposing you have set up your
> localized
> date formats...
> 
> http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/
> validation/DateTypeConverter.html
> 
> Hope it helps.
> 
> 
> -----Mensaje original-----
> De: luther blisset [mailto:[email protected]] 
> Enviado el: viernes, 30 de enero de 2009 10:08
> Para: [email protected]
> Asunto: [Stripes-users] Validation problem
> 
> 
> Hi folk!
> I've a problem with the validation. I've a form where the user can set a
> date formatted with pattern dd/mm/yyyy.
> I haven't set any validation for my domain model but Stripes
> 'automatically'
> validate this field and gives me an error saying me that the input date is
> not in the correct form (the error is converter.date.invalidDate).
> I tried also to put the @DontValidate annotation but Stripes validation
> keeps occuring.
> But what I found very strange is that I've the same ActionBean with the
> same
> jsp in other project and it works correctly!
> I'm thinking is some configuration stuff but I've no idea how to solve it.
> I hope the problem was well-explained..
>  cheers
> -- 
> View this message in context:
> http://www.nabble.com/Validation-problem-tp21743667p21743667.html
> Sent from the stripes-users mailing list archive at Nabble.com.
> 
> 
> ----------------------------------------------------------------------------
> --
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validation-problem-tp21743667p21746781.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to