Didn't you forget the appropriate floats? -Matej
On 10/12/07, jweekend <[EMAIL PROTECTED]> wrote: > > (1.3.0-SNAPSHOT as of 2007-10-11) > > In a three column TreeTable (the "LEFT" column holds/renders the tree) the > header text and non-tree-column values are not visible (IE6.0.29 & FF2.0.7). > > tree-table.css specifies > "display: block;" > for > "div.wicket-tree-table span.b_ span.c_" > and for > "div.wicket-tree-table span.b_ span.d_" > where (according to the css file comments): > b_ column > c_ column-inner > d_ column-inner-first > > On copying the contents of the generated html & css into files on the > filesystem and appropriately modifying the css reference in head (not > pleasant - is there a better way?) and then opening the html in a browser, > something that resembles the original page (minus tree/node decorations) > appears, still missing the data in all the same cells. If, however, I > comment out the "display: block;"s from the css, _all_ data and headers are > visible. > > I'm no css expert but according to w3schools, > display:block = "the element will be displayed as a block-level element, > with a line break before and after the element". > > The java code (minus package & imports) and html template are pasted in > below. > > Regards - Cemal > http://jWeekend.co.uk jWeekend.co.uk > > > ==== TreeTableWithUnwantedBlankHeadersAndCells.java (minus package & > imports) ==== > > public class TreeTableWithUnwantedBlankHeadersAndCells extends WebPage { > public TreeTableWithUnwantedBlankHeadersAndCells() { > ColumnLocation l = new ColumnLocation(Alignment.LEFT, 12, > Unit.EM); > ColumnLocation m = new ColumnLocation(Alignment.MIDDLE, 30, > Unit.PROPORTIONAL); > ColumnLocation r = new ColumnLocation(Alignment.RIGHT, 200, > Unit.PX); > IColumn columns[] = new IColumn[] { > new PropertyTreeColumn(l, "L", > "userObject.name"), > new PropertyRenderableColumn(m, "M", > "userObject.id"), > new PropertyRenderableColumn(r, "R", > "userObject.done") > }; > TreeTable tree = new TreeTable("tree", makeDummyTreeModel(), > (IColumn[]) > columns); > tree.setRootLess(true); > tree.getTreeState().collapseAll(); > tree.getTreeState().setAllowSelectMultiple(true); > add(treetable); > } > > private DefaultTreeModel makeDummyTreeModel() { > class DummyUserObject { > String id; > String name; > String done; > > public DummyUserObject(String id, String name, String > done) { > super(); > this.id = id; > this.name = name; > this.done = done; > } > } > DefaultMutableTreeNode root = new DefaultMutableTreeNode(new > DummyUserObject("0", "dummyRoot", "true")); > DefaultMutableTreeNode n1 = new DefaultMutableTreeNode(new > DummyUserObject("1", "c1", "true")); > DefaultMutableTreeNode n2 = new DefaultMutableTreeNode(new > DummyUserObject("2", "c2", "false")); > DefaultMutableTreeNode n21 = new DefaultMutableTreeNode(new > DummyUserObject("3", "c21", "false")); > root.add(n1); > root.add(n2); > n2.add(n21); > return new DefaultTreeModel(root); > } > } > > ==== TreeTableWithUnwantedBlankHeadersAndCells.html ==== > > <html> > <body> > <div align="center" wicket:id="treetable">[EXTRACTOR STATUS > TREETABLE]</div> > </body> > </html> > > > > > > > > > -- > View this message in context: > http://www.nabble.com/TreeTable%2C-invisble-cells-and-headersand-tf4610863.html#a13167555 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
