-
20 Apr 2012 9:06 AM #1
Blur Event not fired after Date Picking
Blur Event not fired after Date Picking
Steps to reproduce the problem: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); }
- 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
-
20 Apr 2012 12:49 PM #2
What browser(s) and operating system(s) are you noticing this problem in?
-
20 Apr 2012 1:53 PM #3
Window 7 Enterprise SP1 32 bit
Microsoft Internet Explorer 9
Firefox 11
Google Chrome 18
GWT 2.4.0.v201203300216-rel-r37
-
23 Apr 2012 9:36 AM #4
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.
-
2 May 2012 2:38 AM #5
Tested on GXT 3.0.0 - Commercial
Tested on GXT 3.0.0 - Commercial
Steps to reproduce the problem (Only on Chrome and Firefox, not on Explorer):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); }
- 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
-
23 Nov 2012 9:43 AM #6
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:
This other one seems working good.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); } }
Also tried with ClientBundle: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); } }
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
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote