Paul,
Im not aware of any official docs yet. I am currently using wicket as a presentation tier for ejb3 project, and its pretty easy to integrate.
 
IMHO there are two main areas that need integration: application object, and detachable models for entities.
 
In the constructor's application object i get all needed service bean references or locators and set them as member variables. So now anywhere in your wicket components you can do ((MyApplicationClass)getApplication()).getService().doSomething(); and your getService() can be implemented either as getService() { return service; } or getService() { return serviceLocator.locate(); } you can implement helper funcs in your page subclass to eliminate casting.
 
As far as detachable models go in the onAttach() you can do pretty much the same thing:
 
public void onAttach() {
    obj=((MyApplicationClass)RequestCycle.get().getApplication()).getService().load(....);
}
 
 
Igor
 
 
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, July 29, 2005 8:52 AM
To: [email protected]
Subject: [Wicket-user] Hibernate/EJB3.0

Greetings,

 

I’m evaluating several web frameworks including Wicket for an internal project and I was wondering if there was some documentation on Hibernate or EJB3.0 somewhere that I am missing. I found the wicket-contrib package at http://wicket-stuff.sourceforge.net/ as well as the HibernateObjectModel object in there. I also saw a quick run down on Phil’s weblog: http://jroller.com/page/pKulak/ that seems like a good start but I’m failing to see how it all fits together. Is there an example application (PetStore-ish?) that uses EJB3 or Hibernate available to look at?

 

Overall I really like the direction of this project. Keep up the good work.

 

-Paul

Reply via email to