Don't put interfaces in your .pages. package. Just component classes. There's a kind of exemption for inner classes, but any top-level class is expected to be a component class, and gets fed through the component class transformation pipeline.
On Mon, Jul 30, 2012 at 12:31 PM, bigcache1 <sharp.maes...@gmail.com> wrote: > Hello, everybody! > I am getting an exception: > "Error obtaining injected value for field > tap.execounting.pages.TeacherPage.tMed: No service implements the interface > tap.execounting.dal.mediators.TeacherMedImpl." > > So the problem seems strange to me, because of: > 1) TeacherMed - is an interface, and TeacherMedImpl is the implementing > class accordingly. > 2) But the exception is about "no service implements the interface > TeacherMedImpl" - which is the class. > > Additional info: > These classes are located in the same package. > Exception occurs regardless of where binder.bind is called from. I have > added my own module and enlisted him in Submodules. > If I call binder.bind(TeacherMedImpl.class) everything is fine, regardless > of where the call is coming from. > > bind code: > > package tap.execounting.dal.mediators; > > import org.apache.tapestry5.ioc.ServiceBinder; > > public class MediatorModule { > public static void bind(ServiceBinder binder) { > //binder.bind(TeacherMed.class, TeacherMedImpl.class); //not > works > binder.bind(TeacherMedImpl.class); //roger that > } > > } > > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/again-strange-No-service-implements-the-interface-tap-execounting-dal-mediators-TeacherMedImpl-tp5714888.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org