You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Erik Hatcher <er...@ehatchersolutions.com> on 2003/12/11 15:18:33 UTC
using a page from a library
Perhaps this is simplistic and I'm just not seeing it, but I want to
put pages inside a "library" JAR. So I've done this in the .library
file:
<library-specification>
<page name="SomePage" specification-path="SomePage.page"/>
</library-specification>
Now how do I reference that page from my .application? I want this
page to become the Home page for a special .application.
<page name="Home" specification-path="... ??? ..."/>
I see I can navigate to /app?service=page/library:SomePage just fine.
I'll experiment with overriding things in the engine to make this work.
Thanks,
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: using a page from a library
Posted by Harish Krishnaswamy <hk...@comcast.net>.
As far as I know if you want to give it a different alias you have to specify the full spec path, if
you don't want a different alias you can simply use it with the library prefix ofcourse.
-Harish
Erik Hatcher wrote:
> Perhaps this is simplistic and I'm just not seeing it, but I want to put
> pages inside a "library" JAR. So I've done this in the .library file:
>
> <library-specification>
> <page name="SomePage" specification-path="SomePage.page"/>
> </library-specification>
>
> Now how do I reference that page from my .application? I want this page
> to become the Home page for a special .application.
>
> <page name="Home" specification-path="... ??? ..."/>
>
> I see I can navigate to /app?service=page/library:SomePage just fine.
> I'll experiment with overriding things in the engine to make this work.
>
> Thanks,
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org