I have noticed that may filter which is supposed to stop people accessing pages without a valid login is breaking skinning; but only on the login page. FireFox is reportingI am also seeing this exception in the server logsAfter login, it all seems to be OK. I am completely stumped as to what is wrong. My filter isn't very clever it's basically "If you did not request the login page and you do not appear to have a login - back to the login page you go"
Anyone any ideas?
Stepping through the code, it looks like the filter is picking up a lot of other requests (a4j stuff) and redirecting them to login.jsf as well; which would explain my problem I guess.
So how do I modify the filter so that is only fires for URIs the user has entered into their browser and not everything else? If someone going to "/application/x.jsf" without having a proper login, I want to force them back to "/application/login.jsf". I could change the initial "if" test tobut that does not feel right to me somehow.
Thanks Kavita, but it was already before the RichFaces filter. I tried moving to after just to see, but that had no effect either. The section from my web.xml looks like this Just a shame that there is no "<exclude-pattern/>", that would be perfect! When I decided to use a filter to stop people directly accessing pages without a login, I didn't consider that a4j would be making subsequent requests. Listing every page apart from login is ugly and brittle, but would work I guess.
Or I need to find another way to stop people accessing pages when they shouldn't.
We have recently upgraded to JSF 1.2 and from that onwards we are getting this error.
We are using JBoss EAP 4.3/RichFaces 3.3.1/JDK 1.5/Spring/Hibernate
kindly let me know, how you solved your issue - also help us out from this issue.