I have worked using strut for sometime and i was using the tag
to show and hide the links/buttons and privileges depending upon the role of the user and its privileges
for example some users have the privileges to see the 'list user management' icon link and some not.
and in the level of the page also , that is not all the users who have privileges to view the users list, can edit or delete.
is there any component similar to logic:equal in strut , or how i can i manages the users , their roles and their privileges
by the way the roles and privileges are dynamic data stored in db .
You can hide elements by using the redered attribute:
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Although the Apache Tomahawk tag library has tags which have direct role support, most JSF does not, unfortunately. So the "rendered" attribute is the usual solution.
In general, however, it's better to keep complex expressions off the View and in the backing bean. So instead of :
You might want something simpler and more targeted, such as
where
"Disappointing" and "Utterly Horrible" are not equal.
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad: