|
|
I think you have to use setValueRendererSource():
SimpleTableColumn c = new SimpleTableColumn("wh_" + i +
"ID", dn + ", " + i + ".", false));
c.setValueRendererSource(new BlockTableRendererSource(
new ComponentAddress(getComponent("wh_" + i + "IDColumnValue"))));
list.add(c);
hth
Markus
On Thu, 21 Oct 2004 16:32:41 +0200, Andreas Vombach
<andreas.vombach@xxxxxx> wrote:
> I would like to style up my table columns in a way that their display
> names are not given in a string but set by a java class.
> This is useful e.g. to put all days of a month in a table header like |
> Fr, 1. | Sa, 2. | So, 3...
> I do so using the SimpleTableColumn class:
>
> for (int i = 1; i < 32; i++)
> {
> String dn = getDayName(i);
> list.add(new SimpleTableColumn("wh_" + i + "ID", dn +
> ", " + i + ".", false));
> }
> setWorksheetColumns(list);
>
> (former it was !wh_1ID:1:wh_1, !wh_2ID:2:wh_2, !wh_3ID:3:wh_3 ...)
>
> <span jwcid="wh_1IDColumnValue@Block">
> <span jwcid="editableWh_1@TextField"
> value="ognl:components.table.tableRow.wh_1" size="3"/>
> </span>
>
> Unfortunately the Table does not get the link to the wh_1ID etc.
> anymore, how do I do it right?
> I guess the mistake is that the |strColumnName of the |SimpleTableColumn
> does not connect to colunm IDs?
>
> Thanks Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx
|
|