You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by cjlyth <cj...@gmail.com> on 2008/03/29 03:53:48 UTC

OpenEntityManagerInView and wicket dataview question

I posted a reply to another post this afternoon expanding on a question the
OP had about openEntityManagerInView. I want to ask in a different thread
and a different way.

I have a page that displays a ListOwner object. The ListOwner has a
collection of lazy loaded ListEntry objects. I can NOT get the lazy loaded
objects to display. I have added an OpenEntityManagerInView filter to the
web app and it seems to be correct but the list will still not load. 

I am injecting my service beans into the wicket page using the SpringBean
annotation. 

I have been researching this extensively over the past few days but i keep
coming up with the same things. 

At least I would like to know if I can do this, it seems like a simple and
common problem. Is it possible to display an object with a lazy loaded
collection of objects in a dataview using OpenEntityManagerInView?

Thanks
-- 
View this message in context: http://www.nabble.com/OpenEntityManagerInView-and-wicket-dataview-question-tp16366054p16366054.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: OpenEntityManagerInView and wicket dataview question

Posted by James Carman <ja...@carmanconsulting.com>.
Yes, I believe you need to have your OpenEntityManagerInViewFilter
before WicketFilter (or use WicketServlet).  If WicketFilter decides
that the current request is its to take care of, it shouldn't be
forwarding to the rest of the chain.  Therefore, the
OpenEntityManagerInViewFilter won't get a chance to do anything.

On Fri, Mar 28, 2008 at 11:12 PM, Christopher Lyth
<ch...@gmail.com> wrote:
> I think i got it im sorry I found another post that talked about the order
>  of the filters in web.xml .... I came across it a couple days ago and
>  thought i already tried that... It seems to be working now thank you for the
>  response.
>
>
>
>  On Fri, Mar 28, 2008 at 11:09 PM, Christopher Lyth <
>  christopher.lyth@gmail.com> wrote:
>
>  > Here is a link to my other post:
>  >
>  > http://www.nabble.com/Re%3A-Lazy-load-exception-wicket-and-hibernate-p16361116.html
>  >
>  > I am using a LoadableDetachableModel
>  >
>  >
>  >
>  > On Fri, Mar 28, 2008 at 10:57 PM, James Carman <ja...@carmanconsulting.com>
>  > wrote:
>  >
>  > > What kind of model are you using?  Do you have some code you could
>  > > share?
>  > >
>  > > On Fri, Mar 28, 2008 at 10:53 PM, cjlyth <cj...@gmail.com> wrote:
>  > > >
>  > > >  I posted a reply to another post this afternoon expanding on a
>  > > question the
>  > > >  OP had about openEntityManagerInView. I want to ask in a different
>  > > thread
>  > > >  and a different way.
>  > > >
>  > > >  I have a page that displays a ListOwner object. The ListOwner has a
>  > > >  collection of lazy loaded ListEntry objects. I can NOT get the lazy
>  > > loaded
>  > > >  objects to display. I have added an OpenEntityManagerInView filter to
>  > > the
>  > > >  web app and it seems to be correct but the list will still not load.
>  > > >
>  > > >  I am injecting my service beans into the wicket page using the
>  > > SpringBean
>  > > >  annotation.
>  > > >
>  > > >  I have been researching this extensively over the past few days but i
>  > > keep
>  > > >  coming up with the same things.
>  > > >
>  > > >  At least I would like to know if I can do this, it seems like a
>  > > simple and
>  > > >  common problem. Is it possible to display an object with a lazy
>  > > loaded
>  > > >  collection of objects in a dataview using OpenEntityManagerInView?
>  > > >
>  > > >  Thanks
>  > > >  --
>  > > >  View this message in context:
>  > > http://www.nabble.com/OpenEntityManagerInView-and-wicket-dataview-question-tp16366054p16366054.html
>  > > >  Sent from the Wicket - User mailing list archive at Nabble.com.
>  > > >
>  > > >
>  > > >  ---------------------------------------------------------------------
>  > > >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  > > >  For additional commands, e-mail: users-help@wicket.apache.org
>  > > >
>  > > >
>  > >
>  > > ---------------------------------------------------------------------
>  > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  > > For additional commands, e-mail: users-help@wicket.apache.org
>  > >
>  > >
>  >
>  >
>  > --
>  > Christopher J Lyth
>  > christopher.lyth@gmail.com
>
>
>
>
>  --
>  Christopher J Lyth
>  christopher.lyth@gmail.com
>

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


Re: OpenEntityManagerInView and wicket dataview question

Posted by Christopher Lyth <ch...@gmail.com>.
I think i got it im sorry I found another post that talked about the order
of the filters in web.xml .... I came across it a couple days ago and
thought i already tried that... It seems to be working now thank you for the
response.

On Fri, Mar 28, 2008 at 11:09 PM, Christopher Lyth <
christopher.lyth@gmail.com> wrote:

> Here is a link to my other post:
>
> http://www.nabble.com/Re%3A-Lazy-load-exception-wicket-and-hibernate-p16361116.html
>
> I am using a LoadableDetachableModel
>
>
>
> On Fri, Mar 28, 2008 at 10:57 PM, James Carman <ja...@carmanconsulting.com>
> wrote:
>
> > What kind of model are you using?  Do you have some code you could
> > share?
> >
> > On Fri, Mar 28, 2008 at 10:53 PM, cjlyth <cj...@gmail.com> wrote:
> > >
> > >  I posted a reply to another post this afternoon expanding on a
> > question the
> > >  OP had about openEntityManagerInView. I want to ask in a different
> > thread
> > >  and a different way.
> > >
> > >  I have a page that displays a ListOwner object. The ListOwner has a
> > >  collection of lazy loaded ListEntry objects. I can NOT get the lazy
> > loaded
> > >  objects to display. I have added an OpenEntityManagerInView filter to
> > the
> > >  web app and it seems to be correct but the list will still not load.
> > >
> > >  I am injecting my service beans into the wicket page using the
> > SpringBean
> > >  annotation.
> > >
> > >  I have been researching this extensively over the past few days but i
> > keep
> > >  coming up with the same things.
> > >
> > >  At least I would like to know if I can do this, it seems like a
> > simple and
> > >  common problem. Is it possible to display an object with a lazy
> > loaded
> > >  collection of objects in a dataview using OpenEntityManagerInView?
> > >
> > >  Thanks
> > >  --
> > >  View this message in context:
> > http://www.nabble.com/OpenEntityManagerInView-and-wicket-dataview-question-tp16366054p16366054.html
> > >  Sent from the Wicket - User mailing list archive at Nabble.com.
> > >
> > >
> > >  ---------------------------------------------------------------------
> > >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > >  For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Christopher J Lyth
> christopher.lyth@gmail.com




-- 
Christopher J Lyth
christopher.lyth@gmail.com

Re: OpenEntityManagerInView and wicket dataview question

Posted by Christopher Lyth <ch...@gmail.com>.
Here is a link to my other post:
http://www.nabble.com/Re%3A-Lazy-load-exception-wicket-and-hibernate-p16361116.html

I am using a LoadableDetachableModel


On Fri, Mar 28, 2008 at 10:57 PM, James Carman <ja...@carmanconsulting.com>
wrote:

> What kind of model are you using?  Do you have some code you could share?
>
> On Fri, Mar 28, 2008 at 10:53 PM, cjlyth <cj...@gmail.com> wrote:
> >
> >  I posted a reply to another post this afternoon expanding on a question
> the
> >  OP had about openEntityManagerInView. I want to ask in a different
> thread
> >  and a different way.
> >
> >  I have a page that displays a ListOwner object. The ListOwner has a
> >  collection of lazy loaded ListEntry objects. I can NOT get the lazy
> loaded
> >  objects to display. I have added an OpenEntityManagerInView filter to
> the
> >  web app and it seems to be correct but the list will still not load.
> >
> >  I am injecting my service beans into the wicket page using the
> SpringBean
> >  annotation.
> >
> >  I have been researching this extensively over the past few days but i
> keep
> >  coming up with the same things.
> >
> >  At least I would like to know if I can do this, it seems like a simple
> and
> >  common problem. Is it possible to display an object with a lazy loaded
> >  collection of objects in a dataview using OpenEntityManagerInView?
> >
> >  Thanks
> >  --
> >  View this message in context:
> http://www.nabble.com/OpenEntityManagerInView-and-wicket-dataview-question-tp16366054p16366054.html
> >  Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> >  ---------------------------------------------------------------------
> >  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >  For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Christopher J Lyth
christopher.lyth@gmail.com

Re: OpenEntityManagerInView and wicket dataview question

Posted by James Carman <ja...@carmanconsulting.com>.
What kind of model are you using?  Do you have some code you could share?

On Fri, Mar 28, 2008 at 10:53 PM, cjlyth <cj...@gmail.com> wrote:
>
>  I posted a reply to another post this afternoon expanding on a question the
>  OP had about openEntityManagerInView. I want to ask in a different thread
>  and a different way.
>
>  I have a page that displays a ListOwner object. The ListOwner has a
>  collection of lazy loaded ListEntry objects. I can NOT get the lazy loaded
>  objects to display. I have added an OpenEntityManagerInView filter to the
>  web app and it seems to be correct but the list will still not load.
>
>  I am injecting my service beans into the wicket page using the SpringBean
>  annotation.
>
>  I have been researching this extensively over the past few days but i keep
>  coming up with the same things.
>
>  At least I would like to know if I can do this, it seems like a simple and
>  common problem. Is it possible to display an object with a lazy loaded
>  collection of objects in a dataview using OpenEntityManagerInView?
>
>  Thanks
>  --
>  View this message in context: http://www.nabble.com/OpenEntityManagerInView-and-wicket-dataview-question-tp16366054p16366054.html
>  Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>  For additional commands, e-mail: users-help@wicket.apache.org
>
>

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