As stated in Preparing Your Views For Adding Navigation Controls, the navigation controls for the application are in the header.view file. As a result, to build the navigation for your views, you update the header.view file. This section describes how to set up different navigation controls for each role.
Tip! To easily form the binding expression, click for the App Nav Bean property field. Designer displays the Expression Binding wizard. In the wizard, select App Nav Bean and click OK. Designer forms the binding expression for you and fills in the App Nav Bean property field in the Properties view.
Right click Application Security Roles, and select Add > Application Security Roles.
c
In the Role Name field, type the name of the role, for example, admin. The role name you type must match the name of the role in the underlying application server.
Bind each Webapp control’s Rendered property to its corresponding application security role. By doing so, when a user accesses the application, the application displays the navigation bound to the role that the user is a member of.
From the Bindings view, drag the Implicit Variables > Application Security Roles > admin node on to the first Popup Menus control in the header.view. Designer adds the binding expression to the Popup Menus control’s Rendered property.