You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eldred Mullany <el...@easypay.co.za> on 2010/08/02 13:48:39 UTC
t:5.1.05 passing Object in t:context parameter using actionLink
Hi Guys
I have a grid component, in one of the parameter cells I have an
actionLink, passing t:context="Object":
I get illegalArgumentException : Could not find a coercion from type
java.lang.String to type za.co.easypay.econfig.beans.stores.Store.
I notice that the parameter is one massive long string.
How can I fix this ?
Thanks
Eldred
RE: t:5.1.05 passing Object in t:context parameter using actionLink
Posted by Eldred Mullany <el...@easypay.co.za>.
Thanks Christophe I will give it a go.
-----Original Message-----
From: Christophe Cordenier [mailto:christophe.cordenier@gmail.com]
Sent: 02 August 2010 02:00 PM
To: Tapestry users
Subject: Re: t:5.1.05 passing Object in t:context parameter using
actionLink
Hi !
To handle client/server and server/client encoding of custom Types, you
have
to provide your an implementation of ValueEncoder. Contribute it to the
ValueEncoderSource and context parameters will be handled
properly/automatically.
2010/8/2 Eldred Mullany <el...@easypay.co.za>
> Hi Guys
>
>
>
> I have a grid component, in one of the parameter cells I have an
> actionLink, passing t:context="Object":
>
>
>
> I get illegalArgumentException : Could not find a coercion from type
> java.lang.String to type za.co.easypay.econfig.beans.stores.Store.
>
>
>
> I notice that the parameter is one massive long string.
>
>
>
> How can I fix this ?
>
>
>
> Thanks
>
> Eldred
>
>
>
>
>
>
--
Regards,
Christophe Cordenier.
Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
RE: t:5.1.05 passing Object in t:context parameter using actionLink
Posted by Eldred Mullany <el...@easypay.co.za>.
Hi Christophe
Is there an example of similarity that implements the ValueEncoder. The
class / Object that I want to encode just has a bunch of getters and
setters. Is there some sort of GenericValueEncoder that takes a class
file that I could take a look at ?
Thank you
Eldred
-----Original Message-----
From: Christophe Cordenier [mailto:christophe.cordenier@gmail.com]
Sent: 02 August 2010 02:00 PM
To: Tapestry users
Subject: Re: t:5.1.05 passing Object in t:context parameter using
actionLink
Hi !
To handle client/server and server/client encoding of custom Types, you
have
to provide your an implementation of ValueEncoder. Contribute it to the
ValueEncoderSource and context parameters will be handled
properly/automatically.
2010/8/2 Eldred Mullany <el...@easypay.co.za>
> Hi Guys
>
>
>
> I have a grid component, in one of the parameter cells I have an
> actionLink, passing t:context="Object":
>
>
>
> I get illegalArgumentException : Could not find a coercion from type
> java.lang.String to type za.co.easypay.econfig.beans.stores.Store.
>
>
>
> I notice that the parameter is one massive long string.
>
>
>
> How can I fix this ?
>
>
>
> Thanks
>
> Eldred
>
>
>
>
>
>
--
Regards,
Christophe Cordenier.
Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: t:5.1.05 passing Object in t:context parameter using actionLink
Posted by Christophe Cordenier <ch...@gmail.com>.
Hi !
To handle client/server and server/client encoding of custom Types, you have
to provide your an implementation of ValueEncoder. Contribute it to the
ValueEncoderSource and context parameters will be handled
properly/automatically.
2010/8/2 Eldred Mullany <el...@easypay.co.za>
> Hi Guys
>
>
>
> I have a grid component, in one of the parameter cells I have an
> actionLink, passing t:context="Object":
>
>
>
> I get illegalArgumentException : Could not find a coercion from type
> java.lang.String to type za.co.easypay.econfig.beans.stores.Store.
>
>
>
> I notice that the parameter is one massive long string.
>
>
>
> How can I fix this ?
>
>
>
> Thanks
>
> Eldred
>
>
>
>
>
>
--
Regards,
Christophe Cordenier.
Committer on Apache Tapestry 5
Co-creator of wooki @wookicentral.com