In my application i am using Spring Security, Spring Web Flow and JSF. I have defined flows and can extract user information using #{currentUser.name} in pages which are part of flow. But there are some pages like home page which are not part of any flow and is outside the flow. I want to display user name in home page if user is authenticated but i am not able to extract it. Main reason might be that for webflow, i have configured this in webflow.xml
<flow-executor id="flowExecutor">
<flow-execution-listeners>
<listener ref="facesContextListener"/>
<listener ref="securityListener"/>
</flow-execution-listeners>
</flow-executor>
Since its configured for flows only, that's why currentUser object is available for all pages inside flow. Now my question is "is it possible to currentUser object in non flow pages".