You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "wulei.bj.cn@gmail.com" <wu...@gmail.com> on 2014/10/21 05:46:21 UTC
How to add an input of type calendar in freemarker ?
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智能手机
Re: How to add an input of type calendar in freemarker ?
Posted by Thiep LE VAN <th...@olbius.vn>.
You are welcome :)
On Tue, Oct 21, 2014 at 2:01 PM, Lei Wu <wu...@gmail.com> 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 <th...@olbius.vn>
> 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, wulei.bj.cn@gmail.com <
> > wulei.bj.cn@gmail.com> 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:* thiep.levan@olbius.vnvn | *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:* thiep.levan@olbius.vnvn | *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
Re: How to add an input of type calendar in freemarker ?
Posted by Lei Wu <wu...@gmail.com>.
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 <th...@olbius.vn>
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, wulei.bj.cn@gmail.com <
> wulei.bj.cn@gmail.com> 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:* thiep.levan@olbius.vnvn | *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
>
Re: How to add an input of type calendar in freemarker ?
Posted by Thiep LE VAN <th...@olbius.vn>.
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, wulei.bj.cn@gmail.com <
wulei.bj.cn@gmail.com> 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:* thiep.levan@olbius.vnvn | *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