Hello, welcome to the group. (I don't know if you directly extended qx.core.object, but if you have you might find it better to extend a container, such as a Composite/VBox)
To answer your question, you probably want to do this by creating an event on your Login box, and have the Main Window attach a listener to it. Doing it this way means that the Login Box doesn't need to 'know' which component to notify when the user logs in. To do this, add a section like this to your login box: events : { /** Event emitted when the user logs in */ "loggedIn": "qx.event.type.Data" } Then in your login code you can this.fireDataEvent ('loggedIn', BLAH); where BLAH would be some data which the main window might need to know (like who the user is). Then when the main window creates the login box, it can addListener for the event, and retrieve the BLAH value using getData(). Have a look at http://demo.qooxdoo.org/current/apiviewer/#qx.bom.Cookie for Qooxdoo support for cookies. Hope that helps! Nick p.s. (Shameless plug) If you take a look at the screencast at http://www.pismosoftware.co.uk/products.php (about a minute in) you'll see exactly this technique used for the password box that opens. On 20 July 2010 17:06, Ricardo Ferreira <ricardo.ferre...@dibconsulting.com> wrote: > > Hi, > > I'm developing an application (or trying.. :P) in qooxdoo, but I have a > problem related to the "extend". > > I have built a login screen and another screen (let us call the "mainwindow") > with a toolbar, etc. Both extending the "qx.core.object". > Now, what I need to do is call the screen mainwindow when the login is > success. What's the best way for doing this? > > And another question, I would like to store some information in a cookie or > in a session. So when the user click in the "refresh" button it won't need to > do the login again if it already had logged in. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel