Announcement

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

    TimeItem behaving badly in v. 4.0d

    Just tried the nightly build of SmartGWT pro 4.0d of yesterday (10/4-2013).

    It seems TimeItem is not functioning correctly any more!

    Every assigned value only displays the hour part like this H: (1:)...no minute or second part exist!!

    Since we've gone pro - I haven't tested the LGPL version....but just wanted to let you know ;)

    /CH

    #2
    Not reproducible in simple tests - please show a minimal testcase we can run to see the problem.

    Comment


      #3
      Here's a small test with the problem:

      Code:
       
      public class SmartGWTProTestCanvas implements EntryPoint {
      
      	public void onModuleLoad() {
      		VLayout layout = new VLayout();
      		layout.setMembersMargin(10);
      
      		final HLayout parentCanvas = new HLayout();
      		parentCanvas.setTop(40);
      		parentCanvas.setWidth(600);
      		parentCanvas.setHeight(500);
      		parentCanvas.setShowEdges(true);
      	
      		DateItem startDateItem = new DateItem("startdate", "date");
      		startDateItem.setValue(new Date());
      		startDateItem.setWrapTitle(false);
      		startDateItem.setUseTextField(true);
      
      		TimeItem startTimeItem = new TimeItem("starttime", "time");
      		startTimeItem.setValue("00:00");
      		
      		DynamicForm dateForm = new DynamicForm();
      		dateForm.setWidth100();
      		dateForm.setNumCols(4);
      		dateForm.setItems(startDateItem, startTimeItem);
      		
      		parentCanvas.addMember(dateForm);
      		layout.addMember(parentCanvas);
      		layout.draw();
      		RootPanel.get("testContainer").add(layout);
      	}
      }
      See the attached pic for the result!!
      3.1 pro doesn't have this problem.
      Same behavior applies to Chrome.

      /CH
      Attached Files

      Comment


        #4
        Unfortunately, you got one of several builds with a regression in this area - it was fixed on April 10 and made the builds by April 11 - please retest with the latest build.

        Comment


          #5
          Yeeep, seems fine in the latest build ;)

          thx

          Comment

          Working...
          X