Results 1 to 2 of 2

Thread: How to access a flow variable from JSF?

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    14

    Default 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.

  2. #2
    Join Date
    Mar 2006
    Posts
    14

    Default Sorry ... wrong forum. Was meant for Spring Web Flow.

    Please ignore this thread.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •