Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DateField from GWT-Ext...

    Hello, i'm using gwt-ext 2.0.5 and now i have imported smartgwt. I have in
    the project the DateField's from gwt-ext, which have been set format
    ("Y-m-d"). Now when i pass the date value in the datefield i always get the
    validation message about wrong format? Any ideas?

    example project:
    http://www.mediafire.com/?tmtfmmwmrmq
    Last edited by twiz; 9 Feb 2010, 23:59.

    #2
    help help help!

    can someone help me ?????????? ;(

    Comment


      #3
      Hi twiz,

      I have a same issue. did you find how to fix?

      Comment


        #4
        Hi twiz,

        i think i just figure out the problem. Both GwtExt and smartGwt have same method signature for Date.parseDate in thr js files. i replace the parseDate method name in ext-all.js and it works for me.

        open ext-all.js file using program editor and open find and replace. type parseDate as a find text and put something parseDatexxxx as a replace text.then press replace all.

        i dnt knw how effect this for other components.

        Sajiv! correct me if i'm wrong.

        Cheers

        Bhaddhika
        Last edited by bhaddhikan; 1 Apr 2010, 01:35.

        Comment


          #5
          Hi Bhaddhika,
          I'm glad you got to the bottom of this issue. I wasn't aware of this particular issue but some users ran into an issue with the datepicker which they resolved by loading the SmartClient JS files before the Ext JS files. Another issue was with Array.prototype.remove conflicts between the two libraries. If you run into it you can call this method from your onModuleLoad().

          Sanjiv


          Code:
          private static native void extCompatMode()/*-{
              $wnd.Array.prototype.remove = function (obj) {
                  var index = this.indexOf(obj);
                  if (index == -1) return this;
          
                  for (var i = index; i < this.length; i++) this[i] = this[i+1];
                  this.length = this.length-1;
          
                  this.dataChanged();
          
                  return this;
              }
          }-*/;

          Comment


            #6
            Hi Sanjiv,

            Thanx for the tip. Keep up the good work!.

            Bhaddhika

            Comment


              #7
              Hello!

              impossible to work the DateField:

              final DateField startDateTimePnlReservation = new DateField() ;
              startDateTimePnlReservation.setAllowBlank(false) ;
              startDateTimePnlReservation.setReadOnly(true) ;
              startDateTimePnlReservation.setValue("new Date()");



              thank you in advance

              Comment

              Working...
              X