I think it must be something like that:
@InjectObject("service:Page")
public abstract PageService getPageService();
@InjectObject("infrastructure:linkFactory")
public abstract LinkFactory getLinkFactory();
Take a look at tapestry docs about property injection... you can inject via
@InjectObject as well as using *.page file...
You may also want to take look at the other examples of injecting such
properties -> in tapestry-4.0*.jar/META-INF/ there hivemodule.xml of
tapestry, look how they do this for tapestry...
You do not need to do something in your hivemodule.xml... all needed
tapestry already did
Good luck,
and Happy New Year:)
2005/12/31, Jean-Eric Cuendet <[EMAIL PROTECTED]>:
>
>
> > Take a look at the PageService.getLink() method implementation...
>
> Thanks, that could help. Could you please explain how to Inject this
> Object into my page?
> Something like:
>
> @InjectObject("service:<what_to_put>")
> public abstract PageService getPageService();
>
> What should be what_to_put ?
> And need I to define it in *my* hivemodule.xml? Or is it already done by
> Tapestry?
> Thanks.
> -jec
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>