This content has been marked as final.
Show 2 replies
-
1. Re: rich:contextMenu - icon check to show current selection
nbelaevski Jun 12, 2009 3:33 PM (in response to grundor)Hi Mark,
Try this:{value1 == 'YES' ? 'check.png' : 'blank.png'}
-
2. Re: rich:contextMenu - icon check to show current selection
grundor Jun 15, 2009 12:40 PM (in response to grundor)Thanks for the reply - however, I had tried that (and tried again in response to your post).
When I use this:<rich:menuItem ajaxSingle="true" icon="#{value1 == 'YES' ? 'check.png' : 'blank.png'}"> Attending: {value1} </rich:menuItem>
The menu item displays the text "Attending: YES", but the check icon image is not displayed.
I have validated that the image does in fact display if I do this:<rich:menuItem ajaxSingle="true" icon="check.png"> Attending: {value1} </rich:menuItem>
Am I trying to mix 2 things ({}, versus #{}) which are not intended to be used together?
-Mark