You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Arnaud Garcia <ar...@imagemed-87.com> on 2010/04/24 10:24:19 UTC

Wicket Cayenne

Hello,

Does anyone knows how to set up Cayenne for wicket ?
In my WicketPage I have :
 private DataContext ctxt = (DataContext)
DataContext.getThreadObjectContext();

but, I don't think it is the good way, since I suppose wicket will
serialized the full DataContext... (maybe I can put the
getThreadObjectContext() in a method or constructor to avoid the
serialization...)
-> Well, I don't know how what is the good way  ;-)



thanks,

Arnaud

Re: Wicket Cayenne

Posted by Igor Vaynberg <ig...@gmail.com>.
see how wicket-spring works, maybe you can write a small module like
that to inject the datacontext into a page.

-igor

On Sat, Apr 24, 2010 at 1:24 AM, Arnaud Garcia <ar...@imagemed-87.com> wrote:
> Hello,
>
> Does anyone knows how to set up Cayenne for wicket ?
> In my WicketPage I have :
>  private DataContext ctxt = (DataContext)
> DataContext.getThreadObjectContext();
>
> but, I don't think it is the good way, since I suppose wicket will
> serialized the full DataContext... (maybe I can put the
> getThreadObjectContext() in a method or constructor to avoid the
> serialization...)
> -> Well, I don't know how what is the good way  ;-)
>
>
>
> thanks,
>
> Arnaud
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org