You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Perry Q Hertler <pe...@yahoo.com> on 2003/07/09 18:58:56 UTC
TableColumn Header Alignment
How do I change the TableColumn header alignment?
Please don't tell me that I need to write a custom
component just to change the alignment.
Thanks,
Perry
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Re: TableColumn Header Alignment
Posted by Mindbridge <mi...@yahoo.com>.
Hi,
The CSS selector is '.tableColumn td', which means that it addresses
'td' tags within a tableColumn class.
But the problem is different -- the size of the inner table (was too
tired yesterday to notice it). It takes the minimum possible size and is
centered within the <th> column as a result. Try defining the following
style instead:
.tableColumn table { width: 100%; }
That should really resolve your issue -- the column header will end up
aligned left.
Best regards,
-mb
----- Original Message -----
From: "Perry Q Hertler" <pe...@yahoo.com>
To: "Mindbridge" <mi...@yahoo.com>; "Tapestry users"
<ta...@jakarta.apache.org>; <pe...@hertler.net>
Sent: Thursday, July 10, 2003 2:39 AM
Subject: Re: TableColumn Header Alignment
> As can be seen from the generated code below, the
> table that is embedded within the th tag has it's
> alignment hard coded to 'center' and it does not set
> it's class attribute. How would setting .tableColumn
> in a stylesheet have any affect at all?
>
> Thanks,
> Perry
>
>
> --- Mindbridge <mi...@yahoo.com> wrote:
> > Oh, right. This is a special case for the default
> > implementation of columns
> > (a compromise to work in a number of situations and
> > browsers; I should
> > probably add another "plain" implementation without
> > a table, but it probably
> > would not get used a lot at the end).
> >
> > Here is how to do it:
> >
> > <style>
> > .tableColumn td { text-align: left }
> > </style>
> >
> > (best to do the above via the stylesheet, but not
> > obligatory)
> >
> > <th jwcid="tableColumns" class="tableColumn"/>
> >
> > That should do what you want, I believe.
> >
> > Best regards,
> > -mb
> >
> > ----- Original Message -----
> > From: "Perry Q Hertler" <pe...@yahoo.com>
> > To: <ta...@jakarta.apache.org>
> > Sent: Wednesday, July 09, 2003 9:03 PM
> > Subject: Re: TableColumn Header Alignment
> >
> >
> > > This doesn't work because tables are inside the th
> > > tags.
> > >
> > > My code:
> > > <table class='formtable' jwcid="tableView"
> > > width="100%">
> > > <span
> > jwcid="tablePages@contrib:TablePages"/>
> > > <tr>
> > > <th align="left" jwcid="tableColumns"/>
> > > </tr>
> > > <tr jwcid="tableRows">
> > > <td align='left' jwcid="tableValues" />
> > > </tr>
> > > </table>
> > >
> > > Generated code:
> > > ...
> > > <th align="left">
> > > <table border=0 cellspacing=0 cellpadding=0
> > > align="center">
> > > <tr>
> > > <td><a href="something">My Header</a></td>
> > >
> > > </tr>
> > > </table>
> > > </th>
> > > <th>....</th>
> > > --- Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> > wrote:
> > > > solution 1: css redefine the th tag
> > > > solution 2: <td jwcid="tableColumns"
> > align="center"
> > > > nowrap
> > > > class="row3"/>
> > > >
> > > > citation from Mindbridge:
> > > >
> > > > The first piece of information that is helpful
> > here
> > > > is that the
> > > > TableColumns, TableRows, and TableValues
> > components
> > > > accept informal
> > > > parameters and pass their informal parameters to
> > the
> > > > <th>, <tr>, and
> > > > <td>
> > > > tags they render respectively.
> > > >
> > > > end citation
> > > >
> > > > Len
> > > >
> > > > On Wed, 2003-07-09 at 19:58, Perry Q Hertler
> > wrote:
> > > > > How do I change the TableColumn header
> > alignment?
> > > > > Please don't tell me that I need to write a
> > custom
> > > > > component just to change the alignment.
> > > > >
> > > > > Thanks,
> > > > > Perry
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > > tapestry-user-help@jakarta.apache.org
> > > > --
> > > > Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> > > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> >
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: TableColumn Header Alignment
Posted by Perry Q Hertler <pe...@yahoo.com>.
As can be seen from the generated code below, the
table that is embedded within the th tag has it's
alignment hard coded to 'center' and it does not set
it's class attribute. How would setting .tableColumn
in a stylesheet have any affect at all?
Thanks,
Perry
--- Mindbridge <mi...@yahoo.com> wrote:
> Oh, right. This is a special case for the default
> implementation of columns
> (a compromise to work in a number of situations and
> browsers; I should
> probably add another "plain" implementation without
> a table, but it probably
> would not get used a lot at the end).
>
> Here is how to do it:
>
> <style>
> .tableColumn td { text-align: left }
> </style>
>
> (best to do the above via the stylesheet, but not
> obligatory)
>
> <th jwcid="tableColumns" class="tableColumn"/>
>
> That should do what you want, I believe.
>
> Best regards,
> -mb
>
> ----- Original Message -----
> From: "Perry Q Hertler" <pe...@yahoo.com>
> To: <ta...@jakarta.apache.org>
> Sent: Wednesday, July 09, 2003 9:03 PM
> Subject: Re: TableColumn Header Alignment
>
>
> > This doesn't work because tables are inside the th
> > tags.
> >
> > My code:
> > <table class='formtable' jwcid="tableView"
> > width="100%">
> > <span
> jwcid="tablePages@contrib:TablePages"/>
> > <tr>
> > <th align="left" jwcid="tableColumns"/>
> > </tr>
> > <tr jwcid="tableRows">
> > <td align='left' jwcid="tableValues" />
> > </tr>
> > </table>
> >
> > Generated code:
> > ...
> > <th align="left">
> > <table border=0 cellspacing=0 cellpadding=0
> > align="center">
> > <tr>
> > <td><a href="something">My Header</a></td>
> >
> > </tr>
> > </table>
> > </th>
> > <th>....</th>
> > --- Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> wrote:
> > > solution 1: css redefine the th tag
> > > solution 2: <td jwcid="tableColumns"
> align="center"
> > > nowrap
> > > class="row3"/>
> > >
> > > citation from Mindbridge:
> > >
> > > The first piece of information that is helpful
> here
> > > is that the
> > > TableColumns, TableRows, and TableValues
> components
> > > accept informal
> > > parameters and pass their informal parameters to
> the
> > > <th>, <tr>, and
> > > <td>
> > > tags they render respectively.
> > >
> > > end citation
> > >
> > > Len
> > >
> > > On Wed, 2003-07-09 at 19:58, Perry Q Hertler
> wrote:
> > > > How do I change the TableColumn header
> alignment?
> > > > Please don't tell me that I need to write a
> custom
> > > > component just to change the alignment.
> > > >
> > > > Thanks,
> > > > Perry
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > > --
> > > Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Re: TableColumn Header Alignment
Posted by Perry Q Hertler <pe...@yahoo.com>.
This doesn't work for me. I'm using 3.0-beta-1.
Thanks,
Perry
--- Mindbridge <mi...@yahoo.com> wrote:
> Oh, right. This is a special case for the default
> implementation of columns
> (a compromise to work in a number of situations and
> browsers; I should
> probably add another "plain" implementation without
> a table, but it probably
> would not get used a lot at the end).
>
> Here is how to do it:
>
> <style>
> .tableColumn td { text-align: left }
> </style>
>
> (best to do the above via the stylesheet, but not
> obligatory)
>
> <th jwcid="tableColumns" class="tableColumn"/>
>
> That should do what you want, I believe.
>
> Best regards,
> -mb
>
> ----- Original Message -----
> From: "Perry Q Hertler" <pe...@yahoo.com>
> To: <ta...@jakarta.apache.org>
> Sent: Wednesday, July 09, 2003 9:03 PM
> Subject: Re: TableColumn Header Alignment
>
>
> > This doesn't work because tables are inside the th
> > tags.
> >
> > My code:
> > <table class='formtable' jwcid="tableView"
> > width="100%">
> > <span
> jwcid="tablePages@contrib:TablePages"/>
> > <tr>
> > <th align="left" jwcid="tableColumns"/>
> > </tr>
> > <tr jwcid="tableRows">
> > <td align='left' jwcid="tableValues" />
> > </tr>
> > </table>
> >
> > Generated code:
> > ...
> > <th align="left">
> > <table border=0 cellspacing=0 cellpadding=0
> > align="center">
> > <tr>
> > <td><a href="something">My Header</a></td>
> >
> > </tr>
> > </table>
> > </th>
> > <th>....</th>
> > --- Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> wrote:
> > > solution 1: css redefine the th tag
> > > solution 2: <td jwcid="tableColumns"
> align="center"
> > > nowrap
> > > class="row3"/>
> > >
> > > citation from Mindbridge:
> > >
> > > The first piece of information that is helpful
> here
> > > is that the
> > > TableColumns, TableRows, and TableValues
> components
> > > accept informal
> > > parameters and pass their informal parameters to
> the
> > > <th>, <tr>, and
> > > <td>
> > > tags they render respectively.
> > >
> > > end citation
> > >
> > > Len
> > >
> > > On Wed, 2003-07-09 at 19:58, Perry Q Hertler
> wrote:
> > > > How do I change the TableColumn header
> alignment?
> > > > Please don't tell me that I need to write a
> custom
> > > > component just to change the alignment.
> > > >
> > > > Thanks,
> > > > Perry
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > tapestry-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > tapestry-user-help@jakarta.apache.org
> > > --
> > > Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Re: TableColumn Header Alignment
Posted by Mindbridge <mi...@yahoo.com>.
Oh, right. This is a special case for the default implementation of columns
(a compromise to work in a number of situations and browsers; I should
probably add another "plain" implementation without a table, but it probably
would not get used a lot at the end).
Here is how to do it:
<style>
.tableColumn td { text-align: left }
</style>
(best to do the above via the stylesheet, but not obligatory)
<th jwcid="tableColumns" class="tableColumn"/>
That should do what you want, I believe.
Best regards,
-mb
----- Original Message -----
From: "Perry Q Hertler" <pe...@yahoo.com>
To: <ta...@jakarta.apache.org>
Sent: Wednesday, July 09, 2003 9:03 PM
Subject: Re: TableColumn Header Alignment
> This doesn't work because tables are inside the th
> tags.
>
> My code:
> <table class='formtable' jwcid="tableView"
> width="100%">
> <span jwcid="tablePages@contrib:TablePages"/>
> <tr>
> <th align="left" jwcid="tableColumns"/>
> </tr>
> <tr jwcid="tableRows">
> <td align='left' jwcid="tableValues" />
> </tr>
> </table>
>
> Generated code:
> ...
> <th align="left">
> <table border=0 cellspacing=0 cellpadding=0
> align="center">
> <tr>
> <td><a href="something">My Header</a></td>
>
> </tr>
> </table>
> </th>
> <th>....</th>
> --- Marilen Corciovei <le...@nemesisit.rdsnet.ro> wrote:
> > solution 1: css redefine the th tag
> > solution 2: <td jwcid="tableColumns" align="center"
> > nowrap
> > class="row3"/>
> >
> > citation from Mindbridge:
> >
> > The first piece of information that is helpful here
> > is that the
> > TableColumns, TableRows, and TableValues components
> > accept informal
> > parameters and pass their informal parameters to the
> > <th>, <tr>, and
> > <td>
> > tags they render respectively.
> >
> > end citation
> >
> > Len
> >
> > On Wed, 2003-07-09 at 19:58, Perry Q Hertler wrote:
> > > How do I change the TableColumn header alignment?
> > > Please don't tell me that I need to write a custom
> > > component just to change the alignment.
> > >
> > > Thanks,
> > > Perry
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > tapestry-user-help@jakarta.apache.org
> > --
> > Marilen Corciovei <le...@nemesisit.rdsnet.ro>
> >
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: TableColumn Header Alignment
Posted by Perry Q Hertler <pe...@yahoo.com>.
This doesn't work because tables are inside the th
tags.
My code:
<table class='formtable' jwcid="tableView"
width="100%">
<span jwcid="tablePages@contrib:TablePages"/>
<tr>
<th align="left" jwcid="tableColumns"/>
</tr>
<tr jwcid="tableRows">
<td align='left' jwcid="tableValues" />
</tr>
</table>
Generated code:
...
<th align="left">
<table border=0 cellspacing=0 cellpadding=0
align="center">
<tr>
<td><a href="something">My Header</a></td>
</tr>
</table>
</th>
<th>....</th>
--- Marilen Corciovei <le...@nemesisit.rdsnet.ro> wrote:
> solution 1: css redefine the th tag
> solution 2: <td jwcid="tableColumns" align="center"
> nowrap
> class="row3"/>
>
> citation from Mindbridge:
>
> The first piece of information that is helpful here
> is that the
> TableColumns, TableRows, and TableValues components
> accept informal
> parameters and pass their informal parameters to the
> <th>, <tr>, and
> <td>
> tags they render respectively.
>
> end citation
>
> Len
>
> On Wed, 2003-07-09 at 19:58, Perry Q Hertler wrote:
> > How do I change the TableColumn header alignment?
> > Please don't tell me that I need to write a custom
> > component just to change the alignment.
> >
> > Thanks,
> > Perry
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> --
> Marilen Corciovei <le...@nemesisit.rdsnet.ro>
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Re: TableColumn Header Alignment
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
solution 1: css redefine the th tag
solution 2: <td jwcid="tableColumns" align="center" nowrap
class="row3"/>
citation from Mindbridge:
The first piece of information that is helpful here is that the
TableColumns, TableRows, and TableValues components accept informal
parameters and pass their informal parameters to the <th>, <tr>, and
<td>
tags they render respectively.
end citation
Len
On Wed, 2003-07-09 at 19:58, Perry Q Hertler wrote:
> How do I change the TableColumn header alignment?
> Please don't tell me that I need to write a custom
> component just to change the alignment.
>
> Thanks,
> Perry
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
Marilen Corciovei <le...@nemesisit.rdsnet.ro>