Announcement Announcement Module
Collapse
No announcement yet.
Flowscope object unavailable in JSF page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Flowscope object unavailable in JSF page

    Hi All,

    auth variable stored in flowscope unavailable in jsf page when it re enters 'loginViewState' from 'validateCredentials' else path. Anything is missing in below code ?. i'm using JSF + Spring Web Flow

    JSF
    <hanelGroup rendered="#{auth.isAuthenticated()}">

    loginFlow.xml
    <?xml version="1.0" encoding="UTF-8"?>

    <flow xmlns="http://www.springframework.org/schema/webflow"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
    http://www.springframework.org/schema/webflow
    http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd">


    <view-state id="loginViewState" view="loginPage">
    <on-entry>
    <evaluate
    expression="new com.org.sample.web.ui.beans.authentication.LoginCr edential()"
    result="viewScope.loginCredential" />
    </on-entry>

    <transition on="verifyCredentials" to="validateCredentials">
    <evaluate expression="authenticationService.challengeUser(lo ginCredential)"
    result="flowScope.auth" />
    </transition>
    </view-state>

    <decision-state id="validateCredentials">
    <if test="auth?.isAuthenticated()" then="AgentViewState"
    else="loginViewState" />
    </decision-state>


    <end-state id="AgentViewState" view="flowRedirect:dashboard" />

    <end-state id="invalidCredentialsState" view="loginViewState" />
    </flow>
    Last edited by spurush; Jun 13th, 2013, 12:25 AM.

  • #2
    is auth object serializable?
    are you sure, you are back from else on "validateCredentials"? could be you have not kicked the transition verifyCredentials and it is actually just doing a page refresh?
    Not much other ideas without more informations sorry...

    Comment

    Working...
    X