Thanks for your help, Derrell. 
I have one more question - will this code work:

var test = document.getElementById('test');
var btnRun = new qx.ui.form.Button('Run!');
btnRun.set({...});
qx.ui.core.Widget.flushGlobalQueues();

test.appendChild(btnRun.getElement());

> > And one more related question. Here is the piece of code:
> >
> > var test = document.getElementById('test');
> > var btnRun = new qx.ui.form.Button('Run!');
> > btnRun.set({...});
> >
> > // how could I add btnRun to test?
> > // something like test.add(btnRun);
> >
> > Perhaps, some low-level hack could help?
>
> I think you may be trying to use qooxdoo when qooxdoo isn't appropriate, or
> trying to use raw DOM when it isn't appropriate.  The two don't mix well
> because qooxdoo keeps lots of stuff in queues and renders it all at the
> same time (some time later than you creating the widget).  It's therefore
> difficult (impossible) to get the rendered elements at the point in the
> code that you're trying to do it,since they haven't been rendered yet. 
> It's probably worth rethinking what you're trying to do here.
>
> You should be able to get at the actual DOM element created for btnRun with
> btnRun.getElement().  However, that's not available until btnRun has been
> rendered, which apparently isn't what you want.
>
> Derrell

Thanks,
        Alexei Golovko

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to