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
 Assigned to: Wouter Zoons 


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

Reply via email to