Re: does spring-boot migration require wicket-spring-boot
We have documentation how to integrate Wicket with Spring - https://nightlies.apache.org/wicket/guide/9.x/single.html#_integrating_wicket_with_spring How to "upgrade" from Spring to Spring-Boot you should advice with Spring Boot ocumentation. On Mon, Jan 30, 2023 at 3:04 AM Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > Thank you Martin Grigorov. > Is there any document/guide/sample to integrate Apache Wicket framework > with Spring-Boot? > Please share the links > > > > *Thanks And RegardsSibi.ArunachalammCruncher* > > > On Fri, Jan 20, 2023 at 5:32 PM Martin Grigorov > wrote: > > > On Fri, Jan 20, 2023 at 11:16 AM Arunachalam Sibisakkaravarthi < > > arunacha...@mcruncher.com> wrote: > > > > > Hi guys, > > > We develop Wicket + Spring based web applications. > > > Now we are working to migrate the Spring framework to Spring Boot. Does > > > this require wicket-spring-boot migration? > > > Is it mandatory to migrate Wicket framework to wicket-spring-boot? > > > > > > > No. > > Wicket-Spring-Boot may help you to configure the Wicket settings via > Spring > > boot settings, but it is not mandatory at all. > > > > > > > > > > > > > > > > > > *Thanks And RegardsSibi.ArunachalammCruncher* > > > > > >
Re: does spring-boot migration require wicket-spring-boot
Thank you Martin Grigorov. Is there any document/guide/sample to integrate Apache Wicket framework with Spring-Boot? Please share the links *Thanks And RegardsSibi.ArunachalammCruncher* On Fri, Jan 20, 2023 at 5:32 PM Martin Grigorov wrote: > On Fri, Jan 20, 2023 at 11:16 AM Arunachalam Sibisakkaravarthi < > arunacha...@mcruncher.com> wrote: > > > Hi guys, > > We develop Wicket + Spring based web applications. > > Now we are working to migrate the Spring framework to Spring Boot. Does > > this require wicket-spring-boot migration? > > Is it mandatory to migrate Wicket framework to wicket-spring-boot? > > > > No. > Wicket-Spring-Boot may help you to configure the Wicket settings via Spring > boot settings, but it is not mandatory at all. > > > > > > > > > > > *Thanks And RegardsSibi.ArunachalammCruncher* > > >
Re: does spring-boot migration require wicket-spring-boot
On Fri, Jan 20, 2023 at 11:16 AM Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > Hi guys, > We develop Wicket + Spring based web applications. > Now we are working to migrate the Spring framework to Spring Boot. Does > this require wicket-spring-boot migration? > Is it mandatory to migrate Wicket framework to wicket-spring-boot? > No. Wicket-Spring-Boot may help you to configure the Wicket settings via Spring boot settings, but it is not mandatory at all. > > > > *Thanks And RegardsSibi.ArunachalammCruncher* >
does spring-boot migration require wicket-spring-boot
Hi guys, We develop Wicket + Spring based web applications. Now we are working to migrate the Spring framework to Spring Boot. Does this require wicket-spring-boot migration? Is it mandatory to migrate Wicket framework to wicket-spring-boot? *Thanks And RegardsSibi.ArunachalammCruncher*
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
works :) https://github.com/geramaya/wicket-spring-boot-simple thx for help Am 13.01.2021 um 20:19 schrieb Martin Grigorov: In that case you should report it at https://github.com/MarcGiffing/wicket-spring-boot/issues On Wed, Jan 13, 2021 at 5:28 PM Daniel Weiss wrote: Hey all, I've tested it. A mini spring-boot provide static content with functions of https://www.baeldung.com/spring-mvc-static-resources. A mini spring boot app with wicket-spring-boot does not provide it. I got a error message with not found of ... Some ideas or experience about it? Am 13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x and with a spring boot application. I would add static web content (online help page) to provide a documentation inside the spring boot application. Knows someone a way to provide to serve static web content with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
https://github.com/MarcGiffing/wicket-spring-boot/issues/174 Done. Thx for your help :) Am 13.01.2021 um 20:19 schrieb Martin Grigorov: In that case you should report it at https://github.com/MarcGiffing/wicket-spring-boot/issues On Wed, Jan 13, 2021 at 5:28 PM Daniel Weiss wrote: Hey all, I've tested it. A mini spring-boot provide static content with functions of https://www.baeldung.com/spring-mvc-static-resources. A mini spring boot app with wicket-spring-boot does not provide it. I got a error message with not found of ... Some ideas or experience about it? Am 13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x and with a spring boot application. I would add static web content (online help page) to provide a documentation inside the spring boot application. Knows someone a way to provide to serve static web content with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
In that case you should report it at https://github.com/MarcGiffing/wicket-spring-boot/issues On Wed, Jan 13, 2021 at 5:28 PM Daniel Weiss wrote: > Hey all, > > I've tested it. A mini spring-boot provide static content with functions > of https://www.baeldung.com/spring-mvc-static-resources. A mini spring > boot app with wicket-spring-boot does not provide it. I got a error > message with not found of ... > > Some ideas or experience about it? > > > Am 13.01.2021 um 14:52 schrieb Martin Grigorov: > > Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC > > facilities: https://www.baeldung.com/spring-mvc-static-resources On > > Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: > >> Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with > >> Wicket 8.x and with a spring boot application. I would add static web > >> content (online help page) to provide a documentation inside the > >> spring boot application. Knows someone a way to provide to serve > >> static web content with a set of html sites? I'll thankful for some > >> hints for this issue :) Thx in advance Daniel > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For > >> additional commands, e-mail: users-h...@wicket.apache.org > > >
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
Hey all, I've tested it. A mini spring-boot provide static content with functions of https://www.baeldung.com/spring-mvc-static-resources. A mini spring boot app with wicket-spring-boot does not provide it. I got a error message with not found of ... Some ideas or experience about it? Am 13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x and with a spring boot application. I would add static web content (online help page) to provide a documentation inside the spring boot application. Knows someone a way to provide to serve static web content with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
Thx :) I have found this, but it doesn't work with my app. My next should step is to use a clean small spring boot app and spring boot with the wicket-spring-boot to exclude own bugs with my wonderful program :D Thx Daniel Am 13.01.2021 um 14:52 schrieb Martin Grigorov: Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x and with a spring boot application. I would add static web content (online help page) to provide a documentation inside the spring boot application. Knows someone a way to provide to serve static web content with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
Hi, There is nothing Wicket specific in this. Just use Spring Boot/MVC facilities: https://www.baeldung.com/spring-mvc-static-resources On Wed, Jan 13, 2021 at 3:08 PM Daniel Weiss wrote: > > Hi all, > > I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x > and with a spring boot application. I would add static web content > (online help page) to provide a documentation inside the spring boot > application. > > Knows someone a way to provide to serve static web content with a set of > html sites? I'll thankful for some hints for this issue :) > > Thx in advance > Daniel > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Provide a additional static content with https://github.com/MarcGiffing/wicket-spring-boot
Hi all, I use https://github.com/MarcGiffing/wicket-spring-boot with Wicket 8.x and with a spring boot application. I would add static web content (online help page) to provide a documentation inside the spring boot application. Knows someone a way to provide to serve static web content with a set of html sites? I'll thankful for some hints for this issue :) Thx in advance Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an example project for wicket-spring-boot with gradle and webpack?
Sorry, replied the wrong mail =( -Igor. > On 11. Dec 2019, at 10:44, Igor Khvostenkov > wrote: > > https://teleconf.lab2018.qa.lbaum.eu/conference/x/xS--GWk72BL0 > >> On 8. Dec 2019, at 20:24, Martin Grigorov wrote: >> >> Hi, >> >> I would suggest you to generate your application with JHipster and then >> remove the front-end (Angular/React) and add Wicket instead. >> >> On Sun, Dec 8, 2019, 10:02 Per Newgro wrote: >> >>> Hello *, >>> >>> i try to setup a spring boot project based on wicket-spring-boot-parent. >>> To built my frontend assets (sass, js, svg minify etc) i like to use >>> webpack. >>> >>> But if i start my project the assets are not loaded. So i hope to find an >>> example project, >>> where i can find some inspirations how i could setup everything. >>> >>> Btw. i built everything with gradle. >>> >>> Thanks for your support >>> Per >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an example project for wicket-spring-boot with gradle and webpack?
https://teleconf.lab2018.qa.lbaum.eu/conference/x/xS--GWk72BL0 > On 8. Dec 2019, at 20:24, Martin Grigorov wrote: > > Hi, > > I would suggest you to generate your application with JHipster and then > remove the front-end (Angular/React) and add Wicket instead. > > On Sun, Dec 8, 2019, 10:02 Per Newgro wrote: > >> Hello *, >> >> i try to setup a spring boot project based on wicket-spring-boot-parent. >> To built my frontend assets (sass, js, svg minify etc) i like to use >> webpack. >> >> But if i start my project the assets are not loaded. So i hope to find an >> example project, >> where i can find some inspirations how i could setup everything. >> >> Btw. i built everything with gradle. >> >> Thanks for your support >> Per >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is there an example project for wicket-spring-boot with gradle and webpack?
Hi, I would suggest you to generate your application with JHipster and then remove the front-end (Angular/React) and add Wicket instead. On Sun, Dec 8, 2019, 10:02 Per Newgro wrote: > Hello *, > > i try to setup a spring boot project based on wicket-spring-boot-parent. > To built my frontend assets (sass, js, svg minify etc) i like to use > webpack. > > But if i start my project the assets are not loaded. So i hope to find an > example project, > where i can find some inspirations how i could setup everything. > > Btw. i built everything with gradle. > > Thanks for your support > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Is there an example project for wicket-spring-boot with gradle and webpack?
Hi again, some hints I found on stackoverflow: https://stackoverflow.com/questions/38738587/migrate-frontend-maven-plugin-from-maven-to-gradle kind regards Tobias > Am 08.12.2019 um 09:02 schrieb Per Newgro : > > Hello *, > > i try to setup a spring boot project based on wicket-spring-boot-parent. > To built my frontend assets (sass, js, svg minify etc) i like to use webpack. > > But if i start my project the assets are not loaded. So i hope to find an > example project, > where i can find some inspirations how i could setup everything. > > Btw. i built everything with gradle. > > Thanks for your support > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
Re: Is there an example project for wicket-spring-boot with gradle and webpack?
Hi, for maven: maybe you can use the eirslett frontend-maven-plugin and put in the npm executions you would like to have to build your frontend part beside the normal compile for the Wicket classes: https://github.com/eirslett/frontend-maven-plugin I did something long time ago with grunt: https://github.com/klopfdreh/fluentsquare/blob/master/com.fluentsquare.web/pom.xml I think you should be able to modify the executions to use webpack: https://webpack.js.org/guides/getting-started/ for gradle I sadly don‘t have any examples. kind regards Tobias > Am 08.12.2019 um 09:02 schrieb Per Newgro : > > Hello *, > > i try to setup a spring boot project based on wicket-spring-boot-parent. > To built my frontend assets (sass, js, svg minify etc) i like to use webpack. > > But if i start my project the assets are not loaded. So i hope to find an > example project, > where i can find some inspirations how i could setup everything. > > Btw. i built everything with gradle. > > Thanks for your support > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
Is there an example project for wicket-spring-boot with gradle and webpack?
Hello *, i try to setup a spring boot project based on wicket-spring-boot-parent. To built my frontend assets (sass, js, svg minify etc) i like to use webpack. But if i start my project the assets are not loaded. So i hope to find an example project, where i can find some inspirations how i could setup everything. Btw. i built everything with gradle. Thanks for your support Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Re: Wicket Spring boot - use spring devtools
On Wed, Aug 28, 2019 at 12:04 PM Per Newgro wrote: > Hello Martin, > > the problem is that i assign a model in request cycle metadata by using > the key > > public class IdentityInstance extends MetaDataKey> { > > public static IdentityInstance KEY = new IdentityInstance(); > > private IdentityInstance() { > super(); > } > } > > Page: > getRequestCycle().setMetaData(IdentityInstance.KEY, identityModel); > > Widget: > IModel identity = > getRequestCycle().getMetaData(IdentityInstance.KEY); > > But the model in Widget is always null. While debugging i found that > object identity is used in Class#equals(Object o), what is ok for me. > But with different classloaders class is loaded multiple times. > > I could provide a quickstart for this & create an issue, if you like. (?) > No, I don't. I don't see why Wicket should be responsible for the way other libraries work. If you create a quickstart that does not use any third party libraries then we will take a look! > > I would like to adapt my configuration so that devtools are still > available. > > (DCEVM i need to inspect :-).) > > Thanks for your support. > Regards > Per > > > Gesendet: Mittwoch, 28. August 2019 um 10:37 Uhr > > Von: "Martin Grigorov" > > An: "users@wicket.apache.org" > > Betreff: Re: Wicket Spring boot - use spring devtools > > > > Hi, > > > > This is how Spring Dev Tools work. When it detects a change it removes > the > > old application class loader and creates a new one. > > Why this is a problem for you ? > > > > I personally prefer to use DCEVM (https://dcevm.github.io/). It is able > to > > redefine a specific class in the current class loader. > > When I change a Spring @Configuration or Hibernate mapping I just restart > > the application manually. > > > > On Wed, Aug 28, 2019 at 11:25 AM Per Newgro wrote: > > > > > Hello *, > > > > > > I migrate my current wicket app to spring boot version ( > > > https://github.com/MarcGiffing/wicket-spring-boot). > > > > > > So far it was straightforward. But now i experience a problem with > > > inclusion of > > > > > > > > > org.springframework.boot > > > > > > spring-boot-devtools > > > > > > > > > It seems that the "restart / reload feature" of devtools loads my > classes > > > multiple times, so that they are not equal anymore (x.class <> > x.class). > > > I understand that this is happening. But i would like to know if there > is > > > another option for me beside - removing spring-boot-devtools. > > > > > > Would be nice to here from you > > > Thanks > > > Per > > > > > > - > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Aw: Re: Wicket Spring boot - use spring devtools
Hello Martin, the problem is that i assign a model in request cycle metadata by using the key public class IdentityInstance extends MetaDataKey> { public static IdentityInstance KEY = new IdentityInstance(); private IdentityInstance() { super(); } } Page: getRequestCycle().setMetaData(IdentityInstance.KEY, identityModel); Widget: IModel identity = getRequestCycle().getMetaData(IdentityInstance.KEY); But the model in Widget is always null. While debugging i found that object identity is used in Class#equals(Object o), what is ok for me. But with different classloaders class is loaded multiple times. I could provide a quickstart for this & create an issue, if you like. (?) I would like to adapt my configuration so that devtools are still available. (DCEVM i need to inspect :-).) Thanks for your support. Regards Per > Gesendet: Mittwoch, 28. August 2019 um 10:37 Uhr > Von: "Martin Grigorov" > An: "users@wicket.apache.org" > Betreff: Re: Wicket Spring boot - use spring devtools > > Hi, > > This is how Spring Dev Tools work. When it detects a change it removes the > old application class loader and creates a new one. > Why this is a problem for you ? > > I personally prefer to use DCEVM (https://dcevm.github.io/). It is able to > redefine a specific class in the current class loader. > When I change a Spring @Configuration or Hibernate mapping I just restart > the application manually. > > On Wed, Aug 28, 2019 at 11:25 AM Per Newgro wrote: > > > Hello *, > > > > I migrate my current wicket app to spring boot version ( > > https://github.com/MarcGiffing/wicket-spring-boot). > > > > So far it was straightforward. But now i experience a problem with > > inclusion of > > > > > > org.springframework.boot > > > > spring-boot-devtools > > > > > > It seems that the "restart / reload feature" of devtools loads my classes > > multiple times, so that they are not equal anymore (x.class <> x.class). > > I understand that this is happening. But i would like to know if there is > > another option for me beside - removing spring-boot-devtools. > > > > Would be nice to here from you > > Thanks > > Per > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring boot - use spring devtools
Hi, This is how Spring Dev Tools work. When it detects a change it removes the old application class loader and creates a new one. Why this is a problem for you ? I personally prefer to use DCEVM (https://dcevm.github.io/). It is able to redefine a specific class in the current class loader. When I change a Spring @Configuration or Hibernate mapping I just restart the application manually. On Wed, Aug 28, 2019 at 11:25 AM Per Newgro wrote: > Hello *, > > I migrate my current wicket app to spring boot version ( > https://github.com/MarcGiffing/wicket-spring-boot). > > So far it was straightforward. But now i experience a problem with > inclusion of > > > org.springframework.boot > > spring-boot-devtools > > > It seems that the "restart / reload feature" of devtools loads my classes > multiple times, so that they are not equal anymore (x.class <> x.class). > I understand that this is happening. But i would like to know if there is > another option for me beside - removing spring-boot-devtools. > > Would be nice to here from you > Thanks > Per > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Wicket Spring boot - use spring devtools
Hello *, I migrate my current wicket app to spring boot version (https://github.com/MarcGiffing/wicket-spring-boot). So far it was straightforward. But now i experience a problem with inclusion of org.springframework.boot spring-boot-devtools It seems that the "restart / reload feature" of devtools loads my classes multiple times, so that they are not equal anymore (x.class <> x.class). I understand that this is happening. But i would like to know if there is another option for me beside - removing spring-boot-devtools. Would be nice to here from you Thanks Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
;) > > > > > > > > > > .and().csrf().disable(); > > > > > } > > > > > } > > > > > > > > > > @Bean > > > > > public static BCryptPasswordEncoder passwordEncoder() { > > > > > return new BCryptPasswordEncoder(); > > > > > } > > > > > > > > > > @Bean(name = "authenticationManager") > > > > > @Override > > > > > public AuthenticationManager authenticationManagerBean() throws > > > > > Exception { > > > > > > > > > > return super.authenticationManagerBean(); > > > > > } > > > > > public interface IAuthenticationFacade { > > > > > Authentication getAuthentication(); > > > > > } > > > > > @Component > > > > > public class AuthenticationFacade implements > > IAuthenticationFacade > > > { > > > > > > > > > > @Override > > > > > public Authentication getAuthentication() { > > > > > return > > > > SecurityContextHolder.getContext().getAuthentication(); > > > > > } > > > > > } > > > > > > > > > > @Bean > > > > > public UserDetailsService userDetailsService() { > > > > > InMemoryUserDetailsManager manager = new > > > > > InMemoryUserDetailsManager(); > > > > > manager.createUser( > > > > > User.withUsername("admin") > > > > > > > > > > .password(passwordEncoder().encode("admin")).authorities("USER", > > > "ADMIN") > > > > > .build()); > > > > > > > > > > manager.createUser( > > > > > User.withUsername("actuator") > > > > > > > > > > .password(passwordEncoder().encode("actuator")).roles("ACTUATOR") > > > > > .build()); > > > > > > > > > > return manager; > > > > > } > > > > > } > > > > > > > > > > > > > > > On Thu, Jan 24, 2019 at 3:19 PM nino martinez wael < > > > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > > > > > Thanks will try it:) > > > > > > > > > > > > On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros < > > > zbynekvav...@gmail.com> > > > > > > wrote: > > > > > > > > > > > >> In my case it works something like this: > > > > > >> > > > > > >> @Configuration > > > > > >> @EnableWebSecurity > > > > > >> public class SecurityConfiguration { > > > > > >> > > > > > >> @Configuration > > > > > >> @Order(1) > > > > > >> public static class RestSecurityConfig extends > > > > > >> WebSecurityConfigurerAdapter { > > > > > >> > > > > > >> .. user details service, auth providers etc > > > > > >> > > > > > >> @Override > > > > > >> protected void configure(HttpSecurity http) throws > > > Exception { > > > > > >> > > > > > >> > > > > > >> > > > > > > > > > > > > > > > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > > > > > >> .and().csrf().disable() > > > > > >> > > > > > >> > > > > > >> > > > > > > > > > > > > > > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > > > > > >> .and().httpBasic(); > > > > > >> } > > > > > >> } > > > > > >> > > > > > >> @Configuration > > > > > >> @Order(2) > > > > > >> public static class WicketSecurityConfig extends > > > > > >> WebSecurityConfigurerAdapter { > &
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
; > .build()); > > > > > > > > return manager; > > > > } > > > > } > > > > > > > > > > > > On Thu, Jan 24, 2019 at 3:19 PM nino martinez wael < > > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > > > Thanks will try it:) > > > > > > > > > > On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros < > > zbynekvav...@gmail.com> > > > > > wrote: > > > > > > > > > >> In my case it works something like this: > > > > >> > > > > >> @Configuration > > > > >> @EnableWebSecurity > > > > >> public class SecurityConfiguration { > > > > >> > > > > >> @Configuration > > > > >> @Order(1) > > > > >> public static class RestSecurityConfig extends > > > > >> WebSecurityConfigurerAdapter { > > > > >> > > > > >> .. user details service, auth providers etc > > > > >> > > > > >> @Override > > > > >> protected void configure(HttpSecurity http) throws > > Exception { > > > > >> > > > > >> > > > > >> > > > > > > > > > > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > > > > >> .and().csrf().disable() > > > > >> > > > > >> > > > > >> > > > > > > > > > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > > > > >> .and().httpBasic(); > > > > >> } > > > > >> } > > > > >> > > > > >> @Configuration > > > > >> @Order(2) > > > > >> public static class WicketSecurityConfig extends > > > > >> WebSecurityConfigurerAdapter { > > > > >> > > > > >> .. user details service, auth providers etc > > > > >> > > > > >> @Override > > > > >> protected void configure(AuthenticationManagerBuilder > auth) > > > > throws > > > > >> Exception { > > > > >> > > auth.authenticationProvider(wicketAuthenticationProvider); > > > > >> } > > > > >> > > > > >> @Override > > > > >> protected void configure(HttpSecurity http) throws > > Exception { > > > > >> http.antMatcher("/page/**").authorizeRequests() > > > > >> .antMatchers("/page/login**").permitAll() > > > > >> .antMatchers("/page/**").hasRole("ROLE") > > > > >> > > > > >> > > > > >> > > > > > > > > > > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > > > > >> .and().csrf().disable(); > > > > >> } > > > > >> > > > > >> @Override > > > > >> @Bean(name = "authenticationManager") > > > > >> public AuthenticationManager authenticationManagerBean() > > > throws > > > > >> Exception { > > > > >> return super.authenticationManagerBean(); > > > > >> } > > > > >> } > > > > >> } > > > > >> > > > > >> The RestSecurityConfigwould be what you would do for actuators, > for > > me > > > > >> thats the REST API. > > > > >> Not the order of "antMatcher", "authorizeRequests" and " > > antMatchers". > > > > >> > > > > >> Zbynek > > > > >> > > > > >> On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < > > > > >> nino.martinez.w...@gmail.com> wrote: > > > > >> > > > > >> > do you have an example? OR is it just to cut them into two like: > > > > >> > WebSecurityConfigurerAdapter A: > > > > >> > > > > > >> > > > > > >> > > > > > > > > > > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > >> > > > > > >> > WebSecurityConfigurerAdapter B: > > > > >> > http > > > > >> > .csrf().disable() > > > > >> > .authorizeRequests().anyRequest().permitAll() > > > > >> > .and() > > > > >> > .logout() > > > > >> > .permitAll(); > > > > >> > http.headers().frameOptions().disable(); > > > > >> > > > > > >> > > > > > >> > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros < > > > zbynekvav...@gmail.com > > > > > > > > > >> > wrote: > > > > >> > > > > > >> > > Hi, > > > > >> > > > > > > >> > > I did similar thing, the trick here is to use two > > > > >> > > WebSecurityConfigurerAdaptes. > > > > >> > > > > > > >> > > Zbynek > > > > >> > > > > > > >> > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > > > > >> > > nino.martinez.w...@gmail.com> wrote: > > > > >> > > > > > > >> > > > Hope its okay to use the wicket user mailing list for this:) > > > > >> > > > > > > > >> > > > First of all thanks to MarcGiffing for making the project. > > But I > > > > >> cannot > > > > >> > > get > > > > >> > > > actuator endpoints to work with spring security and wicket > > > spring > > > > >> > boot.. > > > > >> > > > I've tried a lot of things.. > > > > >> > > > > > > > >> > > > IN my WebSecurityConfigurerAdapter: > > > > >> > > > > > > > >> > > > http > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > >> > > > > > > > >> > > > http > > > > >> > > > .csrf().disable() > > > > >> > > > > .authorizeRequests().anyRequest().permitAll() > > > > >> > > > .and() > > > > >> > > > .logout() > > > > >> > > > .permitAll(); > > > > >> > > > http.headers().frameOptions().disable(); > > > > >> > > > > > > > >> > > > But that just disables actuator and messes with the Wicket > > side > > > of > > > > >> the > > > > >> > > > security.. Any one have some clues= > > > > >> > > > > > > > >> > > > -- > > > > >> > > > Best regards / Med venlig hilsen > > > > >> > > > Nino Martinez > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > > >> > -- > > > > >> > Best regards / Med venlig hilsen > > > > >> > Nino Martinez > > > > >> > > > > > >> > > > > > > > > > > > > > > > -- > > > > > Best regards / Med venlig hilsen > > > > > Nino Martinez > > > > > > > > > > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
nPolicy(SessionCreationPolicy.STATELESS) > > > >> .and().httpBasic(); > > > >> } > > > >> } > > > >> > > > >> @Configuration > > > >> @Order(2) > > > >> public static class WicketSecurityConfig extends > > > >> WebSecurityConfigurerAdapter { > > > >> > > > >> .. user details service, auth providers etc > > > >> > > > >> @Override > > > >> protected void configure(AuthenticationManagerBuilder auth) > > > throws > > > >> Exception { > > > >> > auth.authenticationProvider(wicketAuthenticationProvider); > > > >> } > > > >> > > > >> @Override > > > >> protected void configure(HttpSecurity http) throws > Exception { > > > >> http.antMatcher("/page/**").authorizeRequests() > > > >> .antMatchers("/page/login**").permitAll() > > > >> .antMatchers("/page/**").hasRole("ROLE") > > > >> > > > >> > > > >> > > > > > > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > > > >> .and().csrf().disable(); > > > >> } > > > >> > > > >> @Override > > > >> @Bean(name = "authenticationManager") > > > >> public AuthenticationManager authenticationManagerBean() > > throws > > > >> Exception { > > > >> return super.authenticationManagerBean(); > > > >> } > > > >> } > > > >> } > > > >> > > > >> The RestSecurityConfigwould be what you would do for actuators, for > me > > > >> thats the REST API. > > > >> Not the order of "antMatcher", "authorizeRequests" and " > antMatchers". > > > >> > > > >> Zbynek > > > >> > > > >> On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < > > > >> nino.martinez.w...@gmail.com> wrote: > > > >> > > > >> > do you have an example? OR is it just to cut them into two like: > > > >> > WebSecurityConfigurerAdapter A: > > > >> > > > > >> > > > > >> > > > > > > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > >> > > > > >> > WebSecurityConfigurerAdapter B: > > > >> > http > > > >> > .csrf().disable() > > > >> > .authorizeRequests().anyRequest().permitAll() > > > >> > .and() > > > >> > .logout() > > > >> > .permitAll(); > > > >> > http.headers().frameOptions().disable(); > > > >> > > > > >> > > > > >> > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros < > > zbynekvav...@gmail.com > > > > > > > >> > wrote: > > > >> > > > > >> > > Hi, > > > >> > > > > > >> > > I did similar thing, the trick here is to use two > > > >> > > WebSecurityConfigurerAdaptes. > > > >> > > > > > >> > > Zbynek > > > >> > > > > > >> > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > > > >> > > nino.martinez.w...@gmail.com> wrote: > > > >> > > > > > >> > > > Hope its okay to use the wicket user mailing list for this:) > > > >> > > > > > > >> > > > First of all thanks to MarcGiffing for making the project. > But I > > > >> cannot > > > >> > > get > > > >> > > > actuator endpoints to work with spring security and wicket > > spring > > > >> > boot.. > > > >> > > > I've tried a lot of things.. > > > >> > > > > > > >> > > > IN my WebSecurityConfigurerAdapter: > > > >> > > > > > > >> > > > http > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > >> > > > > > > >> > > > http > > > >> > > > .csrf().disable() > > > >> > > > .authorizeRequests().anyRequest().permitAll() > > > >> > > > .and() > > > >> > > > .logout() > > > >> > > > .permitAll(); > > > >> > > > http.headers().frameOptions().disable(); > > > >> > > > > > > >> > > > But that just disables actuator and messes with the Wicket > side > > of > > > >> the > > > >> > > > security.. Any one have some clues= > > > >> > > > > > > >> > > > -- > > > >> > > > Best regards / Med venlig hilsen > > > >> > > > Nino Martinez > > > >> > > > > > > >> > > > > > >> > > > > >> > > > > >> > -- > > > >> > Best regards / Med venlig hilsen > > > >> > Nino Martinez > > > >> > > > > >> > > > > > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > -- > > > Best regards / Med venlig hilsen > > > Nino Martinez > > > > > > > > -- > Best regards / Med venlig hilsen > Nino Martinez >
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
quot;/page/login").loginProcessingUrl("/fake-url") > > > > .and().csrf().disable(); > > } > > } > > > > @Bean > > public static BCryptPasswordEncoder passwordEncoder() { > > return new BCryptPasswordEncoder(); > > } > > > > @Bean(name = "authenticationManager") > > @Override > > public AuthenticationManager authenticationManagerBean() throws > > Exception { > > > > return super.authenticationManagerBean(); > > } > > public interface IAuthenticationFacade { > > Authentication getAuthentication(); > > } > > @Component > > public class AuthenticationFacade implements IAuthenticationFacade { > > > > @Override > > public Authentication getAuthentication() { > > return > SecurityContextHolder.getContext().getAuthentication(); > > } > > } > > > > @Bean > > public UserDetailsService userDetailsService() { > > InMemoryUserDetailsManager manager = new > > InMemoryUserDetailsManager(); > > manager.createUser( > > User.withUsername("admin") > > > > .password(passwordEncoder().encode("admin")).authorities("USER", "ADMIN") > > .build()); > > > > manager.createUser( > > User.withUsername("actuator") > > > > .password(passwordEncoder().encode("actuator")).roles("ACTUATOR") > > .build()); > > > > return manager; > > } > > } > > > > > > On Thu, Jan 24, 2019 at 3:19 PM nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > > > Thanks will try it:) > > > > > > On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros > > > wrote: > > > > > >> In my case it works something like this: > > >> > > >> @Configuration > > >> @EnableWebSecurity > > >> public class SecurityConfiguration { > > >> > > >> @Configuration > > >> @Order(1) > > >> public static class RestSecurityConfig extends > > >> WebSecurityConfigurerAdapter { > > >> > > >> .. user details service, auth providers etc > > >> > > >> @Override > > >> protected void configure(HttpSecurity http) throws Exception { > > >> > > >> > > >> > > > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > > >> .and().csrf().disable() > > >> > > >> > > >> > > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > > >> .and().httpBasic(); > > >> } > > >> } > > >> > > >> @Configuration > > >> @Order(2) > > >> public static class WicketSecurityConfig extends > > >> WebSecurityConfigurerAdapter { > > >> > > >> .. user details service, auth providers etc > > >> > > >> @Override > > >> protected void configure(AuthenticationManagerBuilder auth) > > throws > > >> Exception { > > >> auth.authenticationProvider(wicketAuthenticationProvider); > > >> } > > >> > > >> @Override > > >> protected void configure(HttpSecurity http) throws Exception { > > >> http.antMatcher("/page/**").authorizeRequests() > > >> .antMatchers("/page/login**").permitAll() > > >> .antMatchers("/page/**").hasRole("ROLE") > > >> > > >> > > >> > > > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > > >> .and().csrf().disable(); > > >> } > > >> > > >> @Override > > >> @Bean(name = "authenticationManager") > > >> public AuthenticationManager authenticationManagerBean() > throws > > >> Exception { > > >> return super.authenticationManagerBean(); > > >> } > > >> } > >
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
r().encode("actuator")).roles("ACTUATOR") > .build()); > > return manager; > } > } > > > On Thu, Jan 24, 2019 at 3:19 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Thanks will try it:) > > > > On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros > > wrote: > > > >> In my case it works something like this: > >> > >> @Configuration > >> @EnableWebSecurity > >> public class SecurityConfiguration { > >> > >> @Configuration > >> @Order(1) > >> public static class RestSecurityConfig extends > >> WebSecurityConfigurerAdapter { > >> > >> .. user details service, auth providers etc > >> > >> @Override > >> protected void configure(HttpSecurity http) throws Exception { > >> > >> > >> > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > >> .and().csrf().disable() > >> > >> > >> > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > >> .and().httpBasic(); > >> } > >> } > >> > >> @Configuration > >> @Order(2) > >> public static class WicketSecurityConfig extends > >> WebSecurityConfigurerAdapter { > >> > >> .. user details service, auth providers etc > >> > >> @Override > >> protected void configure(AuthenticationManagerBuilder auth) > throws > >> Exception { > >> auth.authenticationProvider(wicketAuthenticationProvider); > >> } > >> > >> @Override > >> protected void configure(HttpSecurity http) throws Exception { > >> http.antMatcher("/page/**").authorizeRequests() > >> .antMatchers("/page/login**").permitAll() > >> .antMatchers("/page/**").hasRole("ROLE") > >> > >> > >> > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > >> .and().csrf().disable(); > >> } > >> > >> @Override > >> @Bean(name = "authenticationManager") > >> public AuthenticationManager authenticationManagerBean() throws > >> Exception { > >> return super.authenticationManagerBean(); > >> } > >> } > >> } > >> > >> The RestSecurityConfigwould be what you would do for actuators, for me > >> thats the REST API. > >> Not the order of "antMatcher", "authorizeRequests" and " antMatchers". > >> > >> Zbynek > >> > >> On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < > >> nino.martinez.w...@gmail.com> wrote: > >> > >> > do you have an example? OR is it just to cut them into two like: > >> > WebSecurityConfigurerAdapter A: > >> > > >> > > >> > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > >> > > >> > WebSecurityConfigurerAdapter B: > >> > http > >> > .csrf().disable() > >> > .authorizeRequests().anyRequest().permitAll() > >> > .and() > >> > .logout() > >> > .permitAll(); > >> > http.headers().frameOptions().disable(); > >> > > >> > > >> > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros > > >> > wrote: > >> > > >> > > Hi, > >> > > > >> > > I did similar thing, the trick here is to use two > >> > > WebSecurityConfigurerAdaptes. > >> > > > >> > > Zbynek > >> > > > >> > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > >> > > nino.martinez.w...@gmail.com> wrote: > >> > > > >> > > > Hope its okay to use the wicket user mailing list for this:) > >> > > > > >> > > > First of all thanks to MarcGiffing for making the project. But I > >> cannot > >> > > get > >> > > > actuator endpoints to work with spring security and wicket spring > >> > boot.. > >> > > > I've tried a lot of things.. > >> > > > > >> > > > IN my WebSecurityConfigurerAdapter: > >> > > > > >> > > > http > >> > > > > >> > > > > >> > > > > >> > > > >> > > >> > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > >> > > > > >> > > > http > >> > > > .csrf().disable() > >> > > > .authorizeRequests().anyRequest().permitAll() > >> > > > .and() > >> > > > .logout() > >> > > > .permitAll(); > >> > > > http.headers().frameOptions().disable(); > >> > > > > >> > > > But that just disables actuator and messes with the Wicket side of > >> the > >> > > > security.. Any one have some clues= > >> > > > > >> > > > -- > >> > > > Best regards / Med venlig hilsen > >> > > > Nino Martinez > >> > > > > >> > > > >> > > >> > > >> > -- > >> > Best regards / Med venlig hilsen > >> > Nino Martinez > >> > > >> > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > Best regards / Med venlig hilsen > Nino Martinez >
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
agement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) >> .and().httpBasic(); >> } >> } >> >> @Configuration >> @Order(2) >> public static class WicketSecurityConfig extends >> WebSecurityConfigurerAdapter { >> >> .. user details service, auth providers etc >> >> @Override >> protected void configure(AuthenticationManagerBuilder auth) throws >> Exception { >> auth.authenticationProvider(wicketAuthenticationProvider); >> } >> >> @Override >> protected void configure(HttpSecurity http) throws Exception { >> http.antMatcher("/page/**").authorizeRequests() >> .antMatchers("/page/login**").permitAll() >> .antMatchers("/page/**").hasRole("ROLE") >> >> >> .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") >> .and().csrf().disable(); >> } >> >> @Override >> @Bean(name = "authenticationManager") >> public AuthenticationManager authenticationManagerBean() throws >> Exception { >> return super.authenticationManagerBean(); >> } >> } >> } >> >> The RestSecurityConfigwould be what you would do for actuators, for me >> thats the REST API. >> Not the order of "antMatcher", "authorizeRequests" and " antMatchers". >> >> Zbynek >> >> On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >> > do you have an example? OR is it just to cut them into two like: >> > WebSecurityConfigurerAdapter A: >> > >> > >> http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); >> > >> > WebSecurityConfigurerAdapter B: >> > http >> > .csrf().disable() >> > .authorizeRequests().anyRequest().permitAll() >> > .and() >> > .logout() >> > .permitAll(); >> > http.headers().frameOptions().disable(); >> > >> > >> > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros >> > wrote: >> > >> > > Hi, >> > > >> > > I did similar thing, the trick here is to use two >> > > WebSecurityConfigurerAdaptes. >> > > >> > > Zbynek >> > > >> > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < >> > > nino.martinez.w...@gmail.com> wrote: >> > > >> > > > Hope its okay to use the wicket user mailing list for this:) >> > > > >> > > > First of all thanks to MarcGiffing for making the project. But I >> cannot >> > > get >> > > > actuator endpoints to work with spring security and wicket spring >> > boot.. >> > > > I've tried a lot of things.. >> > > > >> > > > IN my WebSecurityConfigurerAdapter: >> > > > >> > > > http >> > > > >> > > > >> > > > >> > > >> > >> .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); >> > > > >> > > > http >> > > > .csrf().disable() >> > > > .authorizeRequests().anyRequest().permitAll() >> > > > .and() >> > > > .logout() >> > > > .permitAll(); >> > > > http.headers().frameOptions().disable(); >> > > > >> > > > But that just disables actuator and messes with the Wicket side of >> the >> > > > security.. Any one have some clues= >> > > > >> > > > -- >> > > > Best regards / Med venlig hilsen >> > > > Nino Martinez >> > > > >> > > >> > >> > >> > -- >> > Best regards / Med venlig hilsen >> > Nino Martinez >> > >> > > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Thanks will try it:) On Thu, Jan 24, 2019 at 3:14 PM Zbynek Vavros wrote: > In my case it works something like this: > > @Configuration > @EnableWebSecurity > public class SecurityConfiguration { > > @Configuration > @Order(1) > public static class RestSecurityConfig extends > WebSecurityConfigurerAdapter { > > .. user details service, auth providers etc > > @Override > protected void configure(HttpSecurity http) throws Exception { > > http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() > .and().csrf().disable() > > .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) > .and().httpBasic(); > } > } > > @Configuration > @Order(2) > public static class WicketSecurityConfig extends > WebSecurityConfigurerAdapter { > > .. user details service, auth providers etc > > @Override > protected void configure(AuthenticationManagerBuilder auth) throws > Exception { > auth.authenticationProvider(wicketAuthenticationProvider); > } > > @Override > protected void configure(HttpSecurity http) throws Exception { > http.antMatcher("/page/**").authorizeRequests() > .antMatchers("/page/login**").permitAll() > .antMatchers("/page/**").hasRole("ROLE") > > .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") > .and().csrf().disable(); > } > > @Override > @Bean(name = "authenticationManager") > public AuthenticationManager authenticationManagerBean() throws > Exception { > return super.authenticationManagerBean(); > } > } > } > > The RestSecurityConfigwould be what you would do for actuators, for me > thats the REST API. > Not the order of "antMatcher", "authorizeRequests" and " antMatchers". > > Zbynek > > On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > do you have an example? OR is it just to cut them into two like: > > WebSecurityConfigurerAdapter A: > > > > > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > WebSecurityConfigurerAdapter B: > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > > > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros > > wrote: > > > > > Hi, > > > > > > I did similar thing, the trick here is to use two > > > WebSecurityConfigurerAdaptes. > > > > > > Zbynek > > > > > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > > > nino.martinez.w...@gmail.com> wrote: > > > > > > > Hope its okay to use the wicket user mailing list for this:) > > > > > > > > First of all thanks to MarcGiffing for making the project. But I > cannot > > > get > > > > actuator endpoints to work with spring security and wicket spring > > boot.. > > > > I've tried a lot of things.. > > > > > > > > IN my WebSecurityConfigurerAdapter: > > > > > > > > http > > > > > > > > > > > > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > > > > > http > > > > .csrf().disable() > > > > .authorizeRequests().anyRequest().permitAll() > > > > .and() > > > > .logout() > > > > .permitAll(); > > > > http.headers().frameOptions().disable(); > > > > > > > > But that just disables actuator and messes with the Wicket side of > the > > > > security.. Any one have some clues= > > > > > > > > -- > > > > Best regards / Med venlig hilsen > > > > Nino Martinez > > > > > > > > > > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
In my case it works something like this: @Configuration @EnableWebSecurity public class SecurityConfiguration { @Configuration @Order(1) public static class RestSecurityConfig extends WebSecurityConfigurerAdapter { .. user details service, auth providers etc @Override protected void configure(HttpSecurity http) throws Exception { http.antMatcher("/api/**").authorizeRequests().anyRequest().authenticated() .and().csrf().disable() .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS) .and().httpBasic(); } } @Configuration @Order(2) public static class WicketSecurityConfig extends WebSecurityConfigurerAdapter { .. user details service, auth providers etc @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.authenticationProvider(wicketAuthenticationProvider); } @Override protected void configure(HttpSecurity http) throws Exception { http.antMatcher("/page/**").authorizeRequests() .antMatchers("/page/login**").permitAll() .antMatchers("/page/**").hasRole("ROLE") .and().formLogin().loginPage("/page/login").loginProcessingUrl("/fake-url") .and().csrf().disable(); } @Override @Bean(name = "authenticationManager") public AuthenticationManager authenticationManagerBean() throws Exception { return super.authenticationManagerBean(); } } } The RestSecurityConfigwould be what you would do for actuators, for me thats the REST API. Not the order of "antMatcher", "authorizeRequests" and " antMatchers". Zbynek On Thu, Jan 24, 2019 at 3:09 PM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > do you have an example? OR is it just to cut them into two like: > WebSecurityConfigurerAdapter A: > > > http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > WebSecurityConfigurerAdapter B: > http > .csrf().disable() > .authorizeRequests().anyRequest().permitAll() > .and() > .logout() > .permitAll(); > http.headers().frameOptions().disable(); > > > On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros > wrote: > > > Hi, > > > > I did similar thing, the trick here is to use two > > WebSecurityConfigurerAdaptes. > > > > Zbynek > > > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > > > Hope its okay to use the wicket user mailing list for this:) > > > > > > First of all thanks to MarcGiffing for making the project. But I cannot > > get > > > actuator endpoints to work with spring security and wicket spring > boot.. > > > I've tried a lot of things.. > > > > > > IN my WebSecurityConfigurerAdapter: > > > > > > http > > > > > > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > > > http > > > .csrf().disable() > > > .authorizeRequests().anyRequest().permitAll() > > > .and() > > > .logout() > > > .permitAll(); > > > http.headers().frameOptions().disable(); > > > > > > But that just disables actuator and messes with the Wicket side of the > > > security.. Any one have some clues= > > > > > > -- > > > Best regards / Med venlig hilsen > > > Nino Martinez > > > > > > > > -- > Best regards / Med venlig hilsen > Nino Martinez >
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Hi, I did similar thing, the trick here is to use two WebSecurityConfigurerAdaptes. Zbynek On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hope its okay to use the wicket user mailing list for this:) > > First of all thanks to MarcGiffing for making the project. But I cannot get > actuator endpoints to work with spring security and wicket spring boot.. > I've tried a lot of things.. > > IN my WebSecurityConfigurerAdapter: > > http > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > http > .csrf().disable() > .authorizeRequests().anyRequest().permitAll() > .and() > .logout() > .permitAll(); > http.headers().frameOptions().disable(); > > But that just disables actuator and messes with the Wicket side of the > security.. Any one have some clues= > > -- > Best regards / Med venlig hilsen > Nino Martinez >
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
do you have an example? OR is it just to cut them into two like: WebSecurityConfigurerAdapter A: http.authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); WebSecurityConfigurerAdapter B: http .csrf().disable() .authorizeRequests().anyRequest().permitAll() .and() .logout() .permitAll(); http.headers().frameOptions().disable(); On Thu, Jan 24, 2019 at 3:06 PM Zbynek Vavros wrote: > Hi, > > I did similar thing, the trick here is to use two > WebSecurityConfigurerAdaptes. > > Zbynek > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hope its okay to use the wicket user mailing list for this:) > > > > First of all thanks to MarcGiffing for making the project. But I cannot > get > > actuator endpoints to work with spring security and wicket spring boot.. > > I've tried a lot of things.. > > > > IN my WebSecurityConfigurerAdapter: > > > > http > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > But that just disables actuator and messes with the Wicket side of the > > security.. Any one have some clues= > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Already done that.. Thanks for the idea.. On my webservice project I am doing this: http .authorizeRequests() .antMatchers("/services/**").hasRole("USER").and().httpBasic().and(). csrf().disable(); http .authorizeRequests() .antMatchers("/actuator/**").hasRole("ACTUATOR").and().httpBasic().and(). csrf().disable(); And its working fine, I am wondering if its because my mountpoints for wicket all are mapped to root like /home /login .. Which could conflict with /actuator? On Thu, Jan 24, 2019 at 3:01 PM Andrea Del Bene wrote: > I had a problem with Spring Boot 2 and actuator as many of them are > disabled by default in the new version. I don't know if this is the case > for you, but I would try enabling all of them via config file. For example > with yml is something like: > > management: > endpoints: > web: > exposure: > include: "*" > > On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > > > Hope its okay to use the wicket user mailing list for this:) > > > > First of all thanks to MarcGiffing for making the project. But I cannot > get > > actuator endpoints to work with spring security and wicket spring boot.. > > I've tried a lot of things.. > > > > IN my WebSecurityConfigurerAdapter: > > > > http > > > > > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > > > http > > .csrf().disable() > > .authorizeRequests().anyRequest().permitAll() > > .and() > > .logout() > > .permitAll(); > > http.headers().frameOptions().disable(); > > > > But that just disables actuator and messes with the Wicket side of the > > security.. Any one have some clues= > > > > -- > > Best regards / Med venlig hilsen > > Nino Martinez > > > > > -- > Andrea Del Bene. > Apache Wicket committer. > -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
I had a problem with Spring Boot 2 and actuator as many of them are disabled by default in the new version. I don't know if this is the case for you, but I would try enabling all of them via config file. For example with yml is something like: management: endpoints: web: exposure: include: "*" On Thu, Jan 24, 2019 at 2:55 PM nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hope its okay to use the wicket user mailing list for this:) > > First of all thanks to MarcGiffing for making the project. But I cannot get > actuator endpoints to work with spring security and wicket spring boot.. > I've tried a lot of things.. > > IN my WebSecurityConfigurerAdapter: > > http > > > .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); > > http > .csrf().disable() > .authorizeRequests().anyRequest().permitAll() > .and() > .logout() > .permitAll(); > http.headers().frameOptions().disable(); > > But that just disables actuator and messes with the Wicket side of the > security.. Any one have some clues= > > -- > Best regards / Med venlig hilsen > Nino Martinez > -- Andrea Del Bene. Apache Wicket committer.
Wicket Spring boot versus actuator (wicket 8.2.0) + spring security (boot 2.1.2)
Hope its okay to use the wicket user mailing list for this:) First of all thanks to MarcGiffing for making the project. But I cannot get actuator endpoints to work with spring security and wicket spring boot.. I've tried a lot of things.. IN my WebSecurityConfigurerAdapter: http .authorizeRequests().antMatchers("/actuator/**","/actuator").hasRole("ACTUATOR").and().httpBasic(); http .csrf().disable() .authorizeRequests().anyRequest().permitAll() .and() .logout() .permitAll(); http.headers().frameOptions().disable(); But that just disables actuator and messes with the Wicket side of the security.. Any one have some clues= -- Best regards / Med venlig hilsen Nino Martinez
Re: Wicket Spring Boot open entity manager in view config
Hi, i can answer myself :-) public @Bean FilterRegistrationBean openEntityManagerInViewFilter() { FilterRegistrationBean registration = new FilterRegistrationBean(); registration.setFilter(new OpenEntityManagerInViewFilter()); registration.setName("openEntityManagerInView"); registration.addUrlPatterns("/*"); return registration; } If some1 else looks for this. Cheers Per Am 23.03.2018 um 19:47 schrieb Per Newgro: Hello, we would like to use the open-entitymanager-in-view pattern. It was working in our "old fashioned" spring application by configuring filter in web.xml. But we can not find the appropriate config for wicket spring boot. Enable spring.jpa.open-entitymanager-in-view=true seems not to be enough. We still get LazyInitException - no session. Can one of you please provide a short comment, what we can still check? Thanks for your support. Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Spring Boot open entity manager in view config
Hello, we would like to use the open-entitymanager-in-view pattern. It was working in our "old fashioned" spring application by configuring filter in web.xml. But we can not find the appropriate config for wicket spring boot. Enable spring.jpa.open-entitymanager-in-view=true seems not to be enough. We still get LazyInitException - no session. Can one of you please provide a short comment, what we can still check? Thanks for your support. Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring Boot Article
On 02/04/2017 22:00, Marc wrote: Hey sorry Tobias, I've had some problems with the Spring intetration. I don't remember exactly what the problem was but it was a little bit frustrating so that I'm lost the sight of it (Spring AOP / AspectJ related - no direct relation to your project) . @Andrea I've subscribed the mailing list :). Thanks for the article! I suspected it :-) Btw I've just released version 2.0.1 which uses Wicket 8.0.0-M5. Thanks for your work! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Boot-Article-tp4677570p4677575.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring Boot Article
Hey sorry Tobias, I've had some problems with the Spring intetration. I don't remember exactly what the problem was but it was a little bit frustrating so that I'm lost the sight of it (Spring AOP / AspectJ related - no direct relation to your project) . @Andrea I've subscribed the mailing list :). Thanks for the article! Btw I've just released version 2.0.1 which uses Wicket 8.0.0-M5. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Boot-Article-tp4677570p4677575.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring Boot Article
sadly not. I was just in contact with him, because of metrics, but that is some time ago. kind regards Tobias > Am 02.04.2017 um 16:58 schrieb Andrea Del Bene: > > You're welcome! > ps: anybody is in contact with Marc > ? > > On 2 Apr 2017 16:55, "Tobias Soloschenko" > wrote: > > Hi, > > just wanted to point out that this is really great: > > https://mobile.twitter.com/apache_wicket/status/847763903249600513 > > I think for Spring - Spring Boot is the future. Thanks for it Marc Giffing > and Andrea Del Bene for the article! I am going to play around with this > soon. :-) > > kind regards > > Tobias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Spring Boot Article
You're welcome! ps: anybody is in contact with Marc ? On 2 Apr 2017 16:55, "Tobias Soloschenko"wrote: Hi, just wanted to point out that this is really great: https://mobile.twitter.com/apache_wicket/status/847763903249600513 I think for Spring - Spring Boot is the future. Thanks for it Marc Giffing and Andrea Del Bene for the article! I am going to play around with this soon. :-) kind regards Tobias
Wicket Spring Boot Article
Hi, just wanted to point out that this is really great: https://mobile.twitter.com/apache_wicket/status/847763903249600513 I think for Spring - Spring Boot is the future. Thanks for it Marc Giffing and Andrea Del Bene for the article! I am going to play around with this soon. :-) kind regards Tobias
Re: Wicket+Spring 4 integration
Hi, You could use global Ajax listener that adds the CSRF token to all Ajax requests. In YourApp#init() method do: getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener() { @Override public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior, AjaxRequestAttributes attributes) { if (attributes.getMethod() == Method.POST) { attributes.getExtraParameters().put("CSRF-TOKEN", theTokenTakenFromSpringSecurity); } } }) I am not sure where Spring Security looks for the token in a request. If it is not possible via request parameter then you can use AjaxCallListener#beforeSend() to put it in the headers. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 5, 2016 at 10:53 AM, mr <maliros1...@gmail.com> wrote: > hi, > > If I remove tag(because I need csrf protection > in my app) > I'm getting exception when pressing the button in my login page: > "Wicket.Ajax.Call.failure: Error while parsing response: Could not verify > the provided CSRF token because your session was not found" > Wicket version-6.24.0 > Spring-security version- 4.1.3 > > Can someone help me? > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4675645.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket+Spring 4 integration
hi, If I remove tag(because I need csrf protection in my app) I'm getting exception when pressing the button in my login page: "Wicket.Ajax.Call.failure: Error while parsing response: Could not verify the provided CSRF token because your session was not found" Wicket version-6.24.0 Spring-security version- 4.1.3 Can someone help me? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4675645.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket & Spring Boot
Hi Marc That's cool! I made a Wicket + Spring Boot "Getting Started"-style guide a couple of months ago: https://github.com/ageery/getting-started-guides/tree/wicket. The code is on the wicket branch in the complete directory. It's a filterable data table with ajax CRUD functionality, built on Spring Boot, Spring Data JPA, Wicket 7, Java 8 and Wicket Bootstrap. It was inspired by the Vaadin + Spring Boot CRUD example: https://spring.io/guides/gs/crud-with-vaadin/ Andrew On Thu, Nov 12, 2015 at 5:20 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi Marc, > > Welcome to the mailing list and thank you for sharing your project with us! > I have seen some Wicket+SpringBoot apps both in Wicket and Wicket-Bootstrap > issue trackers but as far as I can see your project doesn't just use SB but > actually integrates with it. > I'll keep an eye on it! > > P.S. I guess you know that web.de mail client is based on Wicket too ? :-) > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Thu, Nov 12, 2015 at 10:56 PM, Marc <marcgiff...@web.de> wrote: > > > Hi all, > > it's my first post, so I'm hopefully subscribed to the mailing list. > > > > Is there currently any Spring Boot integration support? > > > > I've started with a Spring Boot Wicket integration: wicket-spring-boot > > <https://github.com/MarcGiffing/wicket-spring-boot> . > > > > Besides the maven pom.xml you currently only need thisconfiguration > class: > > WicketApplication.java > > < > > > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter-example/src/main/java/com/giffing/wicket/spring/boot/example/WicketApplication.java > > > > > to get a full working wicket application. You only have to execute the > main > > method. You should get a default login page and a simple home page. > Spring > > security is automatically configured in a default configuration. Within a > > property file you can switch between deployment or development > > configruation > > > > wicket.configurationType=DEPLOYMENT > > wicket.compressHTMLEnabled=true HTMLCompressingConfig.java > > < > > > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/HTMLCompressingConfig.java > > > > > wicket.statelessCheckerEnabled=true StatelessCheckerConfig.java > > < > > > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/StatelessCheckerConfig.java > > > > > > > My main goal was to learn a bit about Spring Boot but maybe its > interessing > > for somone in the Wicket community > > > > GreetsMarc > > > > -- > > View this message in context: > > > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Boot-tp4672591.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Re: Wicket & Spring Boot
Hi Marc, Welcome to the mailing list and thank you for sharing your project with us! I have seen some Wicket+SpringBoot apps both in Wicket and Wicket-Bootstrap issue trackers but as far as I can see your project doesn't just use SB but actually integrates with it. I'll keep an eye on it! P.S. I guess you know that web.de mail client is based on Wicket too ? :-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 12, 2015 at 10:56 PM, Marc <marcgiff...@web.de> wrote: > Hi all, > it's my first post, so I'm hopefully subscribed to the mailing list. > > Is there currently any Spring Boot integration support? > > I've started with a Spring Boot Wicket integration: wicket-spring-boot > <https://github.com/MarcGiffing/wicket-spring-boot> . > > Besides the maven pom.xml you currently only need thisconfiguration class: > WicketApplication.java > < > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter-example/src/main/java/com/giffing/wicket/spring/boot/example/WicketApplication.java > > > to get a full working wicket application. You only have to execute the main > method. You should get a default login page and a simple home page. Spring > security is automatically configured in a default configuration. Within a > property file you can switch between deployment or development > configruation > > wicket.configurationType=DEPLOYMENT > wicket.compressHTMLEnabled=true HTMLCompressingConfig.java > < > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/HTMLCompressingConfig.java > > > wicket.statelessCheckerEnabled=true StatelessCheckerConfig.java > < > https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/StatelessCheckerConfig.java > > > > My main goal was to learn a bit about Spring Boot but maybe its interessing > for somone in the Wicket community > > GreetsMarc > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Boot-tp4672591.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Wicket & Spring Boot
Hi all, it's my first post, so I'm hopefully subscribed to the mailing list. Is there currently any Spring Boot integration support? I've started with a Spring Boot Wicket integration: wicket-spring-boot <https://github.com/MarcGiffing/wicket-spring-boot> . Besides the maven pom.xml you currently only need thisconfiguration class: WicketApplication.java <https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter-example/src/main/java/com/giffing/wicket/spring/boot/example/WicketApplication.java> to get a full working wicket application. You only have to execute the main method. You should get a default login page and a simple home page. Spring security is automatically configured in a default configuration. Within a property file you can switch between deployment or development configruation wicket.configurationType=DEPLOYMENT wicket.compressHTMLEnabled=true HTMLCompressingConfig.java <https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/HTMLCompressingConfig.java> wicket.statelessCheckerEnabled=true StatelessCheckerConfig.java <https://github.com/MarcGiffing/wicket-spring-boot/blob/master/wicket-spring-boot-starter/src/main/java/com/giffing/wicket/spring/boot/starter/configuration/extensions/StatelessCheckerConfig.java> My main goal was to learn a bit about Spring Boot but maybe its interessing for somone in the Wicket community GreetsMarc -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Boot-tp4672591.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring 4 integration
Thanks for sharing! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Sep 26, 2015 at 2:04 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: > Hi, > > Finally I came over my problems. Now my 6.20.0 works fine together with > Spring 4.1.5 and Spring Security 4.0.2. > My login page is mounted under /login. So the key was to define login-page > and more important the login-process-url. > > Hope this might help to others who struggling with upgrade to Spring > Security 4. > > use-expressions="false"> > > > login-processing-url="/"/> > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672048.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket+Spring 4 integration
Hi, Finally I came over my problems. Now my 6.20.0 works fine together with Spring 4.1.5 and Spring Security 4.0.2. My login page is mounted under /login. So the key was to define login-page and more important the login-process-url. Hope this might help to others who struggling with upgrade to Spring Security 4. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672048.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket+Spring 4 integration
Hi, I'm just wondering when do you plan to support spring 4 in wicket-spring module ? I try to implement an Oauth2 server on top of my Wicket app and oauth2 (at least 2.0.6 and above) requires spring 4. Right now I'm not able to upgrade due to lack of wicket spring 4 support. TIA., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring 4 integration
Hi, There is no reason Wicket to upgrade to Spring to 4.x. You can set Spring version in your pom.xml to 4.x. Wicket 7.x uses Spring 4: https://github.com/apache/wicket/blob/master/pom.xml#L135 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Sep 24, 2015 at 3:56 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: > Hi, > > I'm just wondering when do you plan to support spring 4 in wicket-spring > module ? > I try to implement an Oauth2 server on top of my Wicket app and oauth2 (at > least 2.0.6 and above) requires spring 4. Right now I'm not able to upgrade > due to lack of wicket spring 4 support. > > TIA., Sandor > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket+Spring 4 integration
On Thu, Sep 24, 2015 at 7:06 PM, Sandor Feher <sfe...@bluesystem.hu> wrote: > So this means if I want to use Spring 4 then I must upgrade to Wicket 7. > No. You can use Spring 4.x with Wicket 6.x. > (Currently I use 6.20.0) > > Can I do it safely ? Is 7.0 stable enough ? > > TIA,Sandor > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672033.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket+Spring 4 integration
On Thu, Sep 24, 2015 at 8:40 PM, Richard W. Adams <rwada...@up.com> wrote: > FYI, we use Spring 4.0.5 with Wicket 1.7.5 & have not encountered any > There is no Wicket 1.7.5 :) > issues. Your mileage may vary. > > > > > From: Sandor Feher <sfe...@bluesystem.hu> > To: users@wicket.apache.org > Date: 09/24/2015 01:37 PM > Subject:Re: Wicket+Spring 4 integration > > > > This email originated from outside of the company. Please use discretion > if opening attachments or clicking on links. > > I tried to do but I experienced some problems. They might be related to > Spring but I'm not sure. > I use spring security. Default login page has changed in 4 so I set my > wicket app's login page. > Then login page appeared but there was no action made when I clicked > submit > button. > I dig Springs migration guide but did not found any clue related to my > issue. > I reverted back to 3.2.5 and everything worked like expected. > So this is the whole story. > > -- > View this message in context: > > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672037.html > > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > ** > > This email and any attachments may contain information that is > confidential and/or privileged for the sole use of the intended recipient. > Any use, review, disclosure, copying, distribution or reliance by others, > and any forwarding of this email or its contents, without the express > permission of the sender is strictly prohibited by law. If you are not the > intended recipient, please contact the sender immediately, delete the > e-mail and destroy all copies. > ** >
Re: Wicket+Spring 4 integration
FYI, we use Spring 4.0.5 with Wicket 1.7.5 & have not encountered any issues. Your mileage may vary. From: Sandor Feher <sfe...@bluesystem.hu> To: users@wicket.apache.org Date: 09/24/2015 01:37 PM Subject: Re: Wicket+Spring 4 integration This email originated from outside of the company. Please use discretion if opening attachments or clicking on links. I tried to do but I experienced some problems. They might be related to Spring but I'm not sure. I use spring security. Default login page has changed in 4 so I set my wicket app's login page. Then login page appeared but there was no action made when I clicked submit button. I dig Springs migration guide but did not found any clue related to my issue. I reverted back to 3.2.5 and everything worked like expected. So this is the whole story. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672037.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org ** This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient. Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law. If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies. **
Re: Wicket+Spring 4 integration
Just sharing my experience; I recently migrated medium scale web application (40+ screens) from wicket 1.4 + Spring 3.x + Hibernate 3.x to Wicket 7+ Spring 4.2 +Hibernate 4.2 without any integration issue. -Mihir. On Thu, Sep 24, 2015, 1:15 PM Sandor Feher <sfe...@bluesystem.hu> wrote: > So this means if I want to use Spring 4 then I must upgrade to Wicket 7. > (Currently I use 6.20.0) > > Can I do it safely ? Is 7.0 stable enough ? > > TIA,Sandor > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672033.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Wicket+Spring 4 integration
Sounds good. I have up to 15 pages , wicket 6, hibernate 4 and spring 3. Not so simple but not a nightmare. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672035.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring 4 integration
I tried to do but I experienced some problems. They might be related to Spring but I'm not sure. I use spring security. Default login page has changed in 4 so I set my wicket app's login page. Then login page appeared but there was no action made when I clicked submit button. I dig Springs migration guide but did not found any clue related to my issue. I reverted back to 3.2.5 and everything worked like expected. So this is the whole story. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672037.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring 4 integration
So this means if I want to use Spring 4 then I must upgrade to Wicket 7. (Currently I use 6.20.0) Can I do it safely ? Is 7.0 stable enough ? TIA,Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-4-integration-tp4672031p4672033.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple message solution Wicket-Spring combined application
Hi Sebastien, It would worth a try but session scoped spring bean will fulfill all my needs right know. Thank you anyway! Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461p4670482.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple message solution Wicket-Spring combined application
Hi Martin, Thanks! That's it I was looking for. I use spring beans I inject to wicket context so it should be trivial choice to me but I did not keep it in my mind. Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461p4670481.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Simple message solution Wicket-Spring combined application
Hi, I'm looking for a simple and feasible message sending solution for my application. The main goal is that components (both wicket and spring) should be send messages if a specific event occurs to users. The message will be displayed at top of the page with help AjaxSelfUpdatingBehaviour. Spring messages are system wide. (Eg. all users should be notified) while wicket ones can be session wide. Wicket's event mechanism can be fine but my Spring based web service does not know anything about wicket sessions (and should not of course). I can do it via database table but I will cause overhead because of two seconds refresh time I set in AjaxSelfUpdatingBehaviour. So I'm looking for a more lightweight approach. Thanks! Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple message solution Wicket-Spring combined application
Hi, The session services could store messages to application scoped bean. The Wicket components in either the Wicket Session or session scoped bean. The AjaxSelfUpdatingBehaviour will check both. The session scoped messages could be deleted after render but you have to think of a way how to mark an application scoped message as read by a client and delete it when all it is read by all clients. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Apr 22, 2015 at 10:58 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I'm looking for a simple and feasible message sending solution for my application. The main goal is that components (both wicket and spring) should be send messages if a specific event occurs to users. The message will be displayed at top of the page with help AjaxSelfUpdatingBehaviour. Spring messages are system wide. (Eg. all users should be notified) while wicket ones can be session wide. Wicket's event mechanism can be fine but my Spring based web service does not know anything about wicket sessions (and should not of course). I can do it via database table but I will cause overhead because of two seconds refresh time I set in AjaxSelfUpdatingBehaviour. So I'm looking for a more lightweight approach. Thanks! Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Simple message solution Wicket-Spring combined application
Hi If you are looking for another approach, you can give a try to native websockets. In the java sample below, the business tier is triggering a listener event, which received by the web tier, which sends the websocket message. Client side, the page is registered to the websocket by a Behavior. When a message arrives, it is displayed. The scope of the websocket message broadcast can be controlled IIRC (Session, Application). Wiki: https://cwiki.apache.org/confluence/display/WICKET/Wicket+Native+WebSockets Sample (scala) https://github.com/martin-g/wicket-native-websocket-example Sample (java, cdi ejb) https://github.com/sebfz1/wicket-quickstart-cdi-async Best regards, Sebastien On Wed, Apr 22, 2015 at 10:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, The session services could store messages to application scoped bean. The Wicket components in either the Wicket Session or session scoped bean. The AjaxSelfUpdatingBehaviour will check both. The session scoped messages could be deleted after render but you have to think of a way how to mark an application scoped message as read by a client and delete it when all it is read by all clients. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Apr 22, 2015 at 10:58 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I'm looking for a simple and feasible message sending solution for my application. The main goal is that components (both wicket and spring) should be send messages if a specific event occurs to users. The message will be displayed at top of the page with help AjaxSelfUpdatingBehaviour. Spring messages are system wide. (Eg. all users should be notified) while wicket ones can be session wide. Wicket's event mechanism can be fine but my Spring based web service does not know anything about wicket sessions (and should not of course). I can do it via database table but I will cause overhead because of two seconds refresh time I set in AjaxSelfUpdatingBehaviour. So I'm looking for a more lightweight approach. Thanks! Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Simple-message-solution-Wicket-Spring-combined-application-tp4670461.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Spring
Good day, Everyone! Is there any documentation on injecting Spring beans into Wicket components using XML (I want to avoid using annotations). All helpful advice will be greatly appreciated. Thanx -- There are 10 types of people in this world, those who understand binary and those who don't
Re: Wicket Spring
Good evening, Have a look here: https://cwiki.apache.org/confluence/display/WICKET/Spring It's a bit old but still useful. Plus you can check the wicket-phonebook example application from wicketstuff, it gives good code examples. Regards, Pierre On Mon, Nov 17, 2014 at 1:26 AM, Kevin James Baxter meta.d...@verizon.net wrote: Good day, Everyone! Is there any documentation on injecting Spring beans into Wicket components using XML (I want to avoid using annotations). All helpful advice will be greatly appreciated. Thanx -- There are 10 types of people in this world, those who understand binary and those who don't -- Si le sang ne coule pas assez chaud dans tes veines, je le répandrai sur le sable pour qu'il bouille au soleil.
Re: Wicket Spring
Excellent! That example worked perfectly. Thank you, Pierre! On Mon, 2014-11-17 at 01:29 +0100, Zala Pierre GOUPIL wrote: Good evening, Have a look here: https://cwiki.apache.org/confluence/display/WICKET/Spring It's a bit old but still useful. Plus you can check the wicket-phonebook example application from wicketstuff, it gives good code examples. Regards, Pierre On Mon, Nov 17, 2014 at 1:26 AM, Kevin James Baxter meta.d...@verizon.net wrote: Good day, Everyone! Is there any documentation on injecting Spring beans into Wicket components using XML (I want to avoid using annotations). All helpful advice will be greatly appreciated. Thanx -- There are 10 types of people in this world, those who understand binary and those who don't -- There are 10 types of people in this world, those who understand binary and those who don't
Re: Wicket Spring
You're welcome! :-) On Mon, Nov 17, 2014 at 2:18 AM, Kevin James Baxter meta.d...@verizon.net wrote: Excellent! That example worked perfectly. Thank you, Pierre! On Mon, 2014-11-17 at 01:29 +0100, Zala Pierre GOUPIL wrote: Good evening, Have a look here: https://cwiki.apache.org/confluence/display/WICKET/Spring It's a bit old but still useful. Plus you can check the wicket-phonebook example application from wicketstuff, it gives good code examples. Regards, Pierre On Mon, Nov 17, 2014 at 1:26 AM, Kevin James Baxter meta.d...@verizon.net wrote: Good day, Everyone! Is there any documentation on injecting Spring beans into Wicket components using XML (I want to avoid using annotations). All helpful advice will be greatly appreciated. Thanx -- There are 10 types of people in this world, those who understand binary and those who don't -- There are 10 types of people in this world, those who understand binary and those who don't -- Si le sang ne coule pas assez chaud dans tes veines, je le répandrai sur le sable pour qu'il bouille au soleil.
Re: Wicket + Spring
JCoder wrote: Hi all, Im just trying to setup a basic project structure in Eclipse with Wicket and Spring. I think its pretty smart to separate both Wicket and Spring into two different Eclipse projects, isnt it? Thus, I created an Eclipse project for the Web part and one for the Spring (and later Hibernate as well) part. Now when I start Tomcat with Eclipse I get ...Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext Then something in your Web project references Spring. When you use wicket-spring, that's the case, for example. You can tell Eclipse that it shall get the Spring jars from your Spring project, then. In your Web project properties, in `Project references'. The Spring jars and all dependent jars must be marked as exported in your Spring projects Java Build Path. But note that in the end, Eclipse will deploy all these jars to the WEB-INF/lib directory of your Tomcat working directory (usually .metadata/.plugins/org.eclipse.wst.server.core/tmp*/wtpwebapps/ in your workspace directory). HTH, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod, Roedermark, Germany Email: jsch...@acm.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket + Spring
Hi all, Im just trying to setup a basic project structure in Eclipse with Wicket and Spring. I think its pretty smart to separate both Wicket and Spring into two different Eclipse projects, isnt it? Thus, I created an Eclipse project for the Web part and one for the Spring (and later Hibernate as well) part. Now when I start Tomcat with Eclipse I get ...Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext Thats not rocket science. After adding the corresponding Spring lib to the WEB-INF/lib folder another error message appears after server startup telling me that another class is missing from a different jar. Probably I will end up adding all Spring jars into my WEB-INF/lib folder. But thats not what I what. I dont want to add any Spring Core jar in my Web project (Reasons should be clear). I already added all Spring related jars into my different Spring Eclipse project. Any suggestions. Cheers, Y - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Spring
If you use Maven, it will take care of all the dependencies for you. That would be the easiest way to go. Make sure you make your Wicket project into a war by using the war packaging element and have the wicket project depend on the spring project. On 1/20/13 10:52 AM, JCoder wrote: Hi all, Im just trying to setup a basic project structure in Eclipse with Wicket and Spring. I think its pretty smart to separate both Wicket and Spring into two different Eclipse projects, isnt it? Thus, I created an Eclipse project for the Web part and one for the Spring (and later Hibernate as well) part. Now when I start Tomcat with Eclipse I get ...Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ConfigurableApplicationContext Thats not rocket science. After adding the corresponding Spring lib to the WEB-INF/lib folder another error message appears after server startup telling me that another class is missing from a different jar. Probably I will end up adding all Spring jars into my WEB-INF/lib folder. But thats not what I what. I dont want to add any Spring Core jar in my Web project (Reasons should be clear). I already added all Spring related jars into my different Spring Eclipse project. Any suggestions. Cheers, Y - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Spring
Hi, Look at http://jweekend.co.uk/dev/LegUp Some dependencies might be old but at least it will give you something from where to start, On Sun, Jan 20, 2013 at 5:52 PM, JCoder i...@jcoder.de wrote: Hi all, Im just trying to setup a basic project structure in Eclipse with Wicket and Spring. I think its pretty smart to separate both Wicket and Spring into two different Eclipse projects, isnt it? Thus, I created an Eclipse project for the Web part and one for the Spring (and later Hibernate as well) part. Now when I start Tomcat with Eclipse I get ...Caused by: java.lang.**NoClassDefFoundError: org/springframework/context/**ConfigurableApplicationContext** Thats not rocket science. After adding the corresponding Spring lib to the WEB-INF/lib folder another error message appears after server startup telling me that another class is missing from a different jar. Probably I will end up adding all Spring jars into my WEB-INF/lib folder. But thats not what I what. I dont want to add any Spring Core jar in my Web project (Reasons should be clear). I already added all Spring related jars into my different Spring Eclipse project. Any suggestions. Cheers, Y --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: Wicket + Spring
Well I dont use Maven, I start Tomcat from within Eclipse... Any ideas? If I start Spring standalone or Wicket+Tomcat standalon it works fine... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-tp4655546p460.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Spring
To go more into detail. The Web part is a dynamic web project and is added to Tomcat Server within Eclipse (Right-click on Tomcat in Servers-Tab - And and Remove - Add the web project.) The spring part is a just a java project... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-tp4655546p461.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring Security the Wicket way
Check out this open-source project http://www.jfrog.com/home/v_artifactory_opensource_source and look at security.xml file. It is good example how to integrate wicket and spring security. - -- http://www.linkedin.com/in/amorozov -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Security-the-Wicket-way-tp4652112p4652592.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring Security the Wicket way
Hi Michal, In the end I opted for shiro instead. Much simpler and does everything I need. See this: https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/shiro-security/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Security-the-Wicket-way-tp4652112p4652271.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring Security the Wicket way
Hello, I really would like to read some comments about this topic. Anyone have some experience with putting Spring Security and Wicket together? 2012/9/18 Luis Pureza pur...@gmail.com Hi, I'm new to both Wicket and Spring Security, so bear that in mind :) I'm trying to integrate Wicket and Spring Security into my webapp, but I'm not feeling happy with the end result. As you might know, Spring Security works by listening to requests sent to virtual URLs. So, for example, to login you have to send a request to '/j_spring_security_check' with the username in a parameter called 'j_username' and the password in 'j_password'. Similarly, to logout you send a request to '/j_spring_security_logout'. Currently I have a simple HTML login form with action set to '/j_spring_security_check' and it works fine, but this just bypasses Wicket completely. Moreover, it doesn't feel like the Wicket way. As someone else put it at http://tomaszdziurko.pl/2012/09/remember-functionality-apache-wicket/, (...) in my opinion using request based authentication framework with component based web framework is not the best idea. These two worlds just do not fit well together I tend to agree with his view. However, I don't want to reinvent the wheel and I'd like to reuse as much as possible from Spring Security. I've seen some articles on integrating Wicket and Spring Security (such as http://javajeedevelopment.blogspot.co.uk/2011/03/integrating-spring-security-3-with.html ), but it seems to me like the approach followed here would force me to re-implementing lots of stuff that Spring Security already provides -- for instance, remember-me functionality. Do you have any thoughts on this? Thanks! Luis Pureza -- Pozdrawiam/Best regards Michał Margiel http://www.confitura.pl (dawniej Javarsovia) http://www.linkedin.com/in/MichalMargiel http://www.margiel.eu
Wicket+Spring Security the Wicket way
Hi, I'm new to both Wicket and Spring Security, so bear that in mind :) I'm trying to integrate Wicket and Spring Security into my webapp, but I'm not feeling happy with the end result. As you might know, Spring Security works by listening to requests sent to virtual URLs. So, for example, to login you have to send a request to '/j_spring_security_check' with the username in a parameter called 'j_username' and the password in 'j_password'. Similarly, to logout you send a request to '/j_spring_security_logout'. Currently I have a simple HTML login form with action set to '/j_spring_security_check' and it works fine, but this just bypasses Wicket completely. Moreover, it doesn't feel like the Wicket way. As someone else put it at http://tomaszdziurko.pl/2012/09/remember-functionality-apache-wicket/, (...) in my opinion using request based authentication framework with component based web framework is not the best idea. These two worlds just do not fit well together I tend to agree with his view. However, I don't want to reinvent the wheel and I'd like to reuse as much as possible from Spring Security. I've seen some articles on integrating Wicket and Spring Security (such as http://javajeedevelopment.blogspot.co.uk/2011/03/integrating-spring-security-3-with.html), but it seems to me like the approach followed here would force me to re-implementing lots of stuff that Spring Security already provides -- for instance, remember-me functionality. Do you have any thoughts on this? Thanks! Luis Pureza
Re: Wicket+Spring+JUnit testing
Hi, From the code below I don't see what exactly doesn't work. It looks fine for me. For simpler cases/pages I'd recommend to use Wicket's ApplicationContextMock instead of using the whole Spring context because this will slow down your tests. Just do: ctx= new ApplicationContextMock(); ctx.put(someBeanName, new SomeServiceMock()); Put only the services (or mocks/stubs for them) which are used by this test. On Mon, Sep 17, 2012 at 12:45 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, Could you please advice a stack for this task ? I went thru lots of (mostly obsolete) post with not much success. I have some spring beans which are not injected as I expected. Thank you in advance! -- package hu.xxx.xxx.main; import org.springframework.context.ApplicationContext; import org.springframework.test.context.transaction.TransactionConfiguration; import org.apache.wicket.spring.injection.annot.SpringComponentInjector; import org.junit.Before; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration; import org.apache.wicket.util.tester.WicketTester; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; /** * * @author user */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {applicationContext.xml, applicationContext-Security.xml}) @TransactionConfiguration(transactionManager = transactionManager, defaultRollback = false) public class LoginPageTest { @Autowired private ApplicationContext ctx; private WicketTester tester = null; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication() { @Override protected void init() { SpringComponentInjector injector = new SpringComponentInjector(this, ctx); getComponentInstantiationListeners().add(injector); injector.inject(this); } }); } @Test public void renderPage() { tester.startPage(HomePage.class); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket+Spring+JUnit testing
Hi, An unitializes session variable caused my problem. First I thought it was injecting problem. Thank you for advices now I'm green :). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021p4652030.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket+Spring+JUnit testing
Hi, Could you please advice a stack for this task ? I went thru lots of (mostly obsolete) post with not much success. I have some spring beans which are not injected as I expected. Thank you in advance! -- package hu.xxx.xxx.main; import org.springframework.context.ApplicationContext; import org.springframework.test.context.transaction.TransactionConfiguration; import org.apache.wicket.spring.injection.annot.SpringComponentInjector; import org.junit.Before; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.ContextConfiguration; import org.apache.wicket.util.tester.WicketTester; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; /** * * @author user */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {applicationContext.xml, applicationContext-Security.xml}) @TransactionConfiguration(transactionManager = transactionManager, defaultRollback = false) public class LoginPageTest { @Autowired private ApplicationContext ctx; private WicketTester tester = null; @Before public void setUp() throws Exception { tester = new WicketTester(new MyApplication() { @Override protected void init() { SpringComponentInjector injector = new SpringComponentInjector(this, ctx); getComponentInstantiationListeners().add(injector); injector.inject(this); } }); } @Test public void renderPage() { tester.startPage(HomePage.class); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-JUnit-testing-tp4652021.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tighter Wicket-Spring integration
Spring Integration is an open source framework for Enterprise application integration. It is a lightweight framework that builds upon the core Spring framework. Thanks. Regards, http://www.seoservicescanada.ca/seo-services-calgary seo companies -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Tighter-Wicket-Spring-integration-tp4363175p4650157.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket/Spring Boilerplate
#2 I'm not too sure about - doesn't calling getClientInfo() cause a redirect to a temporary page to collect that information? No, this info will be extracted from the User-Agent header. The extended info like browser dimensions are extracted with the special page. So, I call WebClientInfo.getUserAgent(), not WebClientInfo.getProperties.getNavigatorAppName()?
Wicket Spring Security
Dear all, what is the recommended way of integrating Wicket 1.5.x with Spring Security 3.1.x? TIA best regards, Erich
Re: Wicket Spring Security
Wicketopia has an example of how to integrate Spring security (including showing/hiding properties based on user roles) On Fri, Mar 2, 2012 at 2:46 PM, Erich W Schreiner eschrei...@yahoo.com wrote: Dear all, what is the recommended way of integrating Wicket 1.5.x with Spring Security 3.1.x? TIA best regards, Erich - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket/Spring Boilerplate
#1 is a wonderful suggestion - was that added in 1.5? #2 I'm not too sure about - doesn't calling getClientInfo() cause a redirect to a temporary page to collect that information? #3 I originally tried it that way, but for some reason, no matter what I did, I couldn't get the filter to recognize the path I set for it. Oddly enough, when I switched to the servlet 3 annotation, it worked. I'd love to back this one out, as it forces a servlet 3 container. Mike -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: March-01-12 2:51 AM To: users@wicket.apache.org Subject: Re: Wicket/Spring Boilerplate Hi, Thanks for sharing it! Here are some ideas: https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L25 Better override #renderHead(IHeaderResponse response) and use 'response.renderXYZ()' https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L20 You can use Session#getClientInfo() to see what is the client and if it IE then contribute this special .js file https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WicketFilter.java#L9 I think you can drop this class and configure the original WicketFilter in https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WebAppInitializer.java On Thu, Mar 1, 2012 at 2:07 AM, Michael Laccetti mich...@limone.me wrote: Just a quick note to folks that may be interested that I've created a Maven archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 4.1/JPA 2 and logback. It is purely annotation driven, and has no XML configuration files. Currently, users must clone the git repository [1] to use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly. Questions and comments appreciated. :) Michael 1 - https://github.com/limone/wicket-spring-boilerplate -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Spring Boilerplate
On 03/01/2012 02:07 AM, Michael Laccetti wrote: Just a quick note to folks that may be interested that I've created a Maven archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 4.1/JPA 2 and logback. It is purely annotation driven, and has no XML configuration files. Currently, users must clone the git repository [1] to use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly. Questions and comments appreciated. :) Michael, I have an app on wicket 1.4.x, spring 2.5.x and *non-JPA* hibernate 3.5.x. Without taking wicket or other API changes into account, can you suggest whether or even how this archetype could be helpful in migrating to 1.5/3.1/4.1 and perhaps JPA later on? I wouldn't want to migrate to JPA right now. Many thanks for the archetype in any case! Manos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket/Spring Boilerplate
Michael, I have an app on wicket 1.4.x, spring 2.5.x and *non-JPA* hibernate 3.5.x. Without taking wicket or other API changes into account, can you suggest whether or even how this archetype could be helpful in migrating to 1.5/3.1/4.1 and perhaps JPA later on? I wouldn't want to migrate to JPA right now. Many thanks for the archetype in any case! Manos There's not much to getting JPA to work vs. Hibernate - the boilerplate is set to use Hibernate specifically for JPA. The only changes required would be performed in the SpringConfiguration class - you'd remove the LocalContainerEntityManagerFactoryBean (say that fast). Instead, you'd use a LocalSessionFactoryBean that spits out the Hibernate SessionFactory object. You could then remove the JpaVendorAdapter method and change the TransactionManager method to return a HibernateTransactionManager. Everything else should stay entirely the same. Michael - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket/Spring Boilerplate
On Thu, Mar 1, 2012 at 8:49 PM, Michael Laccetti mich...@limone.me wrote: #1 is a wonderful suggestion - was that added in 1.5? No, it is old. #2 I'm not too sure about - doesn't calling getClientInfo() cause a redirect to a temporary page to collect that information? No, this info will be extracted from the User-Agent header. The extended info like browser dimensions are extracted with the special page. #3 I originally tried it that way, but for some reason, no matter what I did, I couldn't get the filter to recognize the path I set for it. Oddly enough, when I switched to the servlet 3 annotation, it worked. I'd love to back this one out, as it forces a servlet 3 container. Mike -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: March-01-12 2:51 AM To: users@wicket.apache.org Subject: Re: Wicket/Spring Boilerplate Hi, Thanks for sharing it! Here are some ideas: https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L25 Better override #renderHead(IHeaderResponse response) and use 'response.renderXYZ()' https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L20 You can use Session#getClientInfo() to see what is the client and if it IE then contribute this special .js file https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WicketFilter.java#L9 I think you can drop this class and configure the original WicketFilter in https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WebAppInitializer.java On Thu, Mar 1, 2012 at 2:07 AM, Michael Laccetti mich...@limone.me wrote: Just a quick note to folks that may be interested that I've created a Maven archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 4.1/JPA 2 and logback. It is purely annotation driven, and has no XML configuration files. Currently, users must clone the git repository [1] to use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly. Questions and comments appreciated. :) Michael 1 - https://github.com/limone/wicket-spring-boilerplate -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket/Spring Boilerplate
Just a quick note to folks that may be interested that I've created a Maven archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 4.1/JPA 2 and logback. It is purely annotation driven, and has no XML configuration files. Currently, users must clone the git repository [1] to use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly. Questions and comments appreciated. :) Michael 1 - https://github.com/limone/wicket-spring-boilerplate
Re: Wicket/Spring Boilerplate
Hi, Thanks for sharing it! Here are some ideas: https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L25 Better override #renderHead(IHeaderResponse response) and use 'response.renderXYZ()' https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/HomePage.java#L20 You can use Session#getClientInfo() to see what is the client and if it IE then contribute this special .js file https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WicketFilter.java#L9 I think you can drop this class and configure the original WicketFilter in https://github.com/limone/wicket-spring-boilerplate/blob/master/src/main/resources/archetype-resources/src/main/java/app/WebAppInitializer.java On Thu, Mar 1, 2012 at 2:07 AM, Michael Laccetti mich...@limone.me wrote: Just a quick note to folks that may be interested that I've created a Maven archetype that ties together Wicket 1.5 and Spring 3.1, along with Hibernate 4.1/JPA 2 and logback. It is purely annotation driven, and has no XML configuration files. Currently, users must clone the git repository [1] to use the archetype, but it should be hosted on Sonatype's OSS Nexus shortly. Questions and comments appreciated. :) Michael 1 - https://github.com/limone/wicket-spring-boilerplate -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Tighter Wicket-Spring integration
Hello, my application communicates with various erlang processes in a background. The communication is done via AMQP messages and handling of those messages in already done in the spring-based service layer. Now I'm in the situation that I need wicket components to display those messages (ideally asynchronously). I'd like Spring beans to somehow raise events in Wicket anytime new message arrives and thus force selected components to repaint). I cannot figure out what how to do clear communication (from architectural point of view) between my Spring service layer and Wicket presentation. It would be wonderful if it was possible to somehow integrate Spring with Wicket events introduced in 1.5. The only solution I currently think of is a polling of the service layer, which doesn't suite my needs very well. Thank you very much for your help. Lukáš Šembera - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tighter Wicket-Spring integration
i think you need something like wicketstuff push 2012/2/7 Lukáš Šembera mailing-li...@semberal.eu: Hello, my application communicates with various erlang processes in a background. The communication is done via AMQP messages and handling of those messages in already done in the spring-based service layer. Now I'm in the situation that I need wicket components to display those messages (ideally asynchronously). I'd like Spring beans to somehow raise events in Wicket anytime new message arrives and thus force selected components to repaint). I cannot figure out what how to do clear communication (from architectural point of view) between my Spring service layer and Wicket presentation. It would be wonderful if it was possible to somehow integrate Spring with Wicket events introduced in 1.5. The only solution I currently think of is a polling of the service layer, which doesn't suite my needs very well. Thank you very much for your help. Lukáš Šembera - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- thank you, regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tighter Wicket-Spring integration
also you need to consider that wicket components will be accessed from different threads pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
The following worked. $ mvn install How do I run the Start class? I tried the following, but I get a class not found error. Usually, I have run classes inside the src/java area, but not in src/test . $ cd example $ mvn exec:java -Dexec.mainClass=org.wicketopia.example.web.util.Start brian On Fri, Jan 20, 2012 at 06:14:24PM -0500, James Carman wrote: Run mvn install from the top-level directory. Then, in the example webapp project, there is a class called Start: https://github.com/jwcarman/Wicketopia/blob/master/example/src/test/java/org/wicketopia/example/web/util/Start.java Run that. Good luck! On Thu, Jan 19, 2012 at 5:35 PM, Brian Lavender br...@brie.com wrote: James, I cloned the repository. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn eclipse:eclipse a few errors including the below error. [ERROR] Failed to execute goal on project wicketopia-persistence: Could not resolve dependencies for project org.wicketopia:wicketopia-persistence:jar:1.0-SNAPSHOT: Could not find artifact org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) - [Help 1] [ERROR] Imported it into Eclipse. Which test case do I run? I tried changing into the example directory and doing a mvn eclipse:eclipse too, but it gave the below error. [ERROR] Failed to execute goal on project wicketopia-example: Could not resolve dependencies for project org.wicketopia:wicketopia-example:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.wicketopia:wicketopia:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-joda:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-cdi-weld:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-spring-security:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-hibernate:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia:jar:tests:1.0-SNAPSHOT: Failure to find org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced - [Help 1] brian On Wed, Jan 18, 2012 at 06:58:08AM -0500, James Carman wrote: Either way, you can open it in your IDE and run the jetty test server that's included. That's how I run it usually so that I can easily debug and play around. On Wed, Jan 18, 2012 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: I don't know if the plugin is turned on for the example application. But, you'd need to make sure you are in the example module before you try. On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender br...@brie.com wrote: On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To
Re: Wicket spring security sample app
Quick Start for getting Wicktopia running or at least see it running. I wasn't sure how to run Wicketopia. Certainly James can post these details, but I thought I would since he hasn't yet. Or, maybe it is posted somewhere else. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn install $ cd example $ mvn exec:java \ -Dexec.mainClass=org.wicketopia.example.web.util.Start \ -Dexec.classpathScope=test Point your browser to the following. http://localhost:8080 On Mon, Jan 23, 2012 at 01:10:07PM -0800, Brian Lavender wrote: The following worked. $ mvn install How do I run the Start class? I tried the following, but I get a class not found error. Usually, I have run classes inside the src/java area, but not in src/test . $ cd example $ mvn exec:java -Dexec.mainClass=org.wicketopia.example.web.util.Start brian On Fri, Jan 20, 2012 at 06:14:24PM -0500, James Carman wrote: Run mvn install from the top-level directory. Then, in the example webapp project, there is a class called Start: https://github.com/jwcarman/Wicketopia/blob/master/example/src/test/java/org/wicketopia/example/web/util/Start.java Run that. Good luck! On Thu, Jan 19, 2012 at 5:35 PM, Brian Lavender br...@brie.com wrote: James, I cloned the repository. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn eclipse:eclipse a few errors including the below error. [ERROR] Failed to execute goal on project wicketopia-persistence: Could not resolve dependencies for project org.wicketopia:wicketopia-persistence:jar:1.0-SNAPSHOT: Could not find artifact org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) - [Help 1] [ERROR] Imported it into Eclipse. Which test case do I run? I tried changing into the example directory and doing a mvn eclipse:eclipse too, but it gave the below error. [ERROR] Failed to execute goal on project wicketopia-example: Could not resolve dependencies for project org.wicketopia:wicketopia-example:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.wicketopia:wicketopia:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-joda:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-cdi-weld:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-spring-security:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-hibernate:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia:jar:tests:1.0-SNAPSHOT: Failure to find org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced - [Help 1] brian On Wed, Jan 18, 2012 at 06:58:08AM -0500, James Carman wrote: Either way, you can open it in your IDE and run the jetty test server that's included. That's how I run it usually so that I can easily debug and play around. On Wed, Jan 18, 2012 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: I don't know if the plugin is turned on for the example application. But, you'd need to make sure you are in the example module before you try. On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender br...@brie.com wrote: On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture
Re: Wicket spring security sample app
Run mvn install from the top-level directory. Then, in the example webapp project, there is a class called Start: https://github.com/jwcarman/Wicketopia/blob/master/example/src/test/java/org/wicketopia/example/web/util/Start.java Run that. Good luck! On Thu, Jan 19, 2012 at 5:35 PM, Brian Lavender br...@brie.com wrote: James, I cloned the repository. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn eclipse:eclipse a few errors including the below error. [ERROR] Failed to execute goal on project wicketopia-persistence: Could not resolve dependencies for project org.wicketopia:wicketopia-persistence:jar:1.0-SNAPSHOT: Could not find artifact org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) - [Help 1] [ERROR] Imported it into Eclipse. Which test case do I run? I tried changing into the example directory and doing a mvn eclipse:eclipse too, but it gave the below error. [ERROR] Failed to execute goal on project wicketopia-example: Could not resolve dependencies for project org.wicketopia:wicketopia-example:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.wicketopia:wicketopia:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-joda:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-cdi-weld:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-spring-security:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-hibernate:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia:jar:tests:1.0-SNAPSHOT: Failure to find org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced - [Help 1] brian On Wed, Jan 18, 2012 at 06:58:08AM -0500, James Carman wrote: Either way, you can open it in your IDE and run the jetty test server that's included. That's how I run it usually so that I can easily debug and play around. On Wed, Jan 18, 2012 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: I don't know if the plugin is turned on for the example application. But, you'd need to make sure you are in the example module before you try. On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender br...@brie.com wrote: On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
James, I cloned the repository. $ git clone https://github.com/jwcarman/Wicketopia.git $ cd Wicketopia $ mvn eclipse:eclipse a few errors including the below error. [ERROR] Failed to execute goal on project wicketopia-persistence: Could not resolve dependencies for project org.wicketopia:wicketopia-persistence:jar:1.0-SNAPSHOT: Could not find artifact org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) - [Help 1] [ERROR] Imported it into Eclipse. Which test case do I run? I tried changing into the example directory and doing a mvn eclipse:eclipse too, but it gave the below error. [ERROR] Failed to execute goal on project wicketopia-example: Could not resolve dependencies for project org.wicketopia:wicketopia-example:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.wicketopia:wicketopia:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-joda:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-cdi-weld:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-spring-security:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia-hibernate:jar:1.0-SNAPSHOT, org.wicketopia:wicketopia:jar:tests:1.0-SNAPSHOT: Failure to find org.wicketopia:wicketopia:jar:1.0-20110328.173826-2 in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced - [Help 1] brian On Wed, Jan 18, 2012 at 06:58:08AM -0500, James Carman wrote: Either way, you can open it in your IDE and run the jetty test server that's included. That's how I run it usually so that I can easily debug and play around. On Wed, Jan 18, 2012 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: I don't know if the plugin is turned on for the example application. But, you'd need to make sure you are in the example module before you try. On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender br...@brie.com wrote: On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
Either way, you can open it in your IDE and run the jetty test server that's included. That's how I run it usually so that I can easily debug and play around. On Wed, Jan 18, 2012 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: I don't know if the plugin is turned on for the example application. But, you'd need to make sure you are in the example module before you try. On Wed, Jan 18, 2012 at 1:15 AM, Brian Lavender br...@brie.com wrote: On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
On Sun, Jan 15, 2012 at 12:36:48PM +0200, Martin Grigorov wrote: See https://github.com/jwcarman/Wicketopia Maybe I missed something, but I wasn't able to do a mvn jetty:run or did the war package run after generating a war file. brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
See https://github.com/jwcarman/Wicketopia On Sun, Jan 15, 2012 at 7:57 AM, Brian Lavender br...@brie.com wrote: Does someone have a sample of the current spring security with Wicket auth-roles? One that I can do the following. mvn jetty:run and see it run? brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket spring security sample app
getVerificationCode() { return verificationCode; } public void setVerificationCode(String verificationCode) { this.verificationCode = verificationCode; } }/ *Create UserDetails object:* /@Entity @Table(name = userdetails, uniqueConstraints = {@UniqueConstraint(columnNames = {username, emailaddress})} ) public class UserDetail extends BasicEntity implements UserDetails { private String userName; private String password; private String emailAddress; private Timestamp accountCreatedDate; private Timestamp lastActivityDate; private boolean keepLoggedIn; .. . .. }/ *Role object:* /@Entity @Table(name = Roles, uniqueConstraints = {@UniqueConstraint(columnNames = {role})}) public class Role extends BasicEntity implements GrantedAuthority { private String role; .. . ... .. }/ This is all you need to get started... Hope this helps... -Milton Martin Grigorov-4 wrote See https://github.com/jwcarman/Wicketopia On Sun, Jan 15, 2012 at 7:57 AM, Brian Lavender lt;brian@gt; wrote: Does someone have a sample of the current spring security with Wicket auth-roles? One that I can do the following. mvn jetty:run and see it run? brian -- Brian Lavender http://www.brie.com/brian/ There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. Professor C. A. R. Hoare The 1980 Turing award lecture - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscribe@.apache For additional commands, e-mail: users-help@.apache -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-spring-security-sample-app-tp4296338p4298233.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org