1. #1
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Question TimeField how to setRawValue()

    TimeField how to setRawValue()


    I searched the forum from beginnig to end twice. No useful links.

    I want to show specific time (9:51, 18:32) value in timefield but I couldn't be sucessfull.

    I tried below:
    Code:
    	final DateWrapper wrapper = new DateWrapper( new Date() );
            time.setValue( new Time( wrapper.getHours(), wrapper.getMinutes() ) );
    another I tried:
    Code:
    	final DateWrapper wrapper = new DateWrapper( new Date()  );
            time.setRawValue(  wrapper.getHours() + ":" + wrapper.getMinutes()  );
    these are didn't work. Any solution?

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    1 code snippet: Time object has no text set, thats why nothing gets displayed.
    2 code snippet works fine for me against latest SVN.

  3. #3
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Default


    Are you serious 2 code snippet working.
    I'm using GXT 2.2.1 and GWT 2.0.4 didn't work.

    I implemented it small testcase please try this:

    Code:
    public class Testing implements EntryPoint
    {
    	private static ModuleTree modTree;
    	private static CentralTabPanel tabPanel;
    	
    	public void onModuleLoad()
    	{
                   TimeField time = new TimeField();
    		
    		final DateWrapper wrapper = new DateWrapper( new Date() );
    		time.setRawValue( wrapper.getHours() + ":" + wrapper.getMinutes() );
    		
    		time.setWidth( "70" );
    		time.setFieldLabel( "time" );
    		time.setAllowBlank( false );
    		time.setTriggerAction( TriggerAction.ALL );
    		
    		RootPanel.get().add( time );
    		
    		GXT.hideLoadingPanel( "loading" );
    	}

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    setRawValue only works post rendering.

  5. #5
    Sencha User
    Join Date
    Jul 2009
    Location
    Trabzon
    Posts
    99
    Vote Rating
    0
    harun is on a distinguished road

      0  

    Default


    Quote Originally Posted by sven View Post
    setRawValue only works post rendering.
    Sven you are the best, thank you very very much...

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    So this is also working for you now?

Similar Threads

  1. ComboBox - setRawValue
    By defcon1 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 30 Mar 2010, 12:40 AM
  2. [FIXED] TimeField.setRawValue() issue
    By liukaipeng in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 9 Sep 2008, 9:33 AM
  3. [2.??] ComboBox setRawValue
    By XASD in forum Ext 2.x: Bugs
    Replies: 10
    Last Post: 30 Jul 2008, 12:45 AM
  4. how to setRawValue of combo in tabpanel
    By shuang in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Jun 2008, 8:26 PM
  5. combobox setRawValue() issue
    By manugoel2003 in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 21 Mar 2008, 8:54 AM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi