It sounds like the underlying data (from the page) is in a Set, whereas your
component wants a List.  Try converting your Set to a List before passing to
the component.


> -----Original Message-----
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2008 2:58 PM
> To: Tapestry users; [EMAIL PROTECTED]
> Subject: Re: Coercion error in grid
> 
> That is really, really odd.  A stack trace (and the exact version of
> Tapestry you are using) would be helpful.ß
> 
> On Fri, Apr 4, 2008 at 3:06 AM, Stephane Decleire
> <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> >  When i try to show a list of my objects in a grid, i get the following
> > error :
> >  "Could not find a coercion from type
> org.hibernate.collection.PersistentSet
> > to type com.mycompany.MyType"
> >
> >  Here is my component code :
> >
> >  public class UserAdsList {
> >
> >    @Parameter(required = true)
> >    private List<Ad> ads = null;
> >    public List<Ad> getAds() {
> >        return ads;
> >    }
> >    public void setAds(List<Ad> ads) {
> >        this.ads = ads;
> >    }
> >  }
> >
> >
> >  and template :
> >
> >  <t:container
> > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> >
> >  <t:grid source="ads"/>
> >
> >  </t:container>
> >
> >  Any idea ?
> >
> >  Stephane
> >
> 
> 
> 
> --
> Howard M. Lewis Ship
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to