Re: wicket and JPA

2013-06-14 Thread Sven Meier
: Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next question is more JPA oriented, but nevertheless: Lets say i have class

Re: wicket and JPA

2013-06-14 Thread heapifyman
? On 06/13/2013 02:52 PM, Sven Meier wrote: Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web

Re: wicket and JPA

2013-06-14 Thread Boris Brinza
: Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next

Re: wicket and JPA

2013-06-14 Thread Boris Brinza
of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next question is more JPA

Re: wicket and JPA

2013-06-14 Thread Sven Meier
, Sven Meier wrote: Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
you are right but if you trying to get the entity after detach, you get the cashed version of this object, also you don't have the changes in the database, even if you merge, but if you refresh your entity you get a new updated object with all changes that were made, and the changes will be

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next question is more JPA oriented, but nevertheless: Lets say i have class BaseDetailPageT extens BaseDO

wicket and JPA

2013-06-13 Thread Boris Brinza
Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next question is more JPA oriented, but nevertheless: Lets say i have class BaseDetailPageT extens BaseDO extends WebPage { protected T

Re: wicket and JPA

2013-06-13 Thread Sven Meier
Please read 9.6 Detachable models of the Wicket Free Guide and come back with your questions. Sven On 06/13/2013 01:20 PM, Boris Brinza wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink

Re: wicket and JPA

2013-06-13 Thread Boris Brinza
wrote: Hello to all, I have some fundamental issues with integration of jpa into wicket. I develop web application using wicket 6 and JPA (eclipselink). Maybe next question is more JPA oriented, but nevertheless: Lets say i have class BaseDetailPageT extens BaseDO extends WebPage { protected T

Re: wicket and JPA

2013-06-13 Thread Andrey V. Panov
Check if entityManager.merge(entity) is present?!

Re: Wicket with JPA and container managed transactions

2012-10-09 Thread Dieter Tremel
Am 08.10.2012 17:37, schrieb Martin Grigorov: The JNDI lookup just done for you in normal JavaEE setup as well. So I think your code is OK. Thank you Martin for your useful answers. I posted a little more generic solution of an AbstractEjbModel in my blog in

Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Moving from JSF to Wicket 6.1.0 I am used to having all JPA operations in a EJB facade to use the container's (Glassfish 3.2.1) transaction management. I use and know wicket-cdi for injection, which works fine. Unfortunately, if I inject an EJB in a wicket page, the serialization checks of wicket

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi, Are you aware of https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent ? https://github.com/wicketstuff/core/wiki/Java-EE-Inject On Mon, Oct 8, 2012 at 4:05 PM, Dieter Tremel tre...@tremel-computer.de wrote: Moving from JSF to Wicket 6.1.0 I am used to having

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread heapifyman
As far as I understood you have two possibilities: 1. Inject your EJB into a CDI component and inject that component into your wicket pages using @Inject annotation. That should solve the serialization problem but you will have an additional layer. 2. Use javaee-inject from wicketstuff [1] to

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Am 08.10.2012 15:14, schrieb Martin Grigorov: Are you aware of https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/javaee-inject-parent ? Hi Martin, I know this lib an had a look at it. If I am right, it is just another way of injection. In my running example of implementing a data

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi Dieter, javaee-inject uses wicket-ioc and injects a serializable Proxy instead of the EJB bean itself that was returned by the container. This is the same as how Spring and Guice work. See the response of heapifyman. The simplest would be use only CDI in your Wicket code. Hide any usage of

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
Am 08.10.2012 15:34, schrieb Martin Grigorov: javaee-inject uses wicket-ioc and injects a serializable Proxy instead of the EJB bean itself that was returned by the container. This is the same as how Spring and Guice work. See the response of heapifyman. The simplest would be use only CDI in

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Dieter Tremel
I found a different solution I would like to post for discussion: I encapsulated the Facade in a LoadableDetachableModel like this: /** * Model for JPA facade beans. * @author Dieter Tremel tre...@tremel-computer.de */ public class EntityFacadeModelE extends JPAEntity extends

Re: Wicket with JPA and container managed transactions

2012-10-08 Thread Martin Grigorov
Hi, The JNDI lookup just done for you in normal JavaEE setup as well. So I think your code is OK. On Mon, Oct 8, 2012 at 6:24 PM, Dieter Tremel tre...@tremel-computer.de wrote: I found a different solution I would like to post for discussion: I encapsulated the Facade in a

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread hfriederichs
is a perfect application of good use of howoftenness. How many 'layers of decoupling' have been written that turned out to be useless... Had one only thought of howoftenness... Hans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martin Grigorov
. Apart of that, doing manual transaction management is just silly. Better let the layers to do this for you instead of spreading such kind of logic all over your code. Hans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:29, Martin Grigorov wrote: On Wed, May 16, 2012 at 11:18 AM, hfriederichsh.friederi...@ohra.nl wrote: Just an afterthought - I can't figure out the English word for the Dutch 'nabrander'. As it happens, my afterthought has to do with another (non-existing) Dutch word:

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martin Grigorov
On Wed, May 16, 2012 at 11:42 AM, Tom Eugelink t...@tbee.org wrote: On 16-5-2012 11:29, Martin Grigorov wrote: On Wed, May 16, 2012 at 11:18 AM, hfriederichsh.friederi...@ohra.nl  wrote: Just an afterthought - I can't figure out the English word for the Dutch 'nabrander'. As it happens,

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Tom Eugelink
On 16-5-2012 11:52, Martin Grigorov wrote: Using a resource bundle for i18n has this big benefit for me: all my translations are in *one* place. But if the app does not have translations as a requirement? But this is your app... Ignore me. That would be unfriendly :-) Tom

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread Martijn Dashorst
Just an FYI: there is no need to add Label's for internationalization purposes per se: wicket:message key=... / will work wonders for this kind of stuff. But I agree that for 5 users for an internal app where folks really are dutch, even that would be overkill when compared to label

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-16 Thread hfriederichs
having less and less 'scattered' functionality, like hidden business rules in vetro-actions. To be short: we didn't need it, and we better had not done it. Hans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4641131

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-14 Thread hfriederichs
It isn't; the database requirements are. I expected to get that done in an hour or so, so that I could quickly continue with the more advanced and complex functions. In the end it cost me a day. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i

RE: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread hfriederichs
... In my company, JPA is the way to go. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4630088.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread dhar_ar
To: users@wicket.apache.org Reply-To: users@wicket.apache.org Subject: RE: Wicket and JPA: iplease/i a simple way to go All standards are equal, but some (like JPA) are more equal than others, that's what you mean? Well, a short look at the history of computing shows that technologies with obvious

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread Tom Eugelink
Chiming in; As it happens I'm currently working on a NoSQL (Cassandra) project and found a JPA implementation for Cassandra (http://code.google.com/p/kundera/). Currently JPA is the most used persistency API in Java, allowing for binding with RDBMS, XML, NoSQL. I decided not to use it, BTW,

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread hfriederichs
it is JPA, and it will be so for ever and ever, in line with the company's daily definition of 'ever and ever'. Regards, Hans -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4630326.html Sent from the Users forum

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread James Carman
On Sun, May 13, 2012 at 7:19 AM, hfriederichs h.friederi...@ohra.nl wrote: Tom, I couldn't agree more, you hit the spot. Indeed it's all about balance, don't over- (nor under-)architecture things. My application will be used by maybe 5 people, and requires some very simple CRUD-implemetations

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread Tom Eugelink
On 2012-05-13 13:49, James Carman wrote: If your application is that simple, check out Wicketopia. Always interesting, but the information (http://wicketopia.sourceforge.net/) is, ah, lacking? :-) Tom - To unsubscribe,

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread James Carman
Patches and contributions are welcome. On May 13, 2012 10:55 AM, Tom Eugelink t...@tbee.org wrote: On 2012-05-13 13:49, James Carman wrote: If your application is that simple, check out Wicketopia. Always interesting, but the information (http://wicketopia.** sourceforge.net/

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread James Carman
There is a sample application by the way. It'll give you a good idea of the capabilities. On May 13, 2012 12:18 PM, James Carman jcar...@carmanconsulting.com wrote: Patches and contributions are welcome. On May 13, 2012 10:55 AM, Tom Eugelink t...@tbee.org wrote: On 2012-05-13 13:49, James

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread Tom Eugelink
Where? I get almost empty pages. About Wicketopia Example Application A Rapid Application Development (RAD) library for the Apache Wicket framework On 2012-05-13 18:44, James Carman wrote: There is a sample application by the way. It'll give you a good idea of the capabilities. On May

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-13 Thread James Carman
Use the source, Luke! The code is hosted at github currently. https://github.com/jwcarman/Wicketopia On May 13, 2012 1:07 PM, Tom Eugelink t...@tbee.org wrote: Where? I get almost empty pages. About Wicketopia Example Application A Rapid Application Development (RAD) library for the

Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
Hello, I'm using wicket 1.5.4, and I tried various approaches in using Wicket and JPA (using webshere/open jpa). I looked at several posts here, but I keep ending up writing /more/ boiler plate code and configuration than with plain old jdbc. So. I don't want to write factories. I don't want

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Josh Kamau
You dont want to use cdi either? On 12 May 2012 12:22, hfriederichs h.friederi...@ohra.nl wrote: Hello, I'm using wicket 1.5.4, and I tried various approaches in using Wicket and JPA (using webshere/open jpa). I looked at several posts here, but I keep ending up writing /more/ boiler plate code

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4628598.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Josh Kamau
-stuff. That's how it should be, IMHO. Of course, the CDI-blog goes with the usual great-gratitude-comments of developers who couldn't figure it out either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4628598.html

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Igor Vaynberg
. whats wrong with that? -igor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4628598.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
need for something that's so simple and basic... I wonder if anyone has ever coined the phrase 'boiler plate xml' or 'boiler plate components'. Maybe a quiz is a good idea. The Question is: fetch one row from a straightforward table in let's say an onclick of a wicket button, using jpa

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread James Carman
xml' or 'boiler plate components'. Maybe a quiz is a good idea. The Question is: fetch one row from a straightforward table in let's say an onclick of a wicket button, using jpa. The respondent that has the simplest solution gets eternal fame. Of course, the CDI-blog goes with the usual great

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
James, what is technology specific about JPA? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629309.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread James Carman
.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629309.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Igor Vaynberg
a straightforward table in let's say an onclick of a wicket button, using jpa. The respondent that has the simplest solution gets eternal fame. class JpaApplication extends WebApplication { EntityManagerFactory jpa; init() { super.init(); jpa=Persistence.createEntityManagerFactory(demo); } static

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
technology specific about JPA. Isn't it just a Java API like JMS or JaxWS? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629356.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread James Carman
On Sat, May 12, 2012 at 3:42 PM, hfriederichs h.friederi...@ohra.nl wrote: And I think I´m missing your point: I still don't get what's technology specific about JPA. Isn't it just a Java API like JMS or JaxWS? Yes, JPA is *an* API, but it's not the only persistence API out there. If Wicket

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread hfriederichs
etc... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629413.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe

Re: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Igor Vaynberg
with WebSphere is another matter; let's call it a challenge... I'll consider all the things mentioned here, thanks to you all. Regards etc... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to-go-tp4628562p4629413.html

RE: Wicket and JPA: iplease/i a simple way to go

2012-05-12 Thread Chris Colman
- wicket.1842946.n4.nabble.com/Wicket-and-JPA-i-please-i-a-simple-way-to- go- tp4628562p4629309.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread JulianS
I am experiencing exactly the problem outlined in the subject of this post, and I would really appreciate any help I can get, as I am under a deadline. It's the first time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket dataprovider that looks like

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread JulianS
time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket dataprovider that looks like this (I've simplified it a bit): public abstract class FooDataProvider extends SortableDataProvider { private static final long serialVersionUID = 1L

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread James Perry
[EMAIL PROTECTED] wrote: I am experiencing exactly the problem outlined in the subject of this post, and I would really appreciate any help I can get, as I am under a deadline. It's the first time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread Igor Vaynberg
under a deadline. It's the first time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket dataprovider that looks like this (I've simplified it a bit): public abstract class FooDataProvider extends SortableDataProvider { private static

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread JulianS
a deadline. It's the first time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket dataprovider that looks like this (I've simplified it a bit): public abstract class FooDataProvider extends SortableDataProvider { private static final long

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread JulianS
Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket dataprovider that looks like this (I've simplified it a bit): public abstract class FooDataProvider extends SortableDataProvider { private static final long serialVersionUID = 1L; @SpringBean

Re: Wicket + spring + jpa/ hibernate = lazy load exception

2008-11-03 Thread Igor Vaynberg
[EMAIL PROTECTED] wrote: I am experiencing exactly the problem outlined in the subject of this post, and I would really appreciate any help I can get, as I am under a deadline. It's the first time I'm using Wicket with JPA, and I just don't understand why this isn't working. I have a Wicket

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread Lutz Müller
of this thread.. I think it could be something about missing usage of loadabledetachable model..? Korbinian Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread Michael Sparer
the outcome of this thread.. I think it could be something about missing usage of loadabledetachable model..? Korbinian Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread Igor Vaynberg
wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity tree

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread Nino Saturnino Martinez Vazquez Wael
of this thread.. I think it could be something about missing usage of loadabledetachable model..? Korbinian Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread Timo Rantalaiho
On Thu, 09 Oct 2008, Lutz Müller wrote: It might work if you dont have any ajax on your page. otherwise each ajax call happens in a new request and causes your domain object to be retrieved from the database. this way you lose every change made to your object. writing all changes to

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-10-09 Thread James Carman
Are we talking about a wizard here? What if you used something like this: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/wicketopia/src/main/java/org/wicketopia/model/proxy/ProxyModelManager.java Basically, the models cache their values until you call commit on the

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-30 Thread Nino Saturnino Martinez Vazquez Wael
missing usage of loadabledetachable model..? Korbinian Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA

wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity tree a bit, based

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Nino Saturnino Martinez Vazquez Wael
load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity tree a bit, based on the needs of the user (preloading wont work, as i dont

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity tree a bit, based on the needs of the user (preloading wont work, as i dont know

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
On Mon, Sep 29, 2008 at 7:14 AM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: However, the OpenSessionInViewFilter will not work with wicket, even if mapped to /* in the web.xml Huh? We use it and it works just fine. By the way, have you tried OpenEntityManagerInViewFilter if you're

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Michael Sparer
Bachl - privat wrote: Hi, I'm currently struggling with the famous lazy load exception under spring + jpa with wicket. The problem is, in my case, that i pull an entity from the database using a spring-bean (@SpringBean) and JPA (hibernate). Then in the wicket class i need to walk the entity

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
really? - I tried it but... would you please be so nice and post the part of the web.xml where it is mapped and the corresponding part of the spring-application.xml ? what wicket version are you on? what runtime (Tomcat 6?)? Best, Korbinian James Carman schrieb: On Mon, Sep 29, 2008 at

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
We don't use JPA at work, but we use OSIV (we're using straight hibernate). Anyway, for the JPA configuration, you can look at: https://wicketopia.svn.sourceforge.net/svnroot/wicketopia/trunk/jpa-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml On Mon, Sep 29,

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread Korbinian Bachl - privat
Hmm, I copied it to web.xml, but result is: 2008-09-29 18:07:24,125 ERROR org.hibernate.LazyInitializationException - failed to lazily initialize a collection of role: de.xxx....xxx., no session or session was closed org.hibernate.LazyInitializationException: failed to lazily

Re: wicket + spring + jpa/ hibernate = lazy load exception

2008-09-29 Thread James Carman
Would you be able to create a quickstart that exhibits this behavior? If you want, you can use the JPA archetype in wicketopia (the code I referenced) to set everything up for you automatically. On Mon, Sep 29, 2008 at 12:21 PM, Korbinian Bachl - privat [EMAIL PROTECTED] wrote: Hmm, I copied

Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
+flex+blazeds in the works, but it is far from perfect: http://code.google.com/p/wicket-flex-blazeds/ On Wed, Aug 6, 2008 at 5:25 PM, francisco treacy [EMAIL PROTECTED] wrote: hi, i need to develop a project with wicket + spring + jpa. i'm not used lately to this setup, so i tried to build

Re: wicket + spring + jpa reference example?

2008-08-07 Thread shetc
Buy Wicket In Action from Manning Publishers -- it has a useful Wicket + Spring + Hibernate example. Replace Hibernate with the JPA equivalents. -- View this message in context: http://www.nabble.com/wicket-%2B-spring-%2B-jpa-reference-example--tp18859884p18876793.html Sent from the Wicket -

Re: wicket + spring + jpa reference example?

2008-08-07 Thread francisco treacy
i bought it last year :) and it's excellent, btw. i just wanted a quick no-brainer example and wicket-lolite could have been the perfect answer. thanks francisco On Thu, Aug 7, 2008 at 8:25 PM, shetc [EMAIL PROTECTED] wrote: Buy Wicket In Action from Manning Publishers -- it has a useful

wicket + spring + jpa reference example?

2008-08-06 Thread francisco treacy
hi, i need to develop a project with wicket + spring + jpa. i'm not used lately to this setup, so i tried to build it up, not without some trouble. so my question here is: do you know a current good wicket + spring + jpa reference/example? earlier today i checked out qwicket, but there's some

Re: wicket + spring + jpa reference example?

2008-08-06 Thread francisco treacy
it's me again. minutes after the post i found my way out of that applicationContext maze... but thanks anyway! francisco On Wed, Aug 6, 2008 at 11:25 PM, francisco treacy [EMAIL PROTECTED] wrote: hi, i need to develop a project with wicket + spring + jpa. i'm not used lately to this setup

Re: wicket + spring + jpa reference example?

2008-08-06 Thread Ryan Gravener
, 2008 at 5:25 PM, francisco treacy [EMAIL PROTECTED] wrote: hi, i need to develop a project with wicket + spring + jpa. i'm not used lately to this setup, so i tried to build it up, not without some trouble. so my question here is: do you know a current good wicket + spring + jpa reference

Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Nino Saturnino Martinez Vazquez Wael
I know this is not completely related. But here goes anyway. I have an application with several different flows. If I switch from extended to transaction, suddenly the values in my form aren't save to the database(but they are saved in memory), I use spring to instantiate entitymanager and

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Meindert Deen
my 2 cents, don't know if this is your problem: The transaction based entity manager only commits if the update of the data is within a transaction. So you must wrap your update in a transaction (you said you used Spring, so you can configure this in your Spring xml or use the annotation based

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Nino Saturnino Martinez Vazquez Wael
Any help apreciated...:) These lines should take care of transaction wrapping right?: From my spring xml: bean id=txManager class=org.springframework.orm.jpa.JpaTransactionManager property name=entityManagerFactory ref=entityManagerFactory / /bean

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Nino Saturnino Martinez Vazquez Wael
Hmm thinking over this again. I thought that after you persisted something, JPA would handle it for you. So what you are saying are that if I get a object from the persistance manager, and then update something directly on the POJO i would then have to begin a transaction and commit it? So

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Meindert Deen
As I understand it, then your second email is correct. If you don't run the getting and updating of your components in a transaction, your Entity gets decoupled (JPA default behavior is to decouple the Entities outside of a transaction), so it will not save any updates done outside of the

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Meindert Deen
FYI: Reference blog post: http://weblogs.java.net/blog/davidvc/archive/2007/04/jpa_and_rollbac.html On Wed, Apr 2, 2008 at 3:55 PM, Meindert Deen [EMAIL PROTECTED] wrote: As I understand it, then your second email is correct. If you don't run the getting and updating of your components in a

Re: Wicket and JPA(EntityManager PersistenceContextType)?

2008-04-02 Thread Nino Saturnino Martinez Vazquez Wael
thanks.. I think i'll continue on OpenJPA user forum Meindert Deen wrote: FYI: Reference blog post: http://weblogs.java.net/blog/davidvc/archive/2007/04/jpa_and_rollbac.html On Wed, Apr 2, 2008 at 3:55 PM, Meindert Deen [EMAIL PROTECTED] wrote: As I understand it, then your second email