You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leung Ming Sum <bl...@yahoo.com.hk> on 2004/11/04 09:35:52 UTC

How PageLink Link to Different Directory?

This is my source structure:
-web-inf
 Home.html PageLink
 Home.page
 -subFolder
   Page1.html
   Page1.page


I want to link from Home.html to /subFolder/Page1.html
through PageLink component..
I have already try it in many method..
such as 
<static-binding
name="page">/subFolder/Home</static-binding>

but it still not successful..
Is there any method to do this??
Please help me...





__________________________________
網上收音機、Games、Webcam、語音對話...
全新 Yahoo! Messenger   
http://messenger.yahoo.com.hk/

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: How PageLink Link to Different Directory?

Posted by Todd O'Bryan <to...@mac.com>.
To clarify what Erik said (I was so excited that I could finally answer 
a question, but he beat me to it.) in case you're as much a newbie as I 
am...

In your .application file, you need to add a <page> tag for every page 
that's in a sub-folder.

For your example, add

<page name="Page1" specification-path="subFolder/Page1.page"/>

to that file. Now

<a href="#" jwcid="@PageLink" page="Page1">blah</a>

should work, no problem.

The only current downside (other than having to add all the pages to 
the .application file) is that you can't have multiple pages with the 
same name.

HTH,
Todd

On Nov 4, 2004, at 3:35 AM, Leung Ming Sum wrote:

> This is my source structure:
> -web-inf
>  Home.html PageLink
>  Home.page
>  -subFolder
>    Page1.html
>    Page1.page
>
>
> I want to link from Home.html to /subFolder/Page1.html
> through PageLink component..
> I have already try it in many method..
> such as
> <static-binding
> name="page">/subFolder/Home</static-binding>
>
> but it still not successful..
> Is there any method to do this??
> Please help me...
>
>
>
>
>
> __________________________________
> 網上收音機、Games、Webcam、語音對話...
> 全新 Yahoo! Messenger
> http://messenger.yahoo.com.hk/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>

Re: How PageLink Link to Different Directory?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Tapestry 3.0 does not support hierarchical page structure.  All pages 
are in a flat space.  However, you can lay out your pages anyway you 
like, but you must declare them as pages in your .application at that 
point.  Page links in your case would be simply to Page1, but in the 
.application, you'd map it to /WEB-INF/subFolder/Page1.page.

The alternative, if you really wanted to get fancy with hierarchy and 
separation, is to package separate sets of pages into a Tapestry 
.library.

	Erik


On Nov 4, 2004, at 3:35 AM, Leung Ming Sum wrote:

> This is my source structure:
> -web-inf
>  Home.html PageLink
>  Home.page
>  -subFolder
>    Page1.html
>    Page1.page
>
>
> I want to link from Home.html to /subFolder/Page1.html
> through PageLink component..
> I have already try it in many method..
> such as
> <static-binding
> name="page">/subFolder/Home</static-binding>
>
> but it still not successful..
> Is there any method to do this??
> Please help me...
>
>
>
>
>
> __________________________________
> 網上收音機、Games、Webcam、語音對話...
> 全新 Yahoo! Messenger
> http://messenger.yahoo.com.hk/
>
> ---------------------------------------------------------------------
> 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