Tapestry support for Java generics is very limited,
you need a value encoder to make this work,

also, add more details on who calls what... so more is known
of the problem you are trying to solve.


Davor Hrg

On Tue, Apr 1, 2008 at 1:43 PM, Alec Leamas <[EMAIL PROTECTED]> wrote:

> I have problems passing my own datatype(s) to my own component. The
> component takes two parameters, one List<String> and one List<MyMap>.
> MyMap is declared as MyMap extends TreeMap {...}.
>
> The first parameter, a list of strings arrives safely to my component.
> However, the other one, seems to be mixed up: when I try to access an
> element in my List<MyMap>, it turns out that Tapestry (nothing else
> involved)  have filled  this list with String items, not the expected
> MyMap items. In the end, there is a class cast exception when trying to
> access the MyMap items as Maps.
>
> In the Eclipse debugger, it seems that the value of the List<MyMap>
> instance variable is a single string holding what looks like  the
> serialized value of my List<MyMap>  list. The start is
> "[{key=value,key=value...
>
> I've tried to contribute coercions between MyMap<->Map, but this desn't
> seem to help (?).
>
> Basically, I'm stucked unless I write everything in several big pages
> with duplicated code. Don't really want to do that. :-(
>
> Any hints out there?
>
> --alec
>
> PS  Version: 5.0.11 DS
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to