Don't know what the <module id="yourhivemoduleidhere"
version="1.0....."> of your file looks like, but it's also very easy
to add:

<inject property="pageService"
object="service:yourhivemoduleidhere.PDFPageService" />

I've never tried the other injection you mentioned.

You probably have it right, but I was wondering if your contribution
should be using  something more like this:

<contribution configuration-id="tapestry.services.FactoryServices">
                <service name="pdfpage" object="service:PDFPageService"/>
  </contribution>

jesse
On 8/17/05, Eric Schneider <[EMAIL PROTECTED]> wrote:
> 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>
> 
> 
> 
> 
>

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

Reply via email to