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)
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.
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:
>
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
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
--
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
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 :-) ).