On Fri, 31 Jan 2014 15:23:03 -0200, Richard Frovarp <rfrov...@apache.org> wrote:

I'm placing annotations on my pages to build the menu. What happens is that I use the ComponentClassResolver to get the page names, and then use that to get the class name. I then use the standard class loader to load the class:
Thread.currentThread().getContextClassLoader().loadClass(className);

Have you tried to use ComponentSource.getPage() to get the page instance and use getClass() to get the class instance? The way you're doing it, you're getting the annotations from the non-transformed class.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to