Products

  1. webMethods CAF 7.1.1
  2. BPM Designer 7.0
  3. BPM Designer 7.1
  4. MWS 7.0
  5. MWS 7.1

Article Types

  1. Sample Applications
  2. Core Concepts
  3. External References
  4. Webinars

Key Subjects

  1. Web Services
  2. Database
  3. JavaScript
  4. JSF Controls
  5. Task Development
  6. Task Inbox
  7. Task Assignments
  8. Task Events
  9. Debugging
  10. Web Application
 
MOST POPULAR
  1. CAF JavaDocs
  2. Designer Online Help
  3. CAF Java(Script)Docs
  4. CAF Samples for webMethods 7.1...
  5. Confirmation Dialog Tutorial
  6. CAF and JSF
  7. JSF Binding Expressions
  8. Dynamic Panel Switch Applicati...
WHATS NEW
  1. Session State Mgmt
  2. Print Table
  3. Popup Dialog

Role Based Complex Navigation

This article demonstrate how to restrict navigation controls to display navigation links on bases of the user role.
  1. webMethods CAF 7.1.1
  2. | JSF Controls
  3. | Web Application
  4. | Sample Applications
Viewing the Live Sample


For the navigation, the application is displaying the Popup Menus control with the Rendered property bound to the admin security role. As a reminder, this Popup Menus control’s App Nav Bean property is bound to the appNavBean managed bean, which exposes the navigation you defined in the app-nav.xml file in Building Application Navigation Files For Each Role.
Note that the navigation links Admin Navigation and User Navigation match the Title fields you specified in the app-nav.xml file. When you click one of the navigation links, the application displays links to the views, using the page titles you specified in the Title fields of the app-nav.xml file:
When you click a link in the menu, the application displays the corresponding page. Note that the page title matches Title field you specified for the view in the app-nav.xml file.
For the navigation, the application is displaying the Popup Menus control with the Rendered property bound to the tomcat security role. As a reminder, this Popup Menus control’s App Nav Bean property is bound to the userAppNav managed bean that you added to the header.view file. This managed bean exposes the navigation you defined in the app-nav-user.xml file in Building Application Navigation Files For Each Role. The app-nav-user.xml file only contains the User Navigation node and the user views, as a result, those are the only links available from the home page.
Once again, the navigation link User Navigation matches the Title field you specified in the app-nav-user.xml file. When you click the navigation link, the application displays links to the views, using the page titles you specified in the Title fields of the app-nav-user.xml file:
When you click a link in the menu, the application displays the corresponding page. Note that the page title matches Title field you specified for the view in the app-nav.xml file.
Related Topics 
 
 
Powered by webMethods
Samples and utilities are "working examples" that can be used to test and build production-quality solutions.
Most are not eligible for technical support through webMethods Customer Care.
webMethods makes no guarantees pertaining to the functionality, scalability, robustness, or degree of testing of these utilities and samples.