You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Krutyakov Roman <ma...@rs.com.ua> on 2005/03/30 14:51:59 UTC
contrib:Table question
Hello,
is it possible to make colspans and rowspans in contrib:Table component?
I need to show info as table with paging and sorting, but it contains
complex records and i need to show some cells with rowspan that can
change from 1 to 5
So i want to generate something like this
<table>
<tr>
<td>2004-12-01</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td rowspan="3">2004-12-02</td>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
--
Roman Krutyakov
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: contrib:Table question
Posted by Waldo Mendoza <wm...@umsa.bo>.
Krutyakov Roman <mark <at> rs.com.ua> writes:
>
> Hello,
>
> is it possible to make colspans and rowspans in contrib:Table component?
> I need to show info as table with paging and sorting, but it contains
> complex records and i need to show some cells with rowspan that can
> change from 1 to 5
>
> So i want to generate something like this
>
> <table>
> <tr>
> <td>2004-12-01</td>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> </tr>
> <tr>
> <td rowspan="3">2004-12-02</td>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> </tr>
> <tr>
> <td>1</td>
> <td>2</td>
> <td>3</td>
> </tr>
> </table>
>
Hi,
Use the TableView Component:
<span jwcid="tableView">
<span jwcid="condPages"><span jwcid="tablePages"/></span>
<tr><span jwcid="tableColumns"/></tr>
<tr jwcid="tableRows"><td jwcid="tableValues"/></tr>
</span>
U can replace the
<td jwcid="tableValues"/>
with anything, the value can be any other table, or maybe you can use a Block.
http://jakarta.apache.org/tapestry/doc/ComponentReference/contrib.Table.html
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org