1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    4
    Vote Rating
    0
    md10024 is on a distinguished road

      0  

    Default timeField.setMinValue(min);

    timeField.setMinValue(min);


    Hi,

    I'm trying to set the minValue in the TimeField component by setting the minimum to the current hour. However, even though I used code similar to that below the timeField minimum in the UI maintains the default value.

    TimeField timeField = new TimeField();
    timeField.setFieldLabel("Time");
    Date min = new Date();
    timeField.setMinValue(min);


    Does anyone have sucessful experience getting this to work and/or have any suggestion as to what I am doing incorrectly? I looked at the source code but that did not help me much.

    thanks,

    Mark

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    seems a bug exists....

    Code:
      
    protected void initList() {
        DateWrapper min = minValue != null ? new DateWrapper(minValue) : new DateWrapper();
        min = min.clearTime();
    the last line above kinda clears out any min time set in the initList method.... not sure why.

    Post this to the bug forum.

    Cheers,
    Grant

Thread Participants: 1