--
You received this message because you are subscribed to the Google Groups "warp-core" group.
To post to this group, send email to warp...@googlegroups.com.
To unsubscribe from this group, send email to warp-core+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/warp-core?hl=en.
To unsubscribe from this group, send email to warp-core+...@googlegroups.com.
Thanks for all the input guys it was very helpful in understanding the platform and finding the fix.
In the end the combination of two problems turned out to be:
1) Wicket's guice component injector indeed cannot handle @Transactional
2) My @Entity s were not annotated correctly - this became evident when I stripped it to the base and got to the core of the errors.
Things are now working smoothly and the resulting code is as clean and slick as I had imagined it would be.
Keep up the great work!
Andrew
P.S. how many people are migrating to guice-persist or have a plan of doing so in the short term?
2010/9/24 Andrew Williams <and...@loc8solutions.com>:
Andrew,Wicket's component injector only handles @Inject annotated methods. It isn't sophisticated enough to create the proxy required for @Transactional. I'm guessing that you're creating the page with the "new" operator instead of with Injector.getInstance(). I suggest moving your @Transactional methods onto a DAO object, and @Inject'ing that into your page. Wicket's component injector will then create the DAO through the injector, allowing the transaction-creating proxy to be created.