So far we have seen various options to use Spring Security outside the Wicket application. We shall now see how we can create a security form in the wicket framework and use it with the Spring framework with two different roles. The recipe also demonstrates how we can use Spring beans in the Wicket application.
pom.xmlfile with Spring dependency.
applicationContext.xmlfile. It's mandatory to name it as
applicationContextor else we will get error messages in the console.
web.xmlwith Spring listeners.