On 01/31/2014 12:38 PM, Thiago H de Paula Figueiredo wrote:
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.
I have not tried to use that service before now (didn't know it
existed?). It is exactly what I needed to use though. Thanks for the help.
It might be useful to reference that service on the class reloading page:
http://tapestry.apache.org/class-reloading.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org