Todd Orr <torr0101 <at> gmail.com> writes:

> 
> Well, we have not been able to determine what's happening. Apparently, no
> one else can either. Unfortunately, this may mean that the powers that be at
> my co will mandate that we consolidate our developer skills in Struts. I
> fought hard on this one. To be taken down by a silly JBoss bug...Maybe I can
> steer us off JBoss ;). Wishful thinking.
> 
> I'll still use T4 as a hobby, but I think my company's apps would have
> benefited from some of T4's performance minded features. We're bigger / much
> more highly transactional than TSS. :(
> 
> Thanks for all your help!
> 

Try running JBoss with this system property set: 
org.jboss.util.propertyeditor.DateEditor.format
eg. -Dorg.jboss.util.propertyeditor.DateEditor.format=dd/MM/yyyy

Alternatively, create your own validator, which I think is what I will do.

The reason for the problem seems to be that HiveMind searches for 
property editors and finds org.jboss.util.propertyeditor.DateEditor.  
DateEditor allows 3 formats, the first of which cpmes from the 
system property if has been set.  

Here's the JBoss code, from http://jira.jboss.com/jira/browse/JBAS-2774, 
where there's talk about its Locale issues.

String defaultFormat = System.getProperty(
   "org.jboss.util.propertyeditor.DateEditor.format", "MMM d, yyyy"); 
formats = new DateFormat[] { new SimpleDateFormat(defaultFormat), 
// Tue Jan 04 00:00:00 PST 2005 
new SimpleDateFormat("EEE MMM d HH:mm:ss z yyyy"), 
// Wed, 4 Jul 2001 12:08:56 -0700 
new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z") }; 

Geoff





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to