Hi,
I'm having trouble injecting a custom IEngineService into a
component. I'm essentially implementing a component that mirrors
the regular Tapestry PageLink (called PDFPageLink). All the
component is suppose to do is render the links with the correct
service name.
Referencing the service in the .jwc doesn't seem to work:
<inject property="pageService" object="engine-service:pdfpage"/>
Oddly, it doesn't throw, but it seems to use the regular PageService
to generate the link. Should I be using a different object prefix
in the in my inject declaration? (i.e. something either than "engine-
service"?)
Thanks,
Eric
hivemodule.xml
<contribution configuration-id="tapestry.services.ApplicationServices">
<service name="pdfpage" object="service:PDFPageService"/>
</contribution>
<service-point id="PDFPageService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="pdf.PDFPageService">
<set-object property="exceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="response"
value="infrastructure:response"/>
<set-object property="linkFactory"
value="infrastructure:linkFactory"/>
</construct>
</invoke-factory>
</service-point>