Is there any way to set From parameter of AddActionListener with some expression..
SetActionListener listener = new SetActionListener();
listener.setFrom("#{node.id}");
ValueExpression valueEx = facesContext.getApplication().getExpressionFactory().createValueExpression(facesContext.getELContext(), "#{myBean.id}", Boolean.class);
actionListerParameter.setValueExpression("to", valueEx);
The code is not getting evaluated at runtime. it is taking it as
string #{node.id}
I am getting exception
java.lang.IllegalArgumentException: Cannot convert ValueExpression[#{node.id}] of type class com.sun.el.ValueExpressionImpl to class java.lang.Long