Gunna and tapestry list,
Again, thanks for the help. I wish the documentation was easier to
find. Turns out that the old 3.03 docs help quite a bit with
understanding tables, but I didn't realize that until today.
I just spent an additional 2 hours pounding my head against the wall
trying to get this to work until I realized that I wasn't calling:
statusColumn.loadSettings(this); which was preventing the id of the
column from being registered with the table (or however it works
internally), so @Block was being ignored.
contrib:Table is a tricky little beast. Assigning @Block's to ids by
appending the string "ColumnValue" also seems like a bad idea because
you have no feedback as to whether or not it's been bound correctly.
And, I know it's coming, but having a solid set of documentation would
greatly help, or a large array of examples.
So just in case anyone is following along at home, the code that works
looks like:
public ITableColumn getCurrentStatusColumn() {
SimpleTableColumn statusColumn =
new SimpleTableColumn("status", new
CurrentStatusColumnEvaluator(), true);
statusColumn.setColumnComparator(new StatusComparator());
statusColumn.loadSettings(this);
return statusColumn;
}
.. and ..
<table class="mytable" jwcid="[EMAIL PROTECTED]:Table"
source="ognl:allNotes"
columns="name, !description, dateCreated, =currentStatusColumn"
rowsClass="ognl:beans.evenOdd.next"
pageSize="20"
>
<span jwcid="[EMAIL PROTECTED]"> f
<span jwcid="@Insert"
value="ognl:components.table.tableRow.currentStatus.description" />
</span>
Cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]