-
1. Re: How to select rich:panelMenuItem?
ilya_shaikovsky Mar 29, 2010 9:13 AM (in response to jethroborsje)1 of 1 people found this helpfulcheck please selectedChild attribute
-
2. Re: How to select rich:panelMenuItem?
jethroborsje Mar 29, 2010 11:07 AM (in response to ilya_shaikovsky)Thank you for the answer, don't know how I could have missed that attribute. Setting the attribute in combination with the name of a rich:panelMenuItem 'selects' the menu item GUI-wise, but it does not perform the "action" of the rich:panelMenuItem. Is there a way to to also execute this action so that the backing bean gets updated with the selected menu item?
-
3. Re: How to select rich:panelMenuItem?
nbelaevski Mar 29, 2010 6:19 PM (in response to jethroborsje)1 of 1 people found this helpfulNo, "action" is executed only after user explicitly selects item.
-
4. Re: How to select rich:panelMenuItem?
jsfgeeks Mar 30, 2010 8:14 AM (in response to nbelaevski)hi in my code i am acheiving that below
i am populating rich panle menu from my bean class
i have acopmlished this with selectedChild="#{contentlist.current}"
css
.rich-pmenu-selected-element{
background-color:#158afb;
font-weight: normal;
color:white;
font-style:normal;
font-size:12px;
font-weight:bold;
}//jsp
<rich:panelMenu width="255px" iconGroupPosition="right" selectedChild="#{contentlist.current}" expandSingle="true" binding="#{contentlist.phymenu}" id="phymenu" expandMode="ajax" iconExpandedTopGroup="chevronUp" iconCollapsedTopGroup="chevronDown">
</rich:panelMenu>hope this will help!!!!!!