• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

why sec:authorize doesn't work?

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JSF 2 page based on Facelets and use Spring Security 3 behind the application. When I put some tags like this within my page:



the X will display at runtime anyway. The auto completion feature of eclipse work correctly to show the "sec:" tags and their properties at programming time. what's the problem?
 
Saloon Keeper
Posts: 28755
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In HTML, any tags not understood will be ignored. So what probably happened is that you didn't include necessary context for the "sec" tags. Either you're missing the xsd reference in the page that employs the tag or you didn't properly include/configure the tag library in your WAR.
 
Kamila Rutkowski
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:In HTML, any tags not understood will be ignored. So what probably happened is that you didn't include necessary context for the "sec" tags. Either you're missing the xsd reference in the page that employs the tag or you didn't properly include/configure the tag library in your WAR.


I put the spring-security-taglib within the lib of my project and the within my page. Also, the source of rendered html is like this:
 
Tim Holloway
Saloon Keeper
Posts: 28755
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All the XSD does is tell the XML parser how to validate the text in the xhtml file. It doesn't hook up any functionality.

If the tags are being passed through to the HTML without being removed and acted on, you definitely are missing some app configuration options needed to switch that functionality on.
 
Kamila Rutkowski
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:All the XSD does is tell the XML parser how to validate the text in the xhtml file. It doesn't hook up any functionality.

If the tags are being passed through to the HTML without being removed and acted on, you definitely are missing some app configuration options needed to switch that functionality on.



The Spring Security 3 within my project works correctly except for sec taglib. What are app configuration options for this?
 
Greenhorn
Posts: 1
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Spring Security has a separate set of JARs. You need to download them separately, if you haven't already.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic