This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes NoSuchMethodException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "NoSuchMethodException:" Watch "NoSuchMethodException:" New topic


Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi All,
how do you get hold of spring security 3 tag within a jsf2 facelet page.
I currently call <sec:authentication property="principal.username" /> but keep
getting the following:-
Caused by: java.lang.NoSuchMethodException:<init>(javax.faces.view.facelets.ComponentConfig)

I created the following within springsecurity.taglib.xml, not sure if this is the correct approach.

Bill Gorder

Joined: Mar 07, 2010
Posts: 1646

Does this help?

If you are using web-flow see their documentation

[How To Ask Questions][Read before you PM me]
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
Hi Bill,
thanks for the reply. I have managed to integrate spring security 3 into my jsf application, but I'm not sure how to get hold of the username that is logged in using the spring authenticationtag
I checked out the following, but this is for aurhorize

It is sorta covered in the JavaRanch Style Guide.
subject: NoSuchMethodException:
Similar Threads
AdvisorTagHandler unable to compile
facelets and custom tags
EL funtion error
Help needed in defining a certain constraint in schema.
Overloading an EL function defined in TLD