28 May 2010 10:12 AM #1
Selecting initial time on a TimeField
I'd like to set the initial time in a TimeField... that is all... but I can't figure out how to do it.
I have tried setValue( Time ) but the time doesn't show up in the field.
I have tried setDateValue( new Time().getDate() ) and then it does show up, but only if the Date is less than about 20:00 hours... e.g. 23:00 hours doesn't work... why? I have no idea... maybe it's a time zone conversion issue?
I have tried select( 0 ) to choose the first item... nullpointer exception.
I have tried using findModel( min, hours ) and selecting the result... same.
I have read the javadoc and the example makes little sense to me.
I have looked at the GXT showcase and it doesn't do this so it's of no help.
Could someone please please tell me how to set the initially selected time on a TimeField?
By zdarsky in forum Ext GWT: Bugs (2.x)Replies: 4Last Post: 16 Mar 2010, 5:29 AM
By dgildeh in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 24 Feb 2010, 11:27 AM
By paulwang in forum Ext GWT: Bugs (1.x)Replies: 0Last Post: 2 Feb 2009, 11:23 AM
By firejack in forum Ext GWT: Help & Discussion (1.x)Replies: 2Last Post: 4 Nov 2008, 1:19 PM