I am converting some T4 code into T5.
Maybe someone can point out the best way of doing this, while I contemplate it.

In T4, there was a column definition string that you could pass to the
contrib:table component.
It would define the order and names of the columns.

Since the number/type of columns in my T4 pages would not be known
until compile time, I had the row object use a Map to hold the actual
rows, with the column names as keys.

My T4 page would then combine the column name strings and provide that
to the contrib table.

psuedocode looks like this:

class myPage{
List<fillableRow> list;
}

class fillableRow {
Map<String columnName, FormattableDataItem celldata>
}

class FormattableDataItem<RAW,DISPLAY>(){
RAW rawData = null;  //unadulterated data object, full precision, etc
DISPLAY formattedData = null; //results from a Format.format() invocation.
//getters and setters
}

I'm unsure of the proper way to inform the grid about how to acquire
the columns from the rows, when the row object needs a column name to
return the data.

I think another reason I was doing this was so that I could assign
comparators to compare against the raw types instead of the
formatted-output types.  i.e. comparing Doubles versus comparing a
monetary string "-$500.23"

Any Ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to