You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2003/10/21 22:21:31 UTC
Table component cell rendering
I'm essentially extending SimpleTableColumnModel. The row contains an
assortment of various data types, generally String, but some Date or
Timestamp fields.
The default rendering is simply to use RenderString on the toString of
each object. For a Date or Timestamp this is, of course, not the
desired effect.
I can put in place my own override of the rendering easily and do
instanceof type checks, but I wanted to check whether folks have come
up with anything more elegant or have suggestions on how to proceed
with changing how cells render in the table component. Perhaps a Map
of type/renderer would be slick?
Thanks,
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org