Re: com.giffing.wicket.spring.boot.starter 1.0.8 WicketBootSecuredWebApplication OpenEntityManagerInView

2017-12-21 Thread Hans-Heinrich Braun
 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 nachweise 
= new ArrayList();  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 
 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 <
hansheinrichbr...@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

2017-12-21 Thread Hans-Heinrich Braun
 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 
 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 <
hansheinrichbr...@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

2017-12-21 Thread Andrea Del Bene
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 <
hansheinrichbr...@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: Potential Bug in DefaultNestedTree. Reproducible in Wicket examples

2017-12-21 Thread Martin Grigorov
Hi Conny,

Actually the javadoc is already there - see IComponentInheritedModels's
javadoc.
We cannot copy/paste it at each and every component implementation. It is
something specific to this IModel impl, not the components.

https://github.com/apache/wicket/blob/0dc04e448ba31de15d8c32b1ee964bebed55bc36/wicket-core/src/main/java/org/apache/wicket/model/IComponentInheritedModel.java#L22-L31
https://github.com/apache/wicket/blob/0dc04e448ba31de15d8c32b1ee964bebed55bc36/wicket-core/src/main/java/org/apache/wicket/Component.java#L162
https://github.com/apache/wicket/blob/0dc04e448ba31de15d8c32b1ee964bebed55bc36/wicket-core/src/main/java/org/apache/wicket/Component.java#L3796-L3805
https://github.com/apache/wicket/blob/0dc04e448ba31de15d8c32b1ee964bebed55bc36/wicket-core/src/main/java/org/apache/wicket/model/CompoundPropertyModel.java#L24

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Dec 20, 2017 at 9:24 AM, Conny Kühne  wrote:

> Hi Sven,
>
> thanks. Maybe the javadoc of the tree classes should state this. It is not
> obvious, e.g., why the DefaultTree works out of the box in the example
> page,
> but it does not work inside a component that has a model.
>
> Best,
> Conny
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>