Looks like you haven't registered your engine service with Hivemind. In
your hivemodule.xml, you'll need something like:
<!-- Construct my service -->
<service-point id="MyService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="mypackage.MyService">
<set-object property="linkFactory"
value="infrastructure:linkFactory"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
</construct>
</invoke-factory>
</service-point>
<!-- Register it as an engine service -->
<contribution configuration-id="tapestry.services.ApplicationServices">
<service name="myservice" object="service:MyService"/>
</contribution>
And in the ServiceLink (a component I've never used, so I'm guessing a
bit here):
<a class="userLink" jwcid="@ServiceLink"
service="engine-service:myservice" parameter="ognl:user.id" />
Hope this helps,
jeff
-----Original Message-----
From: jakedaly [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 04, 2005 5:46 PM
To: [email protected]
Subject: ServiceLink question
Hi there,
I'm trying to create a ServiceLink, but I don't know how to reference it
from my pages.
I have my class - MyService which implements IEngineService, now how do
I link that to my pages? So far I have:
<a class="userLink" jwcid="@ServiceLink" service="ognl:MyService"
parameter="ognl:user.id">
This causes an exception because I does not know where to find
MyService. I have also tried the full name including package names.
If i put an abstract method in my page class:
public abstract MyService getMyService();
an exception is thrown saying "No engine service named 'null' is
available." is thrown.
Im hoping this is just something simple that I'm doing wrong.
All help is highly appreciated.
Cheers.
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=11465#11465
-------------------- m2f --------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]