You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Hans-Heinrich Braun <ha...@yahoo.de.INVALID> on 2017/12/20 16:09:50 UTC
com.giffing.wicket.spring.boot.starter 1.0.8
WicketBootSecuredWebApplication OpenEntityManagerInView
I tried to transfer my application to com.giffing.wicket.spring.boot.starter 1.0.8.Following the wicket tree example i tried to transfer my tree structure to the Webapplication therefare i tried to extend WicketBootSecuredWebApplication but then the application complained about authorization problems in wicket.In my repository i use lazy loading. apparently the example application doesn't offer it and i i didn't succeed to offer it in my subclassed WicketBootSecuredWebApplication.What is the status of these 2 configuration abilities concerning the upper mentioned environment.
Thanks for response
Re: com.giffing.wicket.spring.boot.starter 1.0.8
WicketBootSecuredWebApplication OpenEntityManagerInView
Posted by Hans-Heinrich Braun <ha...@yahoo.de.INVALID>.
to become explicit i am using your automatic WebApplicationcreation I have a Class Objekt with the onetomany relation: @XmlTransient @OneToMany(cascade={CascadeType.ALL},fetch=FetchType.LAZY) @JoinColumn(name="objektid",nullable=false ) private List<Nachweis> nachweise = new ArrayList<Nachweis>(); i call this relation in the class ObjektTreepublic class ObjektTree extends BasePage
and call the relation by
Iterator iterator2=objekt.getNachweise().iterator()
and get the errororg.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: braunimmobilien.model.Objekt.nachweise, could not initialize proxy - no Session
Thank you
Am Donnerstag, 21. Dezember 2017, 12:44:44 MEZ hat Andrea Del Bene <an...@gmail.com> Folgendes geschrieben:
Hi,
could you please give more details about your problem (stacktrace, yhe
example application you are using, etc...)?
Thank you
On Wed, Dec 20, 2017 at 5:09 PM, Hans-Heinrich Braun <
hansheinrichbraun@yahoo.de.invalid> wrote:
> I tried to transfer my application to com.giffing.wicket.spring.boot.starter
> 1.0.8.Following the wicket tree example i tried to transfer my tree
> structure to the Webapplication therefare i tried to extend
> WicketBootSecuredWebApplication but then the application complained about
> authorization problems in wicket.In my repository i use lazy loading.
> apparently the example application doesn't offer it and i i didn't succeed
> to offer it in my subclassed WicketBootSecuredWebApplication.What is the
> status of these 2 configuration abilities concerning the upper mentioned
> environment.
> Thanks for response
>
Re: com.giffing.wicket.spring.boot.starter 1.0.8
WicketBootSecuredWebApplication OpenEntityManagerInView
Posted by Hans-Heinrich Braun <ha...@yahoo.de.INVALID>.
Hi Andrea,
The first problem i solved by putting the Tree in the List Page so i don't need to create the WebApplication myself.So i could use the automatism in your example.What i didn't really understand which of your WicketApplication i have to use if i only want to use Spring security as in your examlebut create the Webapplication myself and except of the new WebApplication where i have to do changes in your example (for example in application.properties)As in your example i use mysql and hibernate.but my domain objects have onetomany relations with lazyloading.These realtions don't work in your example. I get an error when i adress them that no Session is available.In my previous installation i solved this with org.springframework.orm.hibernate4.support.OpenSessionInViewFilter in the web.xmlbut what i have to do under your spring boot example.
Am Donnerstag, 21. Dezember 2017, 12:44:44 MEZ hat Andrea Del Bene <an...@gmail.com> Folgendes geschrieben:
Hi,
could you please give more details about your problem (stacktrace, yhe
example application you are using, etc...)?
Thank you
On Wed, Dec 20, 2017 at 5:09 PM, Hans-Heinrich Braun <
hansheinrichbraun@yahoo.de.invalid> wrote:
> I tried to transfer my application to com.giffing.wicket.spring.boot.starter
> 1.0.8.Following the wicket tree example i tried to transfer my tree
> structure to the Webapplication therefare i tried to extend
> WicketBootSecuredWebApplication but then the application complained about
> authorization problems in wicket.In my repository i use lazy loading.
> apparently the example application doesn't offer it and i i didn't succeed
> to offer it in my subclassed WicketBootSecuredWebApplication.What is the
> status of these 2 configuration abilities concerning the upper mentioned
> environment.
> Thanks for response
>
Re: com.giffing.wicket.spring.boot.starter 1.0.8 WicketBootSecuredWebApplication
OpenEntityManagerInView
Posted by Andrea Del Bene <an...@gmail.com>.
Hi,
could you please give more details about your problem (stacktrace, yhe
example application you are using, etc...)?
Thank you
On Wed, Dec 20, 2017 at 5:09 PM, Hans-Heinrich Braun <
hansheinrichbraun@yahoo.de.invalid> wrote:
> I tried to transfer my application to com.giffing.wicket.spring.boot.starter
> 1.0.8.Following the wicket tree example i tried to transfer my tree
> structure to the Webapplication therefare i tried to extend
> WicketBootSecuredWebApplication but then the application complained about
> authorization problems in wicket.In my repository i use lazy loading.
> apparently the example application doesn't offer it and i i didn't succeed
> to offer it in my subclassed WicketBootSecuredWebApplication.What is the
> status of these 2 configuration abilities concerning the upper mentioned
> environment.
> Thanks for response
>