Search code examples
tapestry

Inner class in Tapestry pages


Can we declare/create inner class in Tapestry page and access it to the corresponding .tml page? If yes, then how? If not, could anyone explain why?

Need your valuable input guys.


Solution

  • Yes, this works. The inner class is live reloaded but is not instrumented as a component class.

    I've started using this technique to define data objects needed by the page, since I can update the @Validate annotations, or even change the available properties, on the fly.