Nick Glencross wrote:

> Another odd problem is that the focus tabbing is broken after
> disposing a form which uses the DateChooserButton, and then opening
> another. You get an error:
> 
> 415038 ERROR: qx.event.handler.EventHandler[59]: Failed to dispatch
> key event: TypeError - children has no properties at
> qx.event.handler.FocusHandler:294
> 
> At the moment I'm seeing these symptoms in a large application, so
> haven't got any small test cases, but I'll work on some to demonstrate
> some of the later cases.
> 

I now have a small code fragment for this too. First a small widget with 
just a textfield and DateChooserButton.

  qx.Class.define("test.widget",
  {
      extend : qx.ui.layout.HorizontalBoxLayout,

      construct : function(tabindex_ref)
      {
          this.base(arguments);
          this.setDimension ('auto', 'auto');

          var date_field = new qx.ui.form.TextField;
          this.add (date_field);

          var datepicker  = new qx.ui.component.DateChooserButton();
          datepicker.setTargetWidget(date_field);
          this.add (datepicker);

      }
  });


The main harness just instantiates the date picker once (ok), or twice 
(not happy).

  qx.Class.define("test.Application",
  {
      extend : qx.application.Gui,

      members :
      {
          main : function(e)
          {
              this.base(arguments);

              // Uncomment this next line to see problem when tabbing
              // new test.widget().dispose();

              new test.widget().addToDocument ();
          }

      }
  });



When you trying tabbing to move the focus, the error 'children has no 
properties' appears from the FocusHandler.


I hope that someone can help to shed some light on this. I suspect that 
some widgets aren't unregistering themselves from the FocusHandler 
correctly, and unfortunately it never seems to recover.

Nick

(p.s. If more appropriate, I can log bugs on these)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to