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="" attribute to a tag instead of a class="".
> 
> Martijn
> 
> On 10/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>> nothing in the works yet, still trying to figure out the nicest way to do
>> this
>>
>> niel'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 becomes
>>
>> when you call setStyle() on a column - where does that style go? does it
>> go
>> onto the th? or the tds?
>>
>> -igor
>>
>>
>>
>> On 10/31/06, Jan Mikkelsen <[EMAIL PROTECTED]> wrote:
>> > 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]
>> > > > 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 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
>> > >
>> 
>> > >
>> > > ___
>> > > Wicket-user mailing list
>> > > 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
>> >
>>
>>
>> ---

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 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 becomes
> 
> when you call setStyle() on a column - where does that style go? does it
> go
> onto the th? or the tds?
> 
> -igor
> 
> 
> On 10/31/06, Jan Mikkelsen <[EMAIL PROTECTED]> wrote:
>>
>> 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]
>> > > 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 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
>> > 
>> > 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
>>
> 
> -
> 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

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, still trying to figure out the nicest way to do
> this
>
> niel'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 becomes
>
> when you call setStyle() on a column - where does that style go? does it go
> onto the th? or the tds?
>
> -igor
>
>
>
> On 10/31/06, Jan Mikkelsen <[EMAIL PROTECTED]> wrote:
> > 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]
> > > > 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 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
> > >
> 
> > >
> > > ___
> > > Wicket-user mailing list
> > > 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
> >
>
>
> -
> 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=263

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 becomeswhen you call setStyle() on a column - where does that style go? does it go onto the th? or the tds?
-igorOn 10/31/06, Jan Mikkelsen <[EMAIL PROTECTED]> wrote:
I have run into the same requirement and would also like a more elegantsolution.Is something in the works or is there more important stuff to do :) ?Personally I prefer Niels' approach because it is very straightforward.
Thanks,/JanIgor 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]> [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 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
> >> ___
> Wicket-user mailing list> Wicket-user@lists.sourceforge.net> 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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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


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 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] 
> > 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 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
> 
>
> ___
> 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
>   


-
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


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 newbies to figure out.-igorOn 10/14/06, 
Niels Bo <[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 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___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://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