In IntelliJ, I quickstart-mavened a new Tapestry 5 project, added the
Groovy facet, made sure I had the download (groovy 1.5.6), and wrote a
simple Groovy homepage:  Home.groovy:

class Home {
    def getWelcome ()
    {
        "Welcome, Bro!"
    }
}

In the resources package, I mirrored the pages package and put Home.tml:

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <head>
        <title>Groovy-tapestry Home Page</title>
    </head>
    <body>
        <h1>${welcome}</h1>
    </body>
</html>

Under a Jetty run config, visiting the homepage I get

exception
    org.apache.tapestry.internal.services.TransformationException:
Class us.antera.grapestry.pages.Home contains field(s) (metaClass)
that are not private. You should change these fields to private, and
add accessor methods if needed.

Recommendations?

-- 
Bill @ PeoplePad

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

Reply via email to