There's no service typed CustData, exactly as the error message says. You are trying to @Inject CustData but it's not a service, it's your data class. What you want is to mark "CustData user" as a @Property.
Kalle On Thu, Mar 11, 2010 at 8: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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org