Soumitri Pattnaik
Soumitri Pattnaik

Reputation: 3556

How to configure Apache Wicket with Spring 4 Java based configuration?

I have a Spring MVC project up and running. It only has REST APIs and do not have any view. I want to use Apache Wicket as the view part, which can use the @Service annotated classes.

I don't exactly how and where to start.

P.S. I have pure Java based configuration for Spring MVC, meaning there is no web.xml file.

Thanks in advance

Upvotes: 2

Views: 339

Answers (1)

Thorsten Wendelmuth
Thorsten Wendelmuth

Reputation: 780

You should be able to just add a custom WicketFilter to your application like:

@Component
@WebFilter(urlPatterns = "/*")
public class MyWicketFilter extends WicketFilter {

    public MyWicketFilter() {
        super(new MyWicketApplication());
    }

}

Upvotes: 2

Related Questions