Re: Annotations and ComponentRequestFilter Problem

2010-10-25 Thread shinlang
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

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Thiago H. de Paula Figueiredo
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

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Taha Hafeez
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: > >

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread shinlang
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

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread shinlang
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

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Thiago H. de Paula Figueiredo
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

Re: Annotations and ComponentRequestFilter Problem

2010-10-22 Thread Taha Hafeez
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

Re: Annotations and translators

2006-10-04 Thread Mael Caldas
hehehehe thanks! :) On 10/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Not dumb, that's what this list is for. :) On 10/4/06, Mael Caldas <[EMAIL PROTECTED]> wrote: > > SORRY > Such a dumb I'm! > The binding declaration was wrong... > ;) > > Mael > > On 10/4/06, Mael Caldas <[EMAIL PROTE

Re: Annotations and translators

2006-10-04 Thread Jesse Kuhnert
Not dumb, that's what this list is for. :) On 10/4/06, Mael Caldas <[EMAIL PROTECTED]> wrote: SORRY Such a dumb I'm! The binding declaration was wrong... ;) Mael On 10/4/06, Mael Caldas <[EMAIL PROTECTED]> wrote: > > Hi, > > I wan to to declare a DatePicker component with annotations. I j

Re: Annotations and translators

2006-10-04 Thread Mael Caldas
SORRY Such a dumb I'm! The binding declaration was wrong... ;) Mael On 10/4/06, Mael Caldas <[EMAIL PROTECTED]> wrote: Hi, I wan to to declare a DatePicker component with annotations. I just passed the component from .page, to java the corresponding java class, but I got a parse exception

Re: annotations

2006-05-26 Thread Andrei Chiritescu
, May 26, 2006 11:55 AM To: Tapestry users Subject: Re: annotations I also tried to use a component that didn't have a jwc file and it seems that it cannot find the html template. With the following error : Could not find template for component SomeComponent in locale en. Does anyone kno

RE: annotations

2006-05-26 Thread James Carman
t; > > > So, tapestry will look in those packages for pages/components. Hope that > helps. > > James > > -Original Message- > From: Alex Kartashev [mailto:[EMAIL PROTECTED] > Sent: Friday, May 26, 2006 9:41 AM > To: Tapestry users > Subject: Re: annotations

Re: annotations

2006-05-26 Thread Andrei Chiritescu
From: Alex Kartashev [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 9:41 AM To: Tapestry users Subject: Re: annotations I believe you still you need to have a component spec, albeit an empty one. -Alex Dimitri Taranov wrote: I am trying to use annotations. To start, I deleted a v

RE: annotations

2006-05-26 Thread Dimitri Taranov
Thx, that worked -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Friday, May 26, 2006 9:44 AM To: 'Tapestry users' Subject: RE: annotations You don't need an empty spec, but you do need to tell tapestry where to find your page/component cl

RE: annotations

2006-05-26 Thread James Carman
EMAIL PROTECTED] Sent: Friday, May 26, 2006 9:41 AM To: Tapestry users Subject: Re: annotations I believe you still you need to have a component spec, albeit an empty one. -Alex Dimitri Taranov wrote: >I am trying to use annotations. To start, I deleted a very simple >component specif

Re: annotations

2006-05-26 Thread Alex Kartashev
I believe you still you need to have a component spec, albeit an empty one. -Alex Dimitri Taranov wrote: I am trying to use annotations. To start, I deleted a very simple component specification and instead added an annotation @ComponentClass. Do I just add annotations compile and deploy or d