Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-10 Thread Dimitris Zenios
as using normal dates. On Wed, May 9, 2012 at 1:43 AM, Chris Mylonas ch...@opencsta.org wrote: Pros: ASL On 09/05/2012, at 6:34 AM, Luca Menegus wrote: Thanks! By the way, DateFormats not being thread-safe is a huge WTF. IMHO the whole Date, Calendar and DateFormat stuff are not really usable

private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Luca Menegus
Hi, in class org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks the DateFormat is declared as : private final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale); Which is not correct because DateFormat is not thread safe and pages aren't pooled any more

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Howard Lewis Ship
Please add an issue in JIRA and this will be fixed. Good catch. On Tue, May 8, 2012 at 10:03 AM, Luca Menegus luca.mene...@dbmsrl.com wrote: Hi, in class org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks the DateFormat is declared as : private final DateFormat dateFormat

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Luca Menegus
https://issues.apache.org/jira/browse/TAP5-1926 Thanks, luca - Original Message - From: Howard Lewis Ship hls...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Tuesday, 8 May, 2012 8:36:12 PM Subject: Re: private final DateFormat in PropertyDisplayBlocks (BUG

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 15:49:07 -0300, Luca Menegus luca.mene...@dbmsrl.com wrote: https://issues.apache.org/jira/browse/TAP5-1926 Thanks! By the way, DateFormats not being thread-safe is a huge WTF. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Luca Menegus
Thanks! By the way, DateFormats not being thread-safe is a huge WTF. IMHO the whole Date, Calendar and DateFormat stuff are not really usable (or at least are REALLY error prone). What do you think about implementing first class support for joda-time [1] in tapestry? Cons: * That would

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Thiago H. de Paula Figueiredo
On Tue, 08 May 2012 17:34:29 -0300, Luca Menegus luca.mene...@dbmsrl.com wrote: Thanks! By the way, DateFormats not being thread-safe is a huge WTF. IMHO the whole Date, Calendar and DateFormat stuff are not really usable (or at least are REALLY error prone). Date and Calendar

Re: private final DateFormat in PropertyDisplayBlocks (BUG)

2012-05-08 Thread Chris Mylonas
Pros: ASL On 09/05/2012, at 6:34 AM, Luca Menegus wrote: Thanks! By the way, DateFormats not being thread-safe is a huge WTF. IMHO the whole Date, Calendar and DateFormat stuff are not really usable (or at least are REALLY error prone). What do you think about implementing first class

Dateformat

2011-03-25 Thread Jim O'Callaghan
Can anyone advise on whether there is a global format setting that can be applied for date fields throughout a tap application - I don't want to have to specify the format for every field - thanks. Regards, Jim.

Re: Dateformat

2011-03-25 Thread dragan.sahpas...@gmail.com
IDK of there is an easier way, but you can make new DisplayBlockContribution only for Date.class and format the date as you like. Cheers, Dragan Sahpaski On Fri, Mar 25, 2011 at 1:39 PM, Jim O'Callaghan j...@peritussolutions.comwrote: Can anyone advise on whether there is a global format

RE: Dateformat

2011-03-25 Thread Jim O'Callaghan
Please ignore - I changed this to use the tapx datepicker instead and found the problem wasn’t the locale setup – I have a locale switcher in place and when the locale is changes to ex. ‘es’ the date format is correct for both the standard date field / date picker return value. The locales I

T5.0.11 t:output doesn't work for DateFormat

2008-06-10 Thread Konstantin
this message in context: http://www.nabble.com/T5.0.11-t%3Aoutput-doesn%27t-work-for-DateFormat-tp17760525p17760525.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: T5.0.11 t:output doesn't work for DateFormat

2008-06-10 Thread Filip S. Adamsen
Try t:output format=testFormat value=currentDate/ instead - that is, just the property name instead of an expansion. The expansion will expand to a String, which won't format correctly. -Filip On 2008-06-10 19:21, Konstantin wrote: in markup: t:output format=testFormat value=${currentDate}/

Re: T5.0.11 t:output doesn't work for DateFormat

2008-06-10 Thread Konstantin
: http://www.nabble.com/T5.0.11-t%3Aoutput-doesn%27t-work-for-DateFormat-tp17760525p17764395.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [T5] default DateFormat for DateFields

2007-12-26 Thread Marcelo Lotif
I found this question interesting too... anyone has any solution to this? 2007/12/22, Moritz Gmelin [EMAIL PROTECTED]: Hi, Is there a way to set the default DateFormat for all DateField elements of a BeanForm? I know that I could specify the format in a t:Parameter / block for the form

Re: [T5] default DateFormat for DateFields

2007-12-26 Thread Sven Homburg
have a look at http://wiki.apache.org/tapestry/Tapestry5LocalizedDateField Marcelo lotif wrote: I found this question interesting too... anyone has any solution to this? 2007/12/22, Moritz Gmelin [EMAIL PROTECTED]: Hi, Is there a way to set the default DateFormat for all

[T5] default DateFormat for DateFields

2007-12-22 Thread Moritz Gmelin
Hi, Is there a way to set the default DateFormat for all DateField elements of a BeanForm? I know that I could specify the format in a t:Parameter / block for the form. But then I'd have to do this on every occurrence of a Date object. Is there maybe some service that I could intercept

DateFormat in contrib:table

2007-02-22 Thread Michael Siebert
Hi All, I want to format the date values in a contrib:table colum. The actual output is -mm-dd and I want to change it to dd.mm. How ca I format the Date within the page-File? Or are there better and easier ways? Thank you very much in advance for your help. Regards Mike

Re: DateFormat in contrib:table

2007-02-22 Thread Daniel Jue
I have code that can do this, but it is pretty involved. You may want to look at the Tapestry Tables demo war file. It has a tutorial page that uses a custom column, with it's own column comparator. In my code I have a backend 2d array of the data in it's raw format. (usually string and

Re: DateFormat in contrib:table

2007-02-22 Thread Daniel Jue
Here is the link. http://weblogs.java.net/blog/johnreynolds/archive/2004/10/learn_by_teachi_1.html It worked great for me. On 2/22/07, Michael Siebert [EMAIL PROTECTED] wrote: Hi All, I want to format the date values in a contrib:table colum. The actual output is -mm-dd and I want to