Sorry, I didn't try it, I'm kinda busy right now. If you want me to
look at it provide a simple quickstart. And a jira issue if you think
it's a wicket bug. The thing is, TreeTable layout leaves much to be
desired and will be subject of rework in the next release, because
it's not very flexible ATM.

-Matej

On 10/12/07, jweekend <[EMAIL PROTECTED]> wrote:
>
> Hej Matej,
> Tried to catch you on IRC this morning (~02:00) with this one; thanks for
> the usual quick feedback.
> The code below is based on the nice
> http://wicketstuff.org/wicket13/ajax/tree/table.2 Wicket 1.3 Ajax /
> TreeTable  from the  http://wicketstuff.org/wicket13/index.html Wicket
> examples , which, BTW, are extremely useful and just work, as usual.
>
> Did you try the code below or can you see something wrong?
> Is there some extra css implicitly required?
> Is something missing from the example (which works) or just the code below
> (that doesn't)?
>
> Regards - Cemal
> http://jWeekend.co.uk jWeekend.co.uk
>
> PS FYI: Including <style> div.my-tree div.wicket-tree-table-body {height:
> 20em; overflow: auto;} </style> and the appropriate class attribute does not
> fix the problem (but it does make the TreeTable look slightly prettier ;-).
>
>
>
> Matej Knopp-2 wrote:
> >
> > 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]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/TreeTable%2C-invisble-cells-and-headersand-tf4610863.html#a13171737
> 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]

Reply via email to