You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Simeon Koptelov <si...@gmail.com> on 2005/06/09 07:38:25 UTC

contrib:FormTable customization question

Hello all.

How can I do the following with the contrib:FormTable?

+------------------------------------
| Heading 1
+-----------------------------------
| Column 1 |  Column 2 | Column 3 |
+-----------------------------------
| Column 1 |  Column 2 | Column 3 |
+-----------------------------------
| Heading 2
+-----------------------------------
| Column 1 | Column 2 | Column 3 |
+-----------------------------------

I need to insert headers between the ordinary rows. The header is a
row with a single <td colspan="columnsCount">. Seems that i need to
override the renderer for a row, but I don't know how. Any
suggestions?

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


Re: contrib:FormTable customization question

Posted by Simeon Koptelov <si...@gmail.com>.
Thanks, works like a charm. I use my own sorting in my IBasicTableModel 
implementation.

On 6/10/05, Mind Bridge <mi...@yahoo.com> wrote:
> Hi,
> 
> I am not sure the requested rendering can possibly work if you have 
sorting,
> but here you go:
> 
> You can use the lower level table components (TableView, etc) and define
> your own layout as a result. An example of that is in the LocaleList
> component in the Workbench.
> 
> For example:
> 
> <table jwcid="@contrib:TableView" source="..." columns="...">
> 
> <tr>
> <td colspan="...">
> <span jwcid="tablePages@contrib:TableFormPages"/>
> </td>
> </tr>
> <tr>
> <td jwcid="@contrib:TableColumns"/>
> </tr>
> 
> <span jwcid="@contrib:TableFormRows" row="ognl: currentRow"
> element="span">
> <span jwcid="@Conditional" condition="ognl: showTitle">
> <tr>
> <td colspan="..."><span jwcid="Insert" value="ognl: titleText"/></td>
> </tr>
> </span>
> 
> <tr>
> <td jwcid="@contrib:TableValues"/>
> </tr>
> </span>
> 
> </table>

Re: contrib:FormTable customization question

Posted by Mind Bridge <mi...@yahoo.com>.
Hi,

I am not sure the requested rendering can possibly work if you have sorting,
but here you go:

You can use the lower level table components (TableView, etc) and define
your own layout as a result. An example of that is in the LocaleList
component in the Workbench.

For example:

<table jwcid="@contrib:TableView" source="..." columns="...">

  <tr>
    <td colspan="...">
      <span jwcid="tablePages@contrib:TableFormPages"/>
    </td>
  </tr>
  <tr>
    <td jwcid="@contrib:TableColumns"/>
  </tr>

  <span jwcid="@contrib:TableFormRows" row="ognl: currentRow"
element="span">
    <span jwcid="@Conditional" condition="ognl: showTitle">
    <tr>
      <td colspan="..."><span jwcid="Insert" value="ognl: titleText"/></td>
    </tr>
    </span>

    <tr>
      <td jwcid="@contrib:TableValues"/>
    </tr>
  </span>

</table>


----- Original Message ----- 
From: "Simeon Koptelov" <si...@gmail.com>
To: <ta...@jakarta.apache.org>
Sent: Thursday, June 09, 2005 8:38 AM
Subject: contrib:FormTable customization question


Hello all.

How can I do the following with the contrib:FormTable?

+------------------------------------
| Heading 1
+-----------------------------------
| Column 1 |  Column 2 | Column 3 |
+-----------------------------------
| Column 1 |  Column 2 | Column 3 |
+-----------------------------------
| Heading 2
+-----------------------------------
| Column 1 | Column 2 | Column 3 |
+-----------------------------------

I need to insert headers between the ordinary rows. The header is a
row with a single <td colspan="columnsCount">. Seems that i need to
override the renderer for a row, but I don't know how. Any
suggestions?

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