You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dan Adams <da...@ifactory.com> on 2007/06/22 20:35:19 UTC

Configurable rendering of grid cells based on type?

I like how you can configure new renderers based on type for
BeanEditForm. Could we do the same thing with grid? Right now GridCell
checks for a block parameter, then checks for a builtin block, then
defaults to just using toString(). After checking for the override
block, it could check a configured service for a renderer based on that
type. In our system we would use it so that:

- boolean -> True/False
- Date    -> Formatted with a specific, system-wide format
- BigDecimal -> Formatted as currency
- Book (custom type) -> prints the ISBN or something



-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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


Re: Configurable rendering of grid cells based on type?

Posted by Howard Lewis Ship <hl...@gmail.com>.
That functionality is present in 5.0.5-SNAPSHOT.

On 6/22/07, Dan Adams <da...@ifactory.com> wrote:
> I like how you can configure new renderers based on type for
> BeanEditForm. Could we do the same thing with grid? Right now GridCell
> checks for a block parameter, then checks for a builtin block, then
> defaults to just using toString(). After checking for the override
> block, it could check a configured service for a renderer based on that
> type. In our system we would use it so that:
>
> - boolean -> True/False
> - Date    -> Formatted with a specific, system-wide format
> - BigDecimal -> Formatted as currency
> - Book (custom type) -> prints the ISBN or something
>
>
>
> --
> Dan Adams
> Senior Software Engineer
> Interactive Factory
> 617.235.5857
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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