I believe he's reusing a single java class between multiple pages.

That's an approach I steer away from -- I like to have each class model one specific page, and act as a facade to the more reusable model objects. However, it's a valid approach.

Chris -- I don't believe it's possible to map multiple pages/ templates to the same Java class using annotations. You could, however, make an empty subclass of your shared page class for each individual page. That should work, and IMO is a valid design.

Cheers,

Paul


On Dec 29, 2005, at 1:21 PM, Alexandru Dragomir wrote:

Hi
Don't know exactly how to do that but as i understood , one of
the recomended practices would be to keep the same name for the template
and the java file.

alex


On 12/29/05, Chris Chiappone <[EMAIL PROTECTED]> wrote:

Hi, I am trying to remove most of my .page files and add annotations
to my classes. I am curious how you reference the java class for that
page.  I know if the class and the html page have the same name it
works.  What do you need to do if you have pages that use the same
java class?

--
~chris

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



_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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

Reply via email to