On Mon, 13 Jan 2014 22:20:41 -0200, Daniel Jue <teamp...@gmail.com> wrote:
Thanks Thiago!
My pleasure!
Now I want to apply it to all my pages and components in my web module
using @Match("*"). It causes a recursion error since it sees the
services in the DAO module which are needed to create the transaction!
Pages and components aren't services, so I don't think using @Match("*")
will work for them. I guess you'll need to write a
ComponentClassTransformWorker to advise page and component methods. See
the source of CachedWorker for an example.
One more thing: When I have one of these Neo4J-backed domain objects
(let's say User.class), I might have something like this in a page:
@Property
private User theUser;
In my template, if I do ${theUser.firstName}, will the transactional
advise be applied to the automatically constructed getters and setters
for that
property?
No.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org