Hi Taha, Hi Thiago,
Thanks a lot for your reply, it's working perfectly! And besides, this
surely gave me some more basic understanding on how tapestry works.
Have a nice day,
cheers,
Sascha
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Annotations-and-ComponentRequest
On Fri, 22 Oct 2010 12:10:38 -0200, Taha Hafeez
wrote:
Just move the annotation out of the pages package.
This is one of the most common pitfalls Tapestry beginners fall: never
never never put something in a pages, components or mixins package that
isn't a page, component or mixin.
A
Just move the annotation out of the pages package.
Although I don't know the internals of tapestry that well but I think
because pages and components packages have live reloading they may be loaded
from different classloaders...
regards
Taha
On Fri, Oct 22, 2010 at 7:19 PM, shinlang wrote:
>
>
Hi Thiago,
thanks for your reply. I will certainly give that a try, but i won't be in
the office until monday. I'm not sure, if i stated my problem right (as i'm
quite new to tapestry). I am not dynamically adding the annotation to the
class, as far as i can see, so getting it from the component
Hi taha,
you can find an example project here:
http://satansoft.de/tapestry/annotationtest.zip
It uses a very simple setup to show the problem. In TestFilter.java in the
annotationTest() method you can see that the upper test case is not working,
but the lower case is working well.
Regards,
Sas
On Fri, 22 Oct 2010 10:25:03 -0200, shinlang
wrote:
Hi,
Hi!
I have of course read the article at
http://tapestryjava.blogspot.com/2009/12/securing-tapestry-pages-with.html,
and i can't see any difference:
Component page = componentSource.getPage(pageName);
if (! page.getClass().isAnnotat
Can you share the code
taha
On Fri, Oct 22, 2010 at 5:55 PM, shinlang wrote:
>
> Hi,
>
> i'm having a problem using custom annotations and a ComponentRequestFilter.
> I am defining my own class annotation (TestAnnotation) and a test class
> (Index) that uses this annotation.
>
> In my Component