[
https://issues.jboss.org/browse/RF-10984?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-10984:
-------------------------------
Description:
The component reference for RichFaces 4 states that rich:tree selectionType can be
"server", but:
{code}
17:35:25,373 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] Error
Rendering View[/searchestab.xhtml]: java.lang.IllegalArgumentException: server
at
org.richfaces.renderkit.TreeRendererBase.getSelectionType(TreeRendererBase.java:164)
[:4.0.0-SNAPSHOT]
at org.richfaces.renderkit.html.TreeRenderer.encodeEnd(TreeRenderer.java:154)
[:4.0.0-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
[:2.0.3-]
{code}
which is obvious in the code:
{code}
//
protected SwitchType getSelectionType(FacesContext context, UIComponent component) {
AbstractTree tree = (AbstractTree) component;
SwitchType selectionType = getSelectionTypeOrDefault(tree);
if (selectionType != SwitchType.ajax && selectionType !=
SwitchType.client) {
//TODO - better message
throw new IllegalArgumentException(String.valueOf(selectionType));
}
return selectionType;
}
{code}
See also:
{quote}
http://community.jboss.org/message/604516#604516
{quote}
was:
The component reference for RichFaces 4 states that rich:tree selectionType can be
"server", but:
17:35:25,373 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] Error
Rendering View[/searchestab.xhtml]: java.lang.IllegalArgumentException: server
at
org.richfaces.renderkit.TreeRendererBase.getSelectionType(TreeRendererBase.java:164)
[:4.0.0-SNAPSHOT]
at org.richfaces.renderkit.html.TreeRenderer.encodeEnd(TreeRenderer.java:154)
[:4.0.0-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
[:2.0.3-]
which is obvious in the code:
protected SwitchType getSelectionType(FacesContext context, UIComponent component) {
AbstractTree tree = (AbstractTree) component;
SwitchType selectionType = getSelectionTypeOrDefault(tree);
if (selectionType != SwitchType.ajax && selectionType !=
SwitchType.client) {
//TODO - better message
throw new IllegalArgumentException(String.valueOf(selectionType));
}
return selectionType;
}
See also
http://community.jboss.org/message/604516#604516
Implement rich:tree selectionType=server
-----------------------------------------
Key: RF-10984
URL:
https://issues.jboss.org/browse/RF-10984
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tree
Affects Versions: 4.0.0.Final
Reporter: u j
Fix For: 4.Future
The component reference for RichFaces 4 states that rich:tree selectionType can be
"server", but:
{code}
17:35:25,373 GRAVE [javax.enterprise.resource.webcontainer.jsf.application] Error
Rendering View[/searchestab.xhtml]: java.lang.IllegalArgumentException: server
at
org.richfaces.renderkit.TreeRendererBase.getSelectionType(TreeRendererBase.java:164)
[:4.0.0-SNAPSHOT]
at org.richfaces.renderkit.html.TreeRenderer.encodeEnd(TreeRenderer.java:154)
[:4.0.0-SNAPSHOT]
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
[:2.0.3-]
{code}
which is obvious in the code:
{code}
//
protected SwitchType getSelectionType(FacesContext context, UIComponent component) {
AbstractTree tree = (AbstractTree) component;
SwitchType selectionType = getSelectionTypeOrDefault(tree);
if (selectionType != SwitchType.ajax && selectionType !=
SwitchType.client) {
//TODO - better message
throw new IllegalArgumentException(String.valueOf(selectionType));
}
return selectionType;
}
{code}
See also:
{quote}
http://community.jboss.org/message/604516#604516
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira