You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Madhav Bhargava <Ma...@infosys.com> on 2006/12/07 10:24:27 UTC

panelnavigation2 with NavigationMenuItem does not display both image and text

Hi All,



I am trying to create a left menu using <t:panelNavigation2> and
<t:navigationMenuItems> (This is used because the menu is created
dynamically depending on the role of a user)



I have to display an icon and text on each navigation menu item.



When I create a NavigationMenuItem object with text and an icon
location:

menu.add(new NavigationMenuItem("Access",
"#{accessDelegationBeanName.getMyExistingDelegations}",
"/images/icon/home.gif",false));



It only displays an icon - the text is missing.



Is it a known bug when we use NavigatioMenuItem?



I tried using <t:commandNavigation2> tags instead of
<t:navigationMenuItems> and everything works fine - both the text and
icon is displayed properly. This solution is of no use to me because the
menu items are decided at run time depending on the role of the user.



Are there any alternatives?



Thanks for any help.

~madhav







**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***