:
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
.
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
?
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
:
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
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
, 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
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
: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
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
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
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
Check if entityManager.merge(entity) is present?!
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
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
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
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
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
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
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
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
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
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
.
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
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:
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,
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
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
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
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
...
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
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
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,
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
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
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,
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/
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
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
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
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
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
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
-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
.
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
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
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
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
.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
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
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
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
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
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
-
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
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
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
[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
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
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
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
[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
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 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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
+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
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 -
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
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
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
, 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
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
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
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
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
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
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
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
90 matches
Mail list logo