Re: Override tapestry5 datefield default format

"Thiago H. de Paula Figueiredo" <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAE_88GYj0C9iVj99yhAkf_tcs6V-QcTEh6CuFuvwtAf+XLYjbA@mail.gmail.com>
Hello!

The default format is taken from
DateFormat.getDateInstance(DateFormat.SHORT, locale), where locale is got
through @Inject. Is your desired date format the one returned by that
method for your locale?

On Tue, Apr 10, 2018 at 5:26 AM, abangkis <[email protected]> wrote:

> Hi, is there a quick way to override tapestry datefield default format? In
> a single datefield i can do
>
> <t:datefield t:id="birthdate" value="borrower?.birthdate"
> format="dd-MM-yyyy"
>     t:mixins="formgroup"/>
>
> But it became very repetitive for many pages.
>
> Regards
>
>
>
> --
> http://www.mreunionlabs.net/ <http://www.mreunion-labs.net/>
> twitter : @mreunionlabs @abangkis
> page : https://plus.google.com/104168782385184990771
>



-- 
Thiago
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.