Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 624429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:11:58+00:00 2026-05-13T19:11:58+00:00

So, I have an web-based application that is using the Wicket 1.4 framework, and

  • 0

So, I have an web-based application that is using the Wicket 1.4 framework, and it uses Spring beans, the Java Persistence API (JPA), and the OpenSessionInView pattern. I’m hoping to find a security model that is declarative, but doesn’t require gobs of XML configuration — I’d prefer annotations.

Here are the options so far:

  1. Spring Security (guide) – looks complete, but every guide I find that combines it with Wicket still calls it Acegi Security, which makes me think it must be old.

  2. Wicket-Auth-Roles (guide 1 and guide 2) – Most guides recommend mixing this with Spring Security, and I love the declarative style of @Authorize(“ROLE1″,”ROLE2”,etc). I’m concerned about having to extend AuthenticatedWebApplication, since I’m already extending org.apache.wicket.protocol.http.WebApplication, and Spring is already proxying that behind org.apache.wicket.spring.SpringWebApplicationFactory.

  3. SWARM / WASP (guide) – This looks the newest (though the main contributor passed away years ago), but I hate all of the JAAS-styled text files that declare permissions for principals. I also don’t like the idea of making an Action class for every single thing a user might want to do. Secure models also aren’t immediately obvious to me. Plus, there isn’t an Authn example.

Additionally, it looks like lots of folks recommend mixing the first and second options. I can’t tell what the best practice is at all, though.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:11:59+00:00Added an answer on May 13, 2026 at 7:11 pm

    I don’t know if you saw this blog post so I’m adding it here as reference and I’ll just quote the end:

    Update 2009/03/12: those interested in securing Wicket
    applications should also be aware that
    there is an alternative to
    Wicket-Security, called
    wicket-auth-roles. This thread
    will give you a good overview of the
    status of the two frameworks.
    Integrating wicket-auth-roles with
    Spring Security is covered here.
    One compelling feature of
    wicket-auth-roles is the ability to
    configure authorizations with Java
    annotations. I find it somehow more
    elegant than a centralized
    configuration file. There is an
    example here.

    Based on the information above and the one your provided, and because I prefer annotations too, I’d go for Wicket-Auth-Roles with Spring Security (i.e. guide 2). Extending AuthenticatedWebApplication shouldn’t be a problem as this class extends WebApplication. And pulling your application object out of spring context using SpringWebApplicationFactory should also just work.

    And if your concerns are really big, this would be pretty easy and fast to confirm with a test IMO 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 385k
  • Answers 385k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The globals() call returns the globals of the module in… May 14, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer Have you tried here: http://docs.elgg.org/wiki/Tutorials/HelloWorld ? May 14, 2026 at 11:30 pm
  • Editorial Team
    Editorial Team added an answer Turns out this problem wasn't related to Hibernate at all.… May 14, 2026 at 11:30 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.