Getting my hands on a WAR to see how you integrated hibernate would be
great. I'd be very appreciative.

Unfortunately, I am not starting from scratch and I am trying to see how
well wicket grafts onto an existing project that has many DAO's that
return POJO beans. We are currently moving them into EJB3 objects and
the whole process is still quite new to me.

I would be interested to see where/how you are building the Hibernate
(EntityManager?) connection. From what Igor is saying it sounds like the
connection is built up in the Wicket application and the objects are
loaded on the attatch events. Perhaps we can flesh out this aspect of
wicket in the wiki a bit more.

-Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak
Sent: Friday, July 29, 2005 12:30 PM
To: [email protected]
Subject: Re: [Wicket-user] Hibernate/EJB3.0

I'll be committing a new version of CDApp shortly using rewritten
databinding and Hibernate3 integration. If you're not into the whole
CVS thing, I can post a WAR somewhere so that you can get a feel for
it.

On 7/29/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>  
> 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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to