What I am trying to do is a way to pass database entity objects (or
really my DTOs) to my listener methods.
So the type coercer simply should coerce the entity to its unique key
and use that as the client side representation of the entity.
There are surely greater plans for these type of things, but I still
would like to know if this is the intended use of a TC. Or should I
maybe rethink the way to pass entity object between the client and
server?
2007/2/6, Howard Lewis Ship <[EMAIL PROTECTED]>:
Geez ... that toString() is burried pretty deep! Inside
LinkFactoryImpl, inside ComponentInvocation.
On 2/6/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> I think ActionLink simply invokes toString().
>
> I don't see why we couldn't use the TypeCoercer for this purpose.
>
> In most cases, the coercer will simply invoke toString().
>
> The TypeCoercer is used on the flip side, mapping string query
> parameter values to typed event handler method parameters, so I can't
> see why not using it for your situation would matter.
>
> On 2/6/07, Ted Steen <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Im trying to contribute a type coercer from MyType to String (and vice
versa),
> > but it seems like the Object to String is used instead. When the
> > ActionLink is rendered with a MyType in the context it renders to the
> > value toString() returns, not the value my MyType->String coercer
> > gives.
> >
> > I have tried to add @Order("before:*.*") to the contribution, but to no
avail...
> > any suggestions?
> >
> > --
> > /ted
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> 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
>
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]