Hallo all,
I'm trying to display seconds in a time item. Unfortunately, it seems that the TimeItem totally ignores the setDisplayFormat and setDateFormatter methods. I've tried every TimeDisplayFormat & DateDisplayFormat available and I've also set the input format for my time item.
Any help much appreciated!
I'm using SMARTGWT 2.5, GWT 2.4, in Development Mode with a FireFox 3.6.18 browser on SuSe Linux.
Here is my standalone test case:
I'm trying to display seconds in a time item. Unfortunately, it seems that the TimeItem totally ignores the setDisplayFormat and setDateFormatter methods. I've tried every TimeDisplayFormat & DateDisplayFormat available and I've also set the input format for my time item.
Any help much appreciated!
I'm using SMARTGWT 2.5, GWT 2.4, in Development Mode with a FireFox 3.6.18 browser on SuSe Linux.
Here is my standalone test case:
Code:
import java.util.Date; import com.google.gwt.core.client.EntryPoint; import com.smartgwt.client.types.TimeDisplayFormat; import com.smartgwt.client.widgets.form.DynamicForm; import com.smartgwt.client.widgets.form.fields.TimeItem; public class HomeMain implements EntryPoint { public void onModuleLoad() { TimeItem timeItem = new TimeItem("Time"); timeItem.setInputFormat("HH:mm:ss"); timeItem.setDisplayFormat(TimeDisplayFormat.TO24HOURTIME); timeItem.setValue(new Date()); DynamicForm testForm = new DynamicForm(); testForm.setItems(timeItem); testForm.draw(); } }
Comment