Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAAS & JSF  RSS feed

 
Alessandro Allievi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if there's a way to integrate JAAS and JSF technology?
I would to define some "roles" and then grant some action in the jsf bean according to the role definition.
In a general view, I would to execute some piece of code asking to Subject if it is possible...

Thanks in advance
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Alessandro Allievi:
Does anyone know if there's a way to integrate JAAS and JSF technology?
I would to define some "roles" and then grant some action in the jsf bean according to the role definition.
In a general view, I would to execute some piece of code asking to Subject if it is possible...

Thanks in advance


One of the clumsy way of doing this would be to have a single parent class for all of your backing bean and handle this logic in parent class.
And depending upon the attribute you can render components in JSP as per the roles or you can define action at run-time.
Let me know if you find any better mechanism.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!