> So you have html files in WEB-INF/classes/somePathToHtml where you have
> classes?

Example :

context/pages/Main.html
context/WEB-INF/classes/your/package/name/pages/Main.java


With the following line in my .application xml file :

<meta key="org.apache.tapestry.page-class-packages" value="your.package.name, 
your.package.name.pages"/>


To access the page, I then use something like :

<span jwcid="@PageLink" page="pages/Main">

In the template.


Tapestry will search for pages.Main in the package list given in the 
application file. It will match the "your.package.name"+"pages.Main" java 
class. This is also true for subdirectories :

context/pages/sub1/sub2/File.html
should match :
"your.package.name"+"pages.sub1.sub2.File" java Class


This avoids me to have any xml descriptor for pages. There is also no 
declaration for any page in the .application xml.


I still have two problems to solve :
- How can I inject assets into pages ? I didn't find a way to do this without 
explicitly declaring them into the .page descriptor :-(

- How can I define search path into WEB-INF for pages ? Currently, the search 
path includes context's root, but not WEB-INF root. That means exposing some 
files (.page for example) if the page-specification is not defined into 
.application.


I'll post a new help request later on those if I can't find a clue.

Regards,

Sylvain COUTANT

ADVISEO
http://www.adviseo.fr/
http://www.open-sp.fr/



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

Reply via email to