Re: Good news about Tapestry 5 in Google App Engine

2009-09-06 Thread Robert Zeigler
There's an open issue for this (TAP5-713) and Christian Köberl has a working patch that seems to be about 98% there... two tests still fail on the command line, although they don't fail when run separately in eclipse. I may have some time to look over the patch (and the corresponding tests)

auto java reloading depends on package?

2009-09-06 Thread Alfonso Quiroga
Hi! I have java classes in root.components... root.pages and root.base as usual. That works perfectly... but I was needing a new class to store in session, just a java bean (WizardBean) and I dropped it in "root.wizard", and auto-reloading does NOT work in that package. I tried to put in root.base.

Re: Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Peter Niederwieser
Well, actually it does compile - if the class is written in Groovy. :-) Have to investigate this further. Anyway, I now understand that @Scope is allowed on a service implementation class, but not on its fields. Thanks for the clarification! Cheers, Peter Thiago H. de Paula Figueiredo wrote: >

Re: Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Thiago H. de Paula Figueiredo
Hi! The @Scope can't be used in fields: it wouldn't compile (@Scope is defined with @Target(value={TYPE,METHOD})). In addition, each service has only one scope, defined in its builder method. From http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html: "Each service has a lifecycle that c

Re: Why does this fail???

2009-09-06 Thread Thiago H. de Paula Figueiredo
Howard once said that sometimes Javassist (used by Tapestry to transform classes) sometimes doesn't handle large event handler methods correctly. Try refactoring your method to reduce it. By the way, a switch inside a switch is not recommended coding: refactor it too. ;) -- Thiago --

Why does Registry.get(Class, AnnotationProvider) ignore @Scope?

2009-09-06 Thread Peter Niederwieser
I'm using Registry.get(Class, AnnotationProvider) to find matching services for fields of an object that is not under Tapestry's control. Everything works fine, except that annotating a field with @Scope("myOwnScope") has no effect. Is this a bug? If not, what can I do to obtain a service with the

Re: Testify Base class com.formos.tapestry.testify.testng.TapestryTest is not in a controlled package

2009-09-06 Thread Paul Field
A quick update... there's a small but important error in my example project structure. I'd put the DayMonthYearDateInputDemo.tml and DayMonthYearDateInputDemo.java files into a package called "...demo.components" and they should be in "...demo.pages". This is the correct structure (I hope :-) ).