Sorry - figured it out looking at JumpStart @Inject //this should be @Property private CustData user ;
And it works On Fri, Mar 12, 2010 at 3:07 PM, Chris Mylonas <ch...@opencsta.org> wrote: > Hi, > > I've got a pretty basic problem that has had me stuck for a couple of > days. I have a grid that spits out values from a database using hibernate > > I'm trying to create a link on one of the fields in each row to drill down > into further details and getting this exception > > org.apache.tapestry5.internal. > services.TransformationException: Error obtaining injected value for field > net.omniumlite.admin.pages.HigherEd.user: No service implements the > interface net.omniumlite.admin.entities.CustData > > > ###pages.HigherEd.java### > public class HigherEd{ > > @Inject > private Session session ; > > @Inject > private CustData user ; > > public List<CustData> getUsers(){ > return session.createCriteria(CustData.class).list() ; > } > > } > > > ###entities.CustData.java### snipped, which is mapped to a table in the > database > @Entity > @Table(name = "cust_data", catalog = "omlite_tapestry_test") > public class CustData implements java.io.Serializable { > > private Integer dbId; > private Integer omlitedbnum; > private String omlitename; > private String custName; > private String contact1; > private String contact2; > private String contact3; > private Integer omlitestatus; > private Integer sid; > private String adminPassPlaintext; > private String adminPassMd5; > private String omliteSuburl; > private Integer deleteFlag; > private Integer deleteFinal; > private Integer injectNewSql; > > //getters adn setters omitted > > ###HigherEd.tml### snippet > <t:grid source="users" row="user"> > <t:parameter name="omlitedbnumCell"> > <t:pagelink page="sitedetails" > context="user.omlitedbnum">${user.omlitedbnum}</t:pagelink> > </t:parameter> > </t:grid> > > How do I get to my next step?/What am I doing fundamentally wrong? Has > anyone get any pointers? > > > Thanks > Chris >