Re: [Wicket-user] DataTable with column styles and widths

2006-12-22 Thread Niels Bo
Yes, and the idear was that setStyle() should do a class="", so maybe setCSSClass() is better... Martijn Dashorst wrote: > > Yep, > > Styling should be done in the css, not on the markup tags. Though > sometimes convenient and I often violate this myself, I cringe > everytime I add a style=""

Re: [Wicket-user] DataTable with column styles and widths

2006-12-22 Thread Niels Bo
The setStyle() on a column, puts the style a tag! I belive that is the only way you can set style to a complete column on a single tag. Niels igor.vaynberg wrote: > > nothing in the works yet, still trying to figure out the nicest way to do > this > > niel's idea might be more straightforwar

Re: [Wicket-user] DataTable with column styles and widths

2006-11-01 Thread Martijn Dashorst
Yep, Styling should be done in the css, not on the markup tags. Though sometimes convenient and I often violate this myself, I cringe everytime I add a style="" attribute to a tag instead of a class="". Martijn On 10/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > nothing in the works yet, sti

Re: [Wicket-user] DataTable with column styles and widths

2006-10-31 Thread Igor Vaynberg
nothing in the works yet, still trying to figure out the nicest way to do thisniel's idea might be more straightforward but from framework's point of view it is too limited and you can further generalize it to setStyle("rightadjusted width200") and remove setWidth() completely.then the question bec

Re: [Wicket-user] DataTable with column styles and widths

2006-10-31 Thread Jan Mikkelsen
I have run into the same requirement and would also like a more elegant solution. Is something in the works or is there more important stuff to do :) ? Personally I prefer Niels' approach because it is very straightforward. Thanks, /Jan Igor Vaynberg wrote: > i think what would be even better i

Re: [Wicket-user] DataTable with column styles and widths

2006-10-20 Thread Igor Vaynberg
i think what would be even better is if icolumn had add(IBehavior) that would get attached to the headerright now what you have to do is something like thisnew MyColumn() { Component getHeader() {    Component c= super.getHeader();    c.add(new MyAttributeModifier());   }}which is tricky for newbie

[Wicket-user] DataTable with column styles and widths

2006-10-14 Thread Niels Bo
Hi   I have this suggestion for an extension to the DataTable component that will make it easier to set width and ccs styles individually on each column.   It involves these files (attached):    IColumn.java - new getWidth() and getStyleName()  AbstractColumn.java - implement default get/set Width