[ http://jira.andromda.org/browse/BPM-265?page=history ] Wouter Zoons closed BPM-265: ----------------------------
Resolution: Fixed Fix Version: 3.1 I added a new bpm4struts namespace property called "strictDateTimeFormat", it can be set to either "true" or "false"; setting it to true will ensure all dates are to be strictly matched against their respective formats (note that you can still override this behaviour locally by using the tagged value) > generate specific default Date Format with Lenient false > -------------------------------------------------------- > > Key: BPM-265 > URL: http://jira.andromda.org/browse/BPM-265 > Project: Bpm4Struts Cartridge > Type: Improvement > Versions: 3.1-RC1 > Reporter: Clarenne Chantal > Assignee: Wouter Zoons > Fix For: 3.1 > > I would like to generate all the date formatters like: > "private final static java.text.DateFormat startDateDateFormatter = new > java.text.SimpleDateFormat("dd/MM/yy");" > and > "startDateDateFormatter.setLenient(false);" > I have used property : > "<property name="defaultDateFormat">dd/MM/yy</property> > With this I get the good format but Lenient is set to true. > I have also tried with the tagged Value @andromda.struts.view.field.format > using the "strict" keyword for a specific date field. In this case the > generation is correct BUT I don't want to do this for each date field. > Which solution do you propose? > Your answer in the forum: > necessity of implementing " namespace property to set all dateformats to > 'strict'" (Release 3.1) ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php