You could use a custom WebRequestCycle. I've written a couple, and if you
check out databinder's you can see that its pretty simple to do, plus, (in
databinder) no session is started unless its required.

On Sat, Dec 6, 2008 at 12:38 PM, Azzeddine Daddah <[EMAIL PROTECTED]>wrote:

> Hi guys,
> I want to use Hibernate in my Wicket web application.
> I've found a way to to this by creating:
>
>   - a custom WebApplication to initialise and destroy the SessionFactory.
>   - a custom WebRequestCycle to handle opening and
>   closing/committing connections and transactions
>
> Is this a good way? Are there maybe other/better ways to integrate
> Hibernate
> in Wicket? Examples are welcome :)
>
> P.S. I know that you can use Spring or DataBinder to handle this but I'm
> not
> using them in this project.
>
> Gr. Hbiloo
>

Reply via email to