How to add an input of type calendar in freemarker ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add an input of type calendar in freemarker ?

Lei Wu
Dear all,

I am trying to add a calendar input in my main.ftl, I searched all of the freemarker files in the OOTB package(12.04.02) without finding an example, could anyone give me a hand here? Thanks so much !

--
发自我的ONEPLUS智能手机
Reply | Threaded
Open this post in threaded view
|

Re: How to add an input of type calendar in freemarker ?

Thiep LE VAN
You can use renderDateTimeField macro as follows:

<@htmlTemplate.renderDateTimeField name="thruDate" value="" event=""
action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS"
size="25" maxlength="30" id="thruDate" dateType="date" shortDateInput=false
timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle=""
timeDropdown="" timeHourName="" classString="" hour1="" hour2=""
timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected=""
pmSelected="" compositeType="" formName=""/>



On Tue, Oct 21, 2014 at 10:46 AM, [hidden email] <
[hidden email]> wrote:

> Dear all,
>
> I am trying to add a calendar input in my main.ftl, I searched all of the
> freemarker files in the OOTB package(12.04.02) without finding an example,
> could anyone give me a hand here? Thanks so much !
>
> --
> 发自我的ONEPLUS智能手机




--
*THIEP LE (Mr)*
*Developer*
*Email:* [hidden email] | *Mobile:* (+84) 1656 241 339

*OLBIUS., JSC*
*Tel:* (+84) 9 88 99 3333
*Address: *Room 2508, M3-M4 building, No 91, Nguyen Chi Thanh St., Ha Noi
City, VietNam
*Website:* http://olbius.com
Reply | Threaded
Open this post in threaded view
|

Re: How to add an input of type calendar in freemarker ?

Lei Wu
Thanks so much Thiep ! It worked for me and it's exactly what I wanted :)

On Tue, Oct 21, 2014 at 12:37 PM, Thiep LE VAN <[hidden email]>
wrote:

> You can use renderDateTimeField macro as follows:
>
> <@htmlTemplate.renderDateTimeField name="thruDate" value="" event=""
> action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS"
> size="25" maxlength="30" id="thruDate" dateType="date" shortDateInput=false
> timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle=""
> timeDropdown="" timeHourName="" classString="" hour1="" hour2=""
> timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected=""
> pmSelected="" compositeType="" formName=""/>
>
>
>
> On Tue, Oct 21, 2014 at 10:46 AM, [hidden email] <
> [hidden email]> wrote:
>
> > Dear all,
> >
> > I am trying to add a calendar input in my main.ftl, I searched all of the
> > freemarker files in the OOTB package(12.04.02) without finding an
> example,
> > could anyone give me a hand here? Thanks so much !
> >
> > --
> > 发自我的ONEPLUS智能手机
>
>
>
>
> --
> *THIEP LE (Mr)*
> *Developer*
> *Email:* [hidden email] | *Mobile:* (+84) 1656 241 339
>
> *OLBIUS., JSC*
> *Tel:* (+84) 9 88 99 3333
> *Address: *Room 2508, M3-M4 building, No 91, Nguyen Chi Thanh St., Ha Noi
> City, VietNam
> *Website:* http://olbius.com
>
Reply | Threaded
Open this post in threaded view
|

Re: How to add an input of type calendar in freemarker ?

Thiep LE VAN
You are welcome :)

On Tue, Oct 21, 2014 at 2:01 PM, Lei Wu <[hidden email]> wrote:

> Thanks so much Thiep ! It worked for me and it's exactly what I wanted :)
>
> On Tue, Oct 21, 2014 at 12:37 PM, Thiep LE VAN <[hidden email]>
> wrote:
>
> > You can use renderDateTimeField macro as follows:
> >
> > <@htmlTemplate.renderDateTimeField name="thruDate" value="" event=""
> > action="" className="" alert="" title="Format: yyyy-MM-dd HH:mm:ss.SSS"
> > size="25" maxlength="30" id="thruDate" dateType="date"
> shortDateInput=false
> > timeDropdownParamName="" defaultDateTimeString="" localizedIconTitle=""
> > timeDropdown="" timeHourName="" classString="" hour1="" hour2=""
> > timeMinutesName="" minutes="" isTwelveHour="" ampmName="" amSelected=""
> > pmSelected="" compositeType="" formName=""/>
> >
> >
> >
> > On Tue, Oct 21, 2014 at 10:46 AM, [hidden email] <
> > [hidden email]> wrote:
> >
> > > Dear all,
> > >
> > > I am trying to add a calendar input in my main.ftl, I searched all of
> the
> > > freemarker files in the OOTB package(12.04.02) without finding an
> > example,
> > > could anyone give me a hand here? Thanks so much !
> > >
> > > --
> > > 发自我的ONEPLUS智能手机
> >
> >
> >
> >
> > --
> > *THIEP LE (Mr)*
> > *Developer*
> > *Email:* [hidden email] | *Mobile:* (+84) 1656 241 339
> >
> > *OLBIUS., JSC*
> > *Tel:* (+84) 9 88 99 3333
> > *Address: *Room 2508, M3-M4 building, No 91, Nguyen Chi Thanh St., Ha Noi
> > City, VietNam
> > *Website:* http://olbius.com
> >
>



--
*THIEP LE (Mr)*
*Developer*
*Email:* [hidden email] | *Mobile:* (+84) 1656 241 339

*OLBIUS., JSC*
*Tel:* (+84) 9 88 99 3333
*Address: *Room 2508, M3-M4 building, No 91, Nguyen Chi Thanh St., Ha Noi
City, VietNam
*Website:* http://olbius.com