[opencms-dev] Problem with Date Picker widget on OpenCms 8.5.1
Arturo Martín Lladó
arturo.martin.llado at gmail.com
Wed Mar 6 14:49:06 CET 2013
I've already did it, John.
Thank you again for your help in this.
Regards,
--
Arturo Martín Lladó
2013/3/6 John James Valentine <jjvalent at gmail.com>:
> You have to run bindist. Once completed, you will have a BuildCms
> directory, with the zip modules built. This process should take at least 15
> minutes. Hope that helps.
>
> ~John
>
> On Mar 6, 2013 4:06 AM, "Arturo Martín Lladó"
> <arturo.martin.llado at gmail.com> wrote:
>>
>> Hi, Tobias:
>>
>> I've already downloaded and integrated de source code of OpenCms 8.5.1
>> in Eclipse. It works fine with only a few adjustments in the classpath
>> :-)
>>
>> I've been launching the build.xml script with several targets
>> (default, srcdist, war) but I can't see the ADE modules in ZIP format
>> anywhere (not even in opencms_8.5.1_src.zip/modules nor
>> opencms_8.5.1_src.zip/lib).
>>
>> Do I have to install the WAR placed inside opencms_8.5.1_src.zip and
>> then export the ADE modules in order to obtain the ZIP files or is
>> there any other (quicker) way to do this?
>>
>> Cheers,
>> --
>> Arturo Martín Lladó
>>
>>
>> 2013/3/4 Arturo Martín Lladó <arturo.martin.llado at gmail.com>:
>> > Thank you, Tobias.
>> >
>> > I'll try to do it as you say and I'll give you some feedback shortly.
>> >
>> > Regards,
>> >
>> > --
>> > Arturo Martín Lladó
>> >
>> >
>> > 2013/3/4 Tobias Herrmann <t.herrmann at alkacon.com>:
>> >> Hi Arturo,
>> >>
>> >> you are right. I missed something there. The GWT JavaScript is compiled
>> >> locale specific. To keep the size of the distribution and the compile
>> >> time
>> >> low, we chose to include EN and DE only.
>> >> To include the Spanish locale, checkout OpenCms from
>> >> www.github.com/alkacon/opencms-core, edit the file
>> >> /src-gwt/org/opencms/GwtBase.gwt.xml and change the lines 8 and 10 to
>> >> include the your desired locale. Than build OpenCms using the
>> >> /build.xml.
>> >> Import the modules org.opencms.ade.* into your OpenCms instance.
>> >> Make sure to clear your browser cache and you are done.
>> >>
>> >>
>> >> Greetings, Tobias
>> >>
>> >> --
>> >>
>> >> Alkacon Software GmbH - The OpenCms Experts
>> >>
>> >> http://www.alkacon.com
>> >> http://www.opencms.org
>> >>
>> >> Am 04.03.2013 15:38, schrieb Arturo Martín Lladó:
>> >>
>> >>> Hi, Tobias:
>> >>>
>> >>> Thank you for your quick answer. It works with the workplace language
>> >>> set to German, but it does not when the workplace language is Spanish
>> >>> (I guess it loads the code for the default language, English, I
>> >>> assume). Is there any way to give support to this language (Spanish)
>> >>> on the new widget?
>> >>>
>> >>> Regards,
>> >>>
>> >>> --
>> >>> Arturo Martín Lladó
>> >>>
>> >>>
>> >>> 2013/3/4 Tobias Herrmann <t.herrmann at alkacon.com>:
>> >>>>
>> >>>> Hi,
>> >>>>
>> >>>> the new date picker that is used within the gallery search, the new
>> >>>> availability dialogue and the new content editor is based on the
>> >>>> standard
>> >>>> GWT date picker. Configuration options of this widget are very
>> >>>> limited.
>> >>>> The
>> >>>> first day of the week setting depends on the users workplace locale.
>> >>>> For
>> >>>> example, if you choose German as your workplace locale, it will use
>> >>>> Monday
>> >>>> as first day of the week. If you choose English it's Sunday. The date
>> >>>> pattern used also depends on the workplace locale, it is set in the
>> >>>> message
>> >>>> bundle org/opencms/gwt/clientmessages.properties. The relevant
>> >>>> message
>> >>>> keys
>> >>>> are
>> >>>>
>> >>>> GUI_DATEBOX_TIME_PATTERN_0, GUI_DATEBOX_DATE_PATTERN_0,
>> >>>> GUI_DATEBOX_DATETIME_PATTERN_0
>> >>>>
>> >>>> Using the widget configuration in the XSD schema for the first day of
>> >>>> the
>> >>>> week, won't take any effect on the new widget.
>> >>>>
>> >>>> Greetings, Tobias
>> >>>>
>> >>>> --
>> >>>>
>> >>>> Alkacon Software GmbH - The OpenCms Experts
>> >>>>
>> >>>> http://www.alkacon.com
>> >>>> http://www.opencms.org
>> >>>>
>> >>>> Am 04.03.2013 14:53, schrieb Paul-Inge Flakstad:
>> >>>>
>> >>>>> Hi,
>> >>>>>
>> >>>>> I'm interested in this as well.
>> >>>>>
>> >>>>> The DateTimeWidget churns out a javascript calling
>> >>>>> Calendar.setup(...)
>> >>>>> with some configuration settings, but they seem to have no effect on
>> >>>>> the
>> >>>>> widget (mondayFirst is true, but calendar still shows Sunday as the
>> >>>>> first
>> >>>>> day of week).
>> >>>>>
>> >>>>> From the looks of it, there are a number of options which would
>> >>>>> have
>> >>>>> been
>> >>>>> nice to control.
>> >>>>>
>> >>>>> Is there any way to control these options and have them take effect
>> >>>>> on
>> >>>>> the
>> >>>>> widget? (How?)
>> >>>>>
>> >>>>> Cheers,
>> >>>>> Paul
>> >>>>>
>> >>>>> -----Original Message-----
>> >>>>> From: opencms-dev-bounces at opencms.org
>> >>>>> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arturo Martín
>> >>>>> Lladó
>> >>>>> Sent: 4. mars 2013 13:52
>> >>>>> To: The OpenCms mailing list
>> >>>>> Subject: [opencms-dev] Problem with Date Picker widget on OpenCms
>> >>>>> 8.5.1
>> >>>>>
>> >>>>> Hi,
>> >>>>>
>> >>>>> I see that, by default, the date picker widget shows Sunday as the
>> >>>>> first
>> >>>>> day of the week. I tried to configure the widget via layout settings
>> >>>>> like
>> >>>>> this:
>> >>>>>
>> >>>>> [...]
>> >>>>>
>> >>>>> <xsd:element name="dateTimeField" type="OpenCmsDateTime"
>> >>>>> minOccurs="1"
>> >>>>> maxOccurs="1" />
>> >>>>>
>> >>>>> [...]
>> >>>>>
>> >>>>> <layout element="dateTimeField" widget="DateTimeWidget"
>> >>>>> configuration="mondayFirst=true"/>
>> >>>>>
>> >>>>> [...]
>> >>>>>
>> >>>>> but I see no change.
>> >>>>>
>> >>>>> I've downloaded the OpenCms 8.5.1 code and established a breakpoint
>> >>>>> over
>> >>>>> the CmsCalendarWidget's calendarInit() method, but the method it's
>> >>>>> never
>> >>>>> called when I'm editing the content (loading the element form or
>> >>>>> setting
>> >>>>> a
>> >>>>> new datetime value). Other methods are called, like
>> >>>>> getConfiguration(),
>> >>>>> isInternal(), newInstance(), etc.
>> >>>>>
>> >>>>> Am I doing something wrong? Am I missing something here?
>> >>>>>
>> >>>>> Funny thing: when I click on the "Preferences" button of the
>> >>>>> workplace
>> >>>>> popup, the method is called. The only datetime field that I see
>> >>>>> there is
>> >>>>> the
>> >>>>> Time Warp option, and the calendar shown there is correctly
>> >>>>> localized
>> >>>>> for my
>> >>>>> settings (langua/locale = es).
>> >>>>>
>> >>>>> Maybe is a bug, but I really need a little bit of feedback here.
>> >>>>>
>> >>>>> Regards,
>> >>>>> --
>> >>>>> Arturo Martín Lladó
>> >>>>> _______________________________________________
>> >>>>> This mail is sent to you from the opencms-dev mailing list To change
>> >>>>> your
>> >>>>> list options, or to unsubscribe from the list, please visit
>> >>>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>> This mail is sent to you from the opencms-dev mailing list
>> >>>>> To change your list options, or to unsubscribe from the list, please
>> >>>>> visit
>> >>>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>> _______________________________________________
>> >>>> This mail is sent to you from the opencms-dev mailing list
>> >>>> To change your list options, or to unsubscribe from the list, please
>> >>>> visit
>> >>>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>> >>>>
>> >>>>
>> >>>>
>> >>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
More information about the opencms-dev
mailing list