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

  • Home
  • SEARCH
  • 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 1015627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:25:45+00:00 2026-05-16T10:25:45+00:00

I discovered Tapestry 5, quite recently, its clear separation between view and controller, the

  • 0

I discovered Tapestry 5, quite recently, its clear separation between view and controller, the use of name standardization instead of XML made me go for it straight. Quite frankly I don’t plan on changing but the documentation is just not enough for me.

The project I’m working on must be able to support several types of roles. I must allow users authentifications, the use of certains services according to their roles ans the access of url by their roles as well.

After some research I came across Tapestry-Security which is part of the Tynamo project.

I want my Service layer to be totaly independant from my web application because I will then use it to implement web services and some others stuff. I do not feel like doing another identification system when the time comes.

My problem is that I do not see how use Tapestry-Security without using Tapestry.The example they show on Tapestry-Security guide is just not enough for me. I have a pretty rough idea, how it works.
However I do not know how I could use it outside the Tapestry 5.

How can I use Tapestry-Security without Tapestry 5 ?

I also do not understand the filter systems used in the AppModule class in Tapestry project.
Is there a document which explain the way AppModule works with the filter system ?

Is there someone which can explain me those things or point me in the right direction ?

Thanks.

  • 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-16T10:25:45+00:00Added an answer on May 16, 2026 at 10:25 am

    Tapestry-Security is just a thin layer on top of the Apache Shiro project. It only provides:

    • a way to configure Shiro via your Tapestry application module
    • a set of Tapestry filters to do the actual security checks for Tapestry pages and actions
    • annotations should you like to declare your security declaratively
    • components to support conditional rendering in your .tml files

    Underneath that layer, there is an ordinary instance of Shiro doing all the work, so you can access security (for example via the SecurityUtils class) like you normally would if Tapestry wasn’t involved at all.

    Edit based on comment: So while you can use Shiro in any web application you use, Tapestry-Security is really just a wrapper for use with Tapestry. If you, however, have an app that includes Tapestry along with other servlets (such as a web service), you should be able to let Tapestry-Security do the initialization work.

    Concerning Tapestry filters: I’m afraid this isn’t documented very well. Tapestry filters work very much like Servlet Filters, but as Tapestry is implemented as a Servlet Filter itself, it has its own filter chain. Filters for Tapestry implement the RequestFilter interface.

    public class MyFilter implements RequestFilter {
    
        @Override
        public boolean service(final Request request, final Response response,
                final RequestHandler handler) throws IOException {
            ... //your code
            try {
                return handler.service(request, response);
            } finally {
                ... //your code
            }
    
        }
    }
    

    You can add them to the filter chain by contributing them in your application module:

    public void contributeRequestHandler(
                final OrderedConfiguration<RequestFilter> configurations) {
        configuration.add("MyFilter", new MyFilter());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently discovered that the Google Maps API does not play nicely with SSL.
I recently discovered the genshi.builder module. It reminds me of Divmod Nevow's Stan module.
I only just recently discovered that Visual C++ 2008 (and perhaps earlier versions as
I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting
Having recently discovered this method of development, I'm finding it a rather nice methodology.
I discovered template metaprogramming more than 5 years ago and got a huge kick
I discovered to have some problem to fully understand callbacks scoping when trying to
I discovered that one of the tables of a legacy db I'm working on
Today I discovered that my fresh installation of Apache HTTP Server is able to
I've discovered that any time I do the following: echo '<a href=http:// title=bla>huzzah</a>'; I

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.