Why component from Xpages Extension lib doesn't support converter -


my xpage using xe:djdatetextbox (bellow):

<xe:djdatetextbox id="djdatecreatedfrom"                     value="#{compositedata.archivedocument.entrydatefrom.time}"                     title="#{javascript:languagegetlabelname('_arch_from_date')}"                     style="width:49%;" showreadonlyasdisabled="true"                     readonly="#{javascript:!compositedata.editmode}">                     <xe:this.converter>                         <xp:convertdatetime>                             <xp:this.pattern><![cdata[${javascript:"dd.mm.yyyy"}]]></xp:this.pattern>                         </xp:convertdatetime>                     </xe:this.converter> 

public class archivedocument extends param{  /**  *   */ private calendar entrydatefrom;  public archivedocument() {     super();     entrydatefrom = calendar.getinstance();} public calendar getentrydatefrom() {     return entrydate; }     public void setentrydatefrom(calendar entrydate) {     this.entrydate = entrydate; } 

..... }

if set standard date time picker instead of xe:djdatetextbox works fine: (bellow)

<xp:inputtext id="txtdatecreatedfrom"                     style="width:75.0%"                     value="#{compositedata.archivedocument.entrydatefrom.time}"                     readonly="#{javascript:!compositedata.visible}"                     dojotype="dijit.form.datetextbox">                     <xp:this.converter>                         <xp:convertdatetime>                             <xp:this.pattern><![cdata[${javascript:"dd.mm.yyyy"}]]></xp:this.pattern>                         </xp:convertdatetime>                     </xp:this.converter>                     <xp:datetimehelper></xp:datetimehelper>                 </xp:inputtext> 

settings ie, domino server, pattern in xpage:


my ie settings languages: english (united states) [en-us]
pattern:"dd.mm.yyyy"
domino server 9.0.1 fp2
web user preferences: default regional locale: server locale


page doesn't show date time 27.11.2014 should.
it show date time 11/27/2014.

if i'm using standard date time picker works fine.

thanks in advance!

is page displaying pre-saved value or defaulting current date? if former, may misunderstanding converter does.

the job of converter convert server-side date/time value text string , vice versa. converter code runs server-side, if there's not pre-existing value, pass blank string. converter not place modify format browser offers, dojo defining value.

the dojo locale settings being used date time format being used default value or entered on browser. i'm not sure if explain dates , localization http://xomino.com/2014/01/14/dealing-with-dates-and-localization-in-xpages/


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -