You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leon Derks <le...@cumquat.nl> on 2008/05/09 16:56:33 UTC

Simple date format question

How can I format my date in a date field
I want to use the format (dd/MM/yyyy). Does tapestry have some build in 
functionality for this?

And how can I format a date printing it to the screen like this:
<td>${person.birthday}</td>

Leon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Simple date format question

Posted by Sven Homburg <ho...@googlemail.com>.
the t5components-SNAPSHOT has a DateTimeField component
that reflects the localization issue


2008/5/9 Marcelo Lotif <ml...@gmail.com>:

> Leon,
> As was said here before:
> "The DateField component was changed due to a license incompatibility
> issue and the new one currently isn't as flexible as the old one."
>
> T5.0.9 version's DateField (the "old one") has the t:format parameter,
> but many bugs aren't fixed in this version and some of the new
> features are not there yet...It's up to you to downgrade, if you
> decide to do so, you can change the version on your pom.xml.
>
> 2008/5/9 Sven Homburg <ho...@googlemail.com>:
> > a possible solution:
> >
> >
> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/DateFormat.html
> >
> > 2008/5/9 Leon Derks <le...@cumquat.nl>:
> >
> >> Hi Marcus,
> >>
> >> I couldn't find the jira issue. Do you have it? I will vote!
> >>
> >> I found this example on :
> >> http://www.packtpub.com/article/tapestry-5-advanced-component
> >>
> >> <input type="text" t:type="datefield" t:value="dateOfBirth"
> >> t:format="%d/%m/%y"/>
> >>
> >> But this seems to be outdated, because it doesn't work.
> >>
> >> Leon
> >>
> >>
> >> Marcus wrote:
> >>
> >>> Leon,
> >>>
> >>> No, you can't, :) it's only for output.
> >>> Don't forget to vote on JIRA!
> >>>
> >>> Marcus
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > with regards
> > Sven Homburg
> > http://tapestry5-components.googlecode.com
> >
>
>
>
> --
> Atenciosamente,
> Marcelo Lotif
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Re: Simple date format question

Posted by Marcelo Lotif <ml...@gmail.com>.
Leon,
As was said here before:
"The DateField component was changed due to a license incompatibility
issue and the new one currently isn't as flexible as the old one."

T5.0.9 version's DateField (the "old one") has the t:format parameter,
but many bugs aren't fixed in this version and some of the new
features are not there yet...It's up to you to downgrade, if you
decide to do so, you can change the version on your pom.xml.

2008/5/9 Sven Homburg <ho...@googlemail.com>:
> a possible solution:
>
> http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/DateFormat.html
>
> 2008/5/9 Leon Derks <le...@cumquat.nl>:
>
>> Hi Marcus,
>>
>> I couldn't find the jira issue. Do you have it? I will vote!
>>
>> I found this example on :
>> http://www.packtpub.com/article/tapestry-5-advanced-component
>>
>> <input type="text" t:type="datefield" t:value="dateOfBirth"
>> t:format="%d/%m/%y"/>
>>
>> But this seems to be outdated, because it doesn't work.
>>
>> Leon
>>
>>
>> Marcus wrote:
>>
>>> Leon,
>>>
>>> No, you can't, :) it's only for output.
>>> Don't forget to vote on JIRA!
>>>
>>> Marcus
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> with regards
> Sven Homburg
> http://tapestry5-components.googlecode.com
>



-- 
Atenciosamente,
Marcelo Lotif

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Simple date format question

Posted by Sven Homburg <ho...@googlemail.com>.
a possible solution:

http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/DateFormat.html

2008/5/9 Leon Derks <le...@cumquat.nl>:

> Hi Marcus,
>
> I couldn't find the jira issue. Do you have it? I will vote!
>
> I found this example on :
> http://www.packtpub.com/article/tapestry-5-advanced-component
>
> <input type="text" t:type="datefield" t:value="dateOfBirth"
> t:format="%d/%m/%y"/>
>
> But this seems to be outdated, because it doesn't work.
>
> Leon
>
>
> Marcus wrote:
>
>> Leon,
>>
>> No, you can't, :) it's only for output.
>> Don't forget to vote on JIRA!
>>
>> Marcus
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com

Re: Simple date format question

Posted by Geoff Callender <ge...@gmail.com>.
Yes, please vote for it!

"Date formating global support"
https://issues.apache.org/jira/browse/TAPESTRY-2198

Cheers,

Geoff

On 10/05/2008, at 1:45 AM, Leon Derks wrote:

> Hi Marcus,
>
> I couldn't find the jira issue. Do you have it? I will vote!
>
> I found this example on :http://www.packtpub.com/article/tapestry-5-advanced-component
>
> <input type="text" t:type="datefield" t:value="dateOfBirth"  
> t:format="%d/%m/%y"/>
>
> But this seems to be outdated, because it doesn't work.
>
> Leon
>
> Marcus wrote:
>> Leon,
>>
>> No, you can't, :) it's only for output.
>> Don't forget to vote on JIRA!
>>
>> Marcus
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>


Re: Simple date format question

Posted by Leon Derks <le...@cumquat.nl>.
Hi Marcus,

I couldn't find the jira issue. Do you have it? I will vote!

I found this example on 
:http://www.packtpub.com/article/tapestry-5-advanced-component

<input type="text" t:type="datefield" t:value="dateOfBirth" 
t:format="%d/%m/%y"/>

But this seems to be outdated, because it doesn't work.

Leon

Marcus wrote:
> Leon,
>
> No, you can't, :) it's only for output.
> Don't forget to vote on JIRA!
>
> Marcus
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Simple date format question

Posted by Marcus <mv...@gmail.com>.
Leon,

No, you can't, :) it's only for output.
Don't forget to vote on JIRA!

Marcus

Re: Simple date format question

Posted by Leon Derks <le...@cumquat.nl>.
Okay,

I use Tapestry 5. But can I use the OutputLocale component also on a 
DateField?

Leon

Marcus wrote:
> Hi Leon,
>
> There is a JIRA about format parameter for DateField, vote!
>
> To format a date output you can use OutputLocale component (
> http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber)
>
> Marcus
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Simple date format question

Posted by Marcus <mv...@gmail.com>.
Hi Leon,

There is a JIRA about format parameter for DateField, vote!

To format a date output you can use OutputLocale component (
http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber)

Marcus

Re: Simple date format question

Posted by DR_GLoPeL_BouCa <ta...@gmail.com>.
I use Tapestry 4.1.5, you can change the dateFormat like this,
translator="translator:date,pattern=dd/MM/yyyy" in  @TextField or
@DatePicker, and format="ognl:dateFormat" in a @Insert ( Format dateFormat =
new SimpleDateFormat("dd/MM/yyyy");)

Marcos.
-- 
View this message in context: http://www.nabble.com/Simple-date-format-question-tp17149881p17150201.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org