I think the main thing that causes people problems with this is that
they don't realize you have to move the .html files from WEB-INF/ to
the root web directory.

On 2/13/06, Alan Chandler <[EMAIL PROTECTED]> wrote:
> On Monday 13 February 2006 00:53, Stewart Robertson wrote:
> > I am new Tapestry 4 user and I am trying to standardize on using just the
> > HTML page and Annotations.  My page specifications are empty and I have
> > used the application specification file to indicate the package name for
> > all my Java Page classes as well.  I no longer want to specify any page
> > specification files at all since they are pretty much empty, but tapestry
> > throws an exception when I remove them.  Is there any way to configure
> > tapestry 4 so that you do not have to specify page specifications.  Thanks
> > for the help and by the way I am very impressed by Tapestry 4.........
>
> It certainly works, I have three applications running tapestry on my web site
> (blog, famtree and akcmoney) all of which don't use them (I occassionally
> have a component spec when I don't need a Java class).  You are welcome to
> take a look at them as examples, the code is either in "git" repositories, or
> if you don't know what that is and don't use it, tarballs of the code at
> snapshot points exist in the files download section (go to Software Corner of
> the web site from the url in my signature).
>
>  The application specification sits in the WEB-INF directory and defines the
> class packages location as the example below (from blog) shows (apologies for
> mail word wrap)
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE application PUBLIC
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
>
> <!-- Copyright (c) 2006 Alan Chandler, licenced under the GPL (see LICENCE.txt
> file in META-INF directory) -->
>
> <application name="blog" engine-class="org.apache.tapestry.engine.BaseEngine">
>     <description>My Blog</description>
>         <meta key="org.apache.tapestry.page-class-packages" >
>                 uk.org.chandlerfamily.blog.tapestry.pages
>         </meta>
>         <meta key="org.apache.tapestry.component-class-packages">
>                 uk.org.chandlerfamily.blog.tapestry.components
>         </meta>
>         <meta key="org.apache.tapestry.accepted-locales">
>                 en
>         </meta>
>         <meta key="org.apache.tapestry.enable-reset-service">
>                 true
>         </meta>
>         <library id="Contrib"
> specification-path="/org/apache/tapestry/contrib/Contrib.library" />
>         <library id="akc"
> specification-path="/uk/org/chandlerfamily/tapestry/components/akc.library" />
> </application>
>
>
> I am using exclipse (with the wtp package) to develop so although the java
> classes will ultimately be under WEB-INF/classes, the WEB-INF itself is under
> the Webcontent directory and java sources under the JavaSources directory in
> the packages defined above.
>
> The html templates for pages are at the top level in Webcontent, component
> templates are in the WEB-INF directory.
>
> my hivemodule.xml file is in the META-INF directory under Javasource.
>
> --
> Alan Chandler
> http://www.chandlerfamily.org.uk
> Open Source. It's the difference between trust and antitrust.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
~chris

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

Reply via email to