Hi Dan! Thanks, knew it had to be something stupid I missed. Still, your answer brings up another question. You say my original code brought up an error telling you immediately where the problem was. Where is this error displayed? When I hit F7 to bring the debug console up, I see nothing in the pane that pops up, besides a load time. Is there another log somewhere?
I'm also curious how the general development cycle works. I find myself editing some qooxdoo js files, running ./generate.py source, then hitting 'F5' in my browser to reload the page. Makes sense? -Matt On Mon, Jul 20, 2009 at 5:35 AM, Daniel Wagner<[email protected]> wrote: > Hi Matthew, > > first of all, welcome to qooxdoo! Trying to run your code gave me an > error: The layout properties 'row' and 'column' must be defined! > > To fix it, simply change the line where you add the label to the grid > layout like this: > > this._add(cell, {row: row, column : col}); > > > Regards, > Daniel > > Matthew Curry schrieb: >> Hello all, >> >> I have to say, qooxdoo looks awesome. Came across it awhile ago, but >> finally have something at work to (hopefully) replace our current >> stuff with. >> Anyway, I'm testing the making of a custom widget, basically I'm >> trying to make a Grid of Labels of a predefined size. Although the >> code below seems to execute, nothing shows up on the browser, FF >> 3.0.11 on Ubuntu. Am I missing something? >> >> -Matt >> >> -- Application.js -- only changes from what ./generate.py source makes >> are these: >> // Document is the application root >> var root = this.getRoot(); >> >> // Add a webtac grid >> var grid = new webtac.Grid(1,2,2); >> root.add(grid); >> >> -- Grid.js -- >> qx.Class.define("webtac.Grid", >> { >> extend : qx.ui.core.Widget, >> >> construct : function (id, rows, columns) { >> this.base(arguments); >> var layout = new qx.ui.layout.Grid(); >> this._setLayout(layout); >> >> this.id = id; >> for (row=0; row<rows; row++) { >> for (col=0; col<columns; col++) { >> var cell = new qx.ui.basic.Label("Cell ["+row+","+col+"]"); >> this._add(cell); >> } >> } >> >> } >> >> }); >> >> ------------------------------------------------------------------------------ >> Enter the BlackBerry Developer Challenge >> This is your chance to win up to $100,000 in prizes! For a limited time, >> vendors submitting new applications to BlackBerry App World(TM) will have >> the opportunity to enter the BlackBerry Developer Challenge. See full prize >> details at: http://p.sf.net/sfu/Challenge >> _______________________________________________ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited time, > vendors submitting new applications to BlackBerry App World(TM) will have > the opportunity to enter the BlackBerry Developer Challenge. See full prize > details at: http://p.sf.net/sfu/Challenge > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
