*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlTreeNodesAdaptor comp = (HtmlTreeNodesAdaptor) component;
if (this._includedNode != null) {
if (this._includedNode.isLiteralText()) {
try {
Boolean __includedNode = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._includedNode.getExpressionString(),
Boolean.class);
comp.setIncludedNode(__includedNode.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("includedNode", this._includedNode);
}
}
if(null != this._nodes && this._nodes.isLiteralText()){
throw new IllegalArgumentException("Component org.richfaces.TreeNodesAdaptor with Id " + component.getClientId(getFacesContext()) +" allows only EL expressions for property nodes");
}
if (this._nodes != null) {
if (this._nodes.isLiteralText()) {
try {
java.lang.Object __nodes = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._nodes.getExpressionString(),
java.lang.Object.class);
comp.setNodes(__nodes);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("nodes", this._nodes);
}
}
if (this._var != null) {
if (this._var.isLiteralText()) {
try {
java.lang.String __var = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._var.getExpressionString(),
java.lang.String.class);
comp.setVar(__var);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("var", this._var);