Siebel Self-Service Application Developer's Guide > Customizing Menus for Siebel Self-Service Applications >

Showing and Hiding Menu Nodes Based on Business Logic


The condition managed property in faces-config-base-menu.xml for a menu node can be set to ManagedBean.Method to show or hide the node based on business logic.

In the following example, the managed bean with the business logic for showing and hiding the nodes is controlBean, and the method invoked for getting the rendered property is isNodeShown(). This method returns a Boolean value and does not take any parameters. Set the managed bean with the business logic to request scope.

For example:

<managed-property>

<property-name>condition</property-name>

<value>controlBean.isNodeShown</value>

</managed-property>

Set the condition property only for nodes that are controlled by business logic. If this property is set, it is checked in the isRendered() API of the menu-node managed bean class (MenuItem.java) after checking the configuration parameters and permissions associated with the bean if they are set.

Siebel Self-Service Application Developer's Guide Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices.