Hi list, I figured it out: stripes.dateTypeConverter.formatStrings=HH mm dd MM yyyy stripes.dateTypeConverter.preProcessPattern=(?<!GMT)[\\s,:/\\.-]+
The preProcessPattern is the same as the default except for the colon. It took me some time to figure that out. When you put the colon near the dash at the end the pattern won't work. Regexhell. Cheers Jan > Hello list, > > it seems I don't understand the standard DateTypeConverter correctly. > What do I have to specify in my resource bundle to get my user inputs > correctly parsed? > > The input should allow the following formats: "HH:mm - dd.MM.yyyy", > "HH:mm dd.MM.yyyy", "HH:mm ddMMyyyy" > > 1.) > @Validate(required = true, converter = DateTypeConverter.class) > private Date myDate; > > 2.) > <stripes:text name="myDate" formatPattern="HH:mm - dd.MM.yyyy" /> > > 3.) > stripes.dateTypeConverter.formatStrings= ? > stripes.dateTypeConverter.preProcessPattern= ? > > > Thanks > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
