Hybrid View

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    18
    Vote Rating
    0
    It_Barney is on a distinguished road

      0  

    Default Blur Event not fired after Date Picking

    Blur Event not fired after Date Picking


    Code:
        public void onModuleLoad() {
            final DateField df = new DateField();
            TextButton tb = new TextButton("Test");
            tb.addSelectHandler(new SelectHandler() {
                public void onSelect(SelectEvent event) {
                    System.out.println(df.getValue());
                }
            });
            RootPanel.get().add(df);
            RootPanel.get().add(tb);
        }
    Steps to reproduce the problem:
    - Pick a Date by the DatePicker
    - Click directly on the TextButton

    Steps for correct behaving:
    - Pick a Date by the DatePicker
    - Use Tab key to move focus from the DateField to the TextButton
    - Click the TextButton

    Thanks in advance

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    What browser(s) and operating system(s) are you noticing this problem in?

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    18
    Vote Rating
    0
    It_Barney is on a distinguished road

      0  

    Default


    Window 7 Enterprise SP1 32 bit

    Microsoft Internet Explorer 9
    Firefox 11
    Google Chrome 18

    GWT 2.4.0.v201203300216-rel-r37

  4. #4
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    This is an issue that we've already fixed in SVN. I've tested briefly, and the problem does appear to be fixed. The fix will be rolled up in the next release.

  5. #5
    Sencha User
    Join Date
    Oct 2010
    Posts
    18
    Vote Rating
    0
    It_Barney is on a distinguished road

      0  

    Default Tested on GXT 3.0.0 - Commercial

    Tested on GXT 3.0.0 - Commercial


    Code:
        public void onModuleLoad() {
            Window win = new Window();
            win.setPixelSize(300, 300);
            AbsolutePanel pan = new AbsolutePanel();
            final DateField df = new DateField();
            TextButton tb = new TextButton("Test");
            tb.setIcon(IconHelper.getImageResource(UriUtils.fromString("imgs/Ok.png"), 24, 24));
            tb.addSelectHandler(new SelectHandler() {
                public void onSelect(SelectEvent event) {
                    System.err.println(df.getValue());
                }
            });
            pan.add(df, 10, 10);
            pan.add(tb, 10, 100);
            win.add(pan);
            RootPanel.get().add(win);
            win.show();
            win.setFocusWidget(df);
        }
    Steps to reproduce the problem (Only on Chrome and Firefox, not on Explorer):
    - Push Key Arrow Down to open the Date Picker
    - Push Enter Key to Select Current Date
    - Directly Click the Button (dont'use the Tab Key before)

    Steps for Correct Behaviour:
    - Push Key Arrow Down to open the Date Picker
    - Push Enter Key to Select Current Date
    - Use Tab Key for moving focus onto the Button
    - Click the Button

    PLEASE NOTE THAT THE PROBLEM DOES NOT APPEAR IF YOU REMOVE THE LINE WITH SETICON !!!
    Last edited by It_Barney; 2 May 2012 at 4:28 AM. Reason: Precisation

  6. #6
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    AldoBariani is on a distinguished road

      0  

    Default setIcon Error ?

    setIcon Error ?


    I noticed the same problem with other kinds of Fields.
    Step to reproduce the error:
    - Type something in the TextField
    - Click directly on TextButton (do not use Tab Key)

    I think the trouble could be about setIcon method.
    This first sample doesn't work:
    Code:
    public class Test implements EntryPoint {
        public void onModuleLoad() {
            final TextField tf = new TextField();
            TextButton tb = new TextButton();
            tb.setIcon(IconHelper.getImageResource(UriUtils.fromString("imgs/Test.png"), 24, 24)); // File in war/imgs
            tb.addSelectHandler(new SelectHandler() {
                public void onSelect(SelectEvent event) {
                    System.err.println(tf.getValue());
                }
            });
            RootPanel.get().add(tf);
            RootPanel.get().add(tb);
        }
    }
    This other one seems working good.
    Code:
    public class Test implements EntryPoint {
        public void onModuleLoad() {
            final TextField tf = new TextField();
            TextButton tb = new TextButton("Click Me");
            tb.setIcon(IconHelper.getImageResource(UriUtils.fromString("imgs/Test.png"), 24, 24)); // File in war/imgs
            tb.addSelectHandler(new SelectHandler() {
                public void onSelect(SelectEvent event) {
                    System.err.println(tf.getValue());
                }
            });
            RootPanel.get().add(tf);
            RootPanel.get().add(tb);
        }
    }
    Also tried with ClientBundle:

    tb.setIcon(Imgs.IMAGES.Ok());

    with the same wrong behaving.
    Last edited by AldoBariani; 24 Nov 2012 at 3:01 AM. Reason: new test done

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar