I'm using Tapestry 4. Here's how I've done it:

WEB-INF/   <-- this is where the web.xml, hivemodule.xml and my
.application files reside

The .application file contains declaration of the pages and components,
thus:
    <page name="users"
specification-path="pages/authorization/users.page"/>
And
    <component-type type="BreadCrumb"
specification-path="components/navigation/BreadCrumb.jwc"/>   

Then I have (for the user page)
WEB-INF/pages/authorization/user.html
WEB-INF/pages/authorization/user.page

And for the breadcrumb component:
WEB-INF/components/navigation/BreadCrumb.html
WEB-INF/components/navigation/BreadCrumb.jwc

Now this keeps the .page/.jwc and .html together, which may or not be
what you want.  If this is what you want you need to ensure you get the
path correct in the .application file.  In T3.0.3 this was managed quite
nicely by Spindle for Eclipse (my IDE of choice) but for Tapestry 4 it
will have to be manual.  

Good Luck, 
David Harvey
Ingenix, Inc.  



 

-----Original Message-----
From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 15, 2006 12:11 PM
To: Tapestry users
Subject: Re: .page/.html/.jwc in different directories

Could you please describe the directory structure that you want to
achieve?

Andreas Bulling wrote:

>Hi everybody,
>
>perhaps some of you have read about the problems I had (and still have)

>following the howto under 
>http://wiki.apache.org/jakarta-tapestry/PagesAndComponentsInWEB-INF
>
>As it seems I can put the .page and .jwc files in different 
>(sub-)directories of WEB-INF but then Tapestry can't find the 
>corresponding templates. :(
>
>So, for me the first question is: Who (besides Kent who tried to help 
>me already -
>thanks!) knows how to achieve this/what do I have to do to be able to 
>put .page/.jwc files in different directories?
>Perhaps the author of the mentioned howto himself (because the howto 
>doesn't work in it's current version)?
>
>The even better question (because more general):
>Who knows how to be able to not only put .page and .jwc but also the 
>.html templates in a different directory?
>
>I've tried to implement a custom ITemplateSourceDelegate (because IMHO 
>this seems to be the right place to start from) but I only get 
>NullPointerExceptions. :(
>
>I don't want to only solve my own problem but I also want to extend the

>Wiki afterwards so I would appreciate your help a lot. Thanks!
>
>Sincerly,
>  Andreas
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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




"Secure Server BSK" made the following
 annotations on 03/15/2006 04:10:48 PM
------------------------------"This e-mail, including attachments, may include 
confidential and/or proprietary information, and may be used only by the person 
or entity to which it is addressed. If the reader of this e-mail is not the 
intended recipient or his or her authorized agent, the reader is hereby 
notified that any dissemination, distribution or copying of this e-mail is 
prohibited. If you have received this e-mail in error, please notify the sender 
by replying to this message and delete this e-mail immediately."
==============================

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

Reply via email to