[
http://jira.jboss.com/jira/browse/RF-2922?page=comments#action_12412111 ]
Christian Küppers commented on RF-2922:
---------------------------------------
Since value attribute is deprecated, the ValueExpression for expanded should have the key
"value" in bindings and not "expanded".
org.richfaces.taglib.PanelMenuGroupTagBase:
protected void setProperties(UIComponent component) {
super.setProperties(component);
UIPanelMenuGroup panelMenu = (UIPanelMenuGroup) component;
if (_value != null) {
if (_value.isLiteralText()) {
try {
panelMenu.setExpanded(Boolean.parseBoolean(_value.getExpressionString()));
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("expanded",
_value);
}
}else{
panelMenu.setExpanded(false);
}
}
Because the method isExpanded in UIPanelMenuGroup looks for the binding
"value".
Problem with el expression in expanded attribute of panelMenuGroup
------------------------------------------------------------------
Key: RF-2922
URL:
http://jira.jboss.com/jira/browse/RF-2922
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Bernard Pons
Assigned To: Nick Belaevski
Fix For: Future
Since i've switched to 3.2, i have problem with el expressions inside the expandedd
attribute.
the exemple below works fine on first load, but give the following error after a click on
test item :
expanded="${2 == 2}": Illegal Syntax for Set Operation
<rich:panelMenu>
<rich:panelMenuGroup label="test" expanded="${2 == 2}">
<rich:panelMenuItem name="test" label="test"/>
</rich:panelMenuGroup>
</rich:panelMenu>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira