Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2007

Tip: Looking for answers? Try searching our database.

hiding condition with JSF tag

Thread view: 
g-factor - 16 Jan 2007 09:55 GMT
Hi everybody,

I am developing a web application with JSF and I wanted some navigation
buttons to be hidden depending on the user level. Is there any JSF tag
to define hiding conditions?

Thanks
John Ersatznom - 16 Jan 2007 17:25 GMT
> Hi everybody,
>
> I am developing a web application with JSF and I wanted some navigation
> buttons to be hidden depending on the user level. Is there any JSF tag
> to define hiding conditions?

"User level"?

a) Consider whether what you are doing is evil. (Letting only moderators
delete or edit posts other than their own? Good. Letting only people who
paid a premium read some content on your site or see real-time instead
of delayed information? Evil. Artificial scarcity is the root of all
evil...well, a lot of 21st century evil so far, anyway.) If it is evil,
redesign and refactor out the evil. At minimum, encapsulate all evil
into its own module named abandonhopeyewhoenter.jar and access those
naughty classes through several layers of indirection, so that it will
be easy to exorcise the demons without a complete rewrite if (when) it
later is time to free everything that has zero marginal cost to you.
b) Read the docs. This is probably covered in the documentation for JSF,
whatever that is. If it's not,
c) A google search may do wonders. Failing that, you'll probably just
have to
d) Wait for a more helpful response here. :)
hiwa - 17 Jan 2007 10:33 GMT
> Hi everybody,
>
[quoted text clipped - 3 lines]
>
> Thanks
No. You should make multiple versions of the view and differentiate
them with server specific role registration and security-constraint
entries on the web.xml file.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.