How to access a flow variable from JSF?
Hi,
I have a flow variable called employee. I put this variable in the flow scope using the following controller code:
Code:
context.getFlowScope().put("employee", employee);
I am then able to access this variable from my JSF/JSP views using the following code:
Code:
<h:panelGroup binding="#{flowScope.employee}">
</h:panelGroup>
I am successfully able to do the above.
How can I access my flow scope variable employee from JSF code. I wrote the following code, but it returned null:
Code:
facesContext.getApplication().getVariableResolver()
.resolveVariable(facesContext, "flowScope.employee");
Any ideas??
Thanks.
Sorry ... wrong forum. Was meant for Spring Web Flow.
Please ignore this thread.