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 is if icolumn had add(IBehavior) 
> that would get attached to the header
>
> right now what you have to do is something like this
>
> new MyColumn() {
>  Component getHeader() {
>     Component c= super.getHeader();
>     c.add(new MyAttributeModifier());
>    }
> }
>
> which is tricky for newbies to figure out.
>
> -igor
>
>
>
> On 10/14/06, * Niels Bo* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     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 and StyleName
>      DataTable.html - added <colgroup>section
>      DataTable.java - added a few lines.
>      
>     Usage like:
>       IColumn column = new PropetyColumn(...);
>       column.setStyleName("rightadjust");
>       column.setWidth(200);
>      
>     Would this be a useful improvement for other Wicket users?
>      
>     Niels
>
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to