You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by jeff emminger <je...@gmail.com> on 2006/01/09 22:56:16 UTC

contrib:Table headings produces nested tables

why is it that the contrib:Table renders its <th> headings as entire
new table within the th?

some rendered html source from the Table example at
https://tapestrywebcomponentexamples.dev.java.net:

[snip]
<table class="mytable">	<tr>

<th class="BirthDateColumnHeader">
	<table border=0 cellspacing=0 cellpadding=0 align="center">
	<tr>
	<td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&amp;sp=ADirectLinkTableColumn%2Ftable.tableView&amp;sp=SBirthDate">Birth
Date</a></td>
<td>&nbsp;<img src="/TapestryTables/app?service=asset&amp;sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftable%2Fcomponents%2Finserted%2Farrow-up.gif"
border="0" align="center"/></td>	</tr>
	</table>


</th>

<th class="SSNColumnHeader">
	<table border=0 cellspacing=0 cellpadding=0 align="center">
	<tr>
	<td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&amp;sp=ADirectLinkTableColumn%2Ftable.tableView&amp;sp=SSSN">SSN</a></td>
	</tr>
	</table>


</th>
[/snip]

this causes all sorts of problems when you have CSS applying padding
and borders to tables...on top of that the inner table "align"
attribute is invalid XHTML Strict

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: contrib:Table headings produces nested tables

Posted by jeff emminger <je...@gmail.com>.
ok, but why the nested tables at all?  why not just

<tr>
  <th>header</th>
</tr>



On 1/9/06, Mind Bridge <mi...@yahoo.com> wrote:
>  > this causes all sorts of problems when you have CSS applying padding
>  > and borders to tables...on top of that the inner table "align"
>  > attribute is invalid XHTML Strict
>
> The "align" has already been removed in the version on my machine and
> the change will be checked in when possible.
>
> And a quote from an earlier email:
>
> -------- Original Message --------
> Subject:        Re: changing the table column renderer
> Date:   Mon, 12 Sep 2005 19:11:57 +0300
> From:   Mind Bridge <mi...@yahoo.com>
> Reply-To:       Tapestry users <ta...@jakarta.apache.org>
> To:     Tapestry users <ta...@jakarta.apache.org>
> References:     <11...@bender.ifactory.com>
>
>
> The first person who provides me with HTML that has the following properties wins <table> free column headers:
>
> - the column title may be more than one line, as it it may be long and
> may be wrapped by the browser
>
> - the sorting icon needs to be always on right of the column title, even
> if it wraps
>
> - the solution must work okay in multiple brosers and even when changing the width of the broser
>
> - the basic properties of the header can be changed with the customer CSS
>
>
> Just in case you were wondering, I have been trying to achieve the above with CSS only. Even though various solutions (some suggested on this list as well) work okay in the majority of cases, the results are frequently unacceptable. This especially applies to wrapping and the icon location.
>
> In contrast, <table> works rather well everywhere and in all cases, hence its use.
>
> -mb
>
>
>
> jeff emminger wrote:
> > why is it that the contrib:Table renders its <th> headings as entire
> > new table within the th?
> >
> > some rendered html source from the Table example at
> > https://tapestrywebcomponentexamples.dev.java.net:
> >
> > [snip]
> > <table class="mytable">       <tr>
> >
> > <th class="BirthDateColumnHeader">
> >       <table border=0 cellspacing=0 cellpadding=0 align="center">
> >       <tr>
> >       <td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&sp=ADirectLinkTableColumn%2Ftable.tableView&sp=SBirthDate">Birth
> > Date</a></td>
> > <td><img src="/TapestryTables/app?service=asset&sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftable%2Fcomponents%2Finserted%2Farrow-up.gif"
> > border="0" align="center"/></td>      </tr>
> >       </table>
> >
> >
> > </th>
> >
> > <th class="SSNColumnHeader">
> >       <table border=0 cellspacing=0 cellpadding=0 align="center">
> >       <tr>
> >       <td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&sp=ADirectLinkTableColumn%2Ftable.tableView&sp=SSSN">SSN</a></td>
> >       </tr>
> >       </table>
> >
> >
> > </th>
> > [/snip]
> >
> > this causes all sorts of problems when you have CSS applying padding
> > and borders to tables...on top of that the inner table "align"
> > attribute is invalid XHTML Strict
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: contrib:Table headings produces nested tables

Posted by Mind Bridge <mi...@yahoo.com>.
 > this causes all sorts of problems when you have CSS applying padding
 > and borders to tables...on top of that the inner table "align"
 > attribute is invalid XHTML Strict

The "align" has already been removed in the version on my machine and 
the change will be checked in when possible.

And a quote from an earlier email:

-------- Original Message --------
Subject: 	Re: changing the table column renderer
Date: 	Mon, 12 Sep 2005 19:11:57 +0300
From: 	Mind Bridge <mi...@yahoo.com>
Reply-To: 	Tapestry users <ta...@jakarta.apache.org>
To: 	Tapestry users <ta...@jakarta.apache.org>
References: 	<11...@bender.ifactory.com>


The first person who provides me with HTML that has the following properties wins <table> free column headers:

- the column title may be more than one line, as it it may be long and 
may be wrapped by the browser

- the sorting icon needs to be always on right of the column title, even 
if it wraps

- the solution must work okay in multiple brosers and even when changing the width of the broser

- the basic properties of the header can be changed with the customer CSS


Just in case you were wondering, I have been trying to achieve the above with CSS only. Even though various solutions (some suggested on this list as well) work okay in the majority of cases, the results are frequently unacceptable. This especially applies to wrapping and the icon location. 

In contrast, <table> works rather well everywhere and in all cases, hence its use.

-mb



jeff emminger wrote:
> why is it that the contrib:Table renders its <th> headings as entire
> new table within the th?
>
> some rendered html source from the Table example at
> https://tapestrywebcomponentexamples.dev.java.net:
>
> [snip]
> <table class="mytable">	<tr>
>
> <th class="BirthDateColumnHeader">
> 	<table border=0 cellspacing=0 cellpadding=0 align="center">
> 	<tr>
> 	<td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&amp;sp=ADirectLinkTableColumn%2Ftable.tableView&amp;sp=SBirthDate">Birth
> Date</a></td>
> <td>&nbsp;<img src="/TapestryTables/app?service=asset&amp;sp=S%2Forg%2Fapache%2Ftapestry%2Fcontrib%2Ftable%2Fcomponents%2Finserted%2Farrow-up.gif"
> border="0" align="center"/></td>	</tr>
> 	</table>
>
>
> </th>
>
> <th class="SSNColumnHeader">
> 	<table border=0 cellspacing=0 cellpadding=0 align="center">
> 	<tr>
> 	<td><a href="/TapestryTables/app?service=direct/1/DirectLinkTableColumn/contrib:SimpleTableColumnPage/tableColumnComponent.linkColumn&amp;sp=ADirectLinkTableColumn%2Ftable.tableView&amp;sp=SSSN">SSN</a></td>
> 	</tr>
> 	</table>
>
>
> </th>
> [/snip]
>
> this causes all sorts of problems when you have CSS applying padding
> and borders to tables...on top of that the inner table "align"
> attribute is invalid XHTML Strict
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org