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 8048435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:26:08+00:00 2026-06-05T06:26:08+00:00

i am using data realm for login authentication. it works fine. i am also

  • 0

i am using data realm for login authentication. it works fine. i am also using primefaces 3.2 components in my app, they also work fine BUT the problem occurs on homepage before login.
The primefaces components are not rendered properly(for eg. the tab menu is displayed as simple links one below other, buttons are displayed as simple jsf buttons,etc.) and the login works fine , when i clear the browsing history from my browser, the primefaces are rendered correctly but now the realm fails to work, i am redirected to the error page, why does this happen? how do i solve it? the homepage of my app is ruined due to this.

  • 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-06-05T06:26:10+00:00Added an answer on June 5, 2026 at 6:26 am

    It seems that your Primefaces resources are in the restricted folders. Exclude the resources folder from your security constraints definitions.

    This is an example configuration from one of my projects. First I restrict access to the whole project (allowing only specific roles to access):

    <security-constraint>
            <display-name>Secured project</display-name>
            <web-resource-collection>
                <web-resource-name>Secured project</web-resource-name>
                <description/>
                <url-pattern>/*</url-pattern>
            </web-resource-collection>
            <auth-constraint>
                <description/>
                <role-name>user</role-name>
                <role-name>admin</role-name>
            </auth-constraint>
        </security-constraint>
    

    Then I add exceptions for folders that can be accessed by any user:

    <security-constraint>
        <display-name>Exceptions</display-name>
        <web-resource-collection>
            <web-resource-name>Exceptions</web-resource-name>
            <description/>
            <url-pattern>/resources/*</url-pattern>
            <url-pattern>/faces/resources/*</url-pattern>
            <url-pattern>/faces/javax.faces.resource/*</url-pattern>
        </web-resource-collection>
    </security-constraint>
    

    You need to adapt this to your security policy and folder structure.

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

Sidebar

Related Questions

I am creating an ajax login and it used to work but for some
I have a problem implementing Oauth in Android using signpost library. Everything is fine
I am training linear regression model using a data-set which has real valued labels
I have read about the push technologies recently. Using it real-time data streaming is
I saved some data in the database using mysql_real_escape_string() so the single quotes are
For inserting special characters in data like (,')etc., I am using mysql_real_escape_string() function &
I'm using Data::Dumper to print a perl hash with configuration, which will be evaluated
I am using data-attributes in my portal page to describe favorite links. This is
i have data structure i am passing this from server to client using data
I am reading an article in IEEE Computer magazine about using data mining on

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.