I'm including a .xhtml in other one as follows:
<ui:include src="/app/common/panels/task_list.xhtml">
<ui:param name="idObject" value="#{backingBeanRef['workGroup']['id']}" />
<ui:param name="className" value="#{backingBeanRef['workGroup']['class']['name']}" />
<ui:param name="backingBeanRef" value="#{tTaskQueryBean}" />
</ui:include>
In order to get it from my Bean as follows:
FacesContext fc = FacesContext.getCurrentInstance();
String className = (String) fc.getApplication().evaluateExpressionGet(fc, "#{className}", String.class);
But it returns " " in despite of being showed in the view when I do #{className}
Does anyone know how can I solve this?
Thanks in advance
EDIT : I have already tried to do this but it throws NullPointerException