This content has been marked as final.
Show 3 replies
-
1. Re: Expression for using the f:param values in rendered attr
leelavathic Dec 4, 2008 1:41 AM (in response to leelavathic)Any suggestions please.
-
2. Re: Expression for using the f:param values in rendered attr
ilya_shaikovsky Dec 4, 2008 3:41 AM (in response to leelavathic)nodeSubType will be evaluated wrong as the contextMenu placed outside the tree and know nothing about the iteration inside the tree.
How about to define two types of nodes according to this subtype? And attach the menu only to one of them? Or just place move your conditional rendering definition to component control instead of using for menuItems. -
3. Re: Expression for using the f:param values in rendered attr
leelavathic Dec 4, 2008 6:17 AM (in response to leelavathic)I tried displaying a alert of nodeSubType for each treeNode in the following way
<rich:contextMenu attached="false" id="treeMenu" submitMode="ajax"> <rich:menuItem ajaxSingle="true" id="sportsmenu" reRender="sportsmenu" limitToList="true" onclick="alert('{nodeSubType }')" rendered="#{nodeSubType == 'SPORTS'}"> Map to Sports </rich:menuItem> </rich:contextMenu>
It is displaying the correct value of nodeSubType on click of different tree nodes.
The rich:componentControl is bound to each tree node. The nodeSubType is set as a param and in the context menu I'm trying to use this param, so wouldn't the value be available?