Hi,
Please refer to my earlier post at http://forum.springframework.org/showthread.php?t=38685
I have tried using the SWF 1.1 nightly build.
I have specified the login bean as
<bean id="login" class="MyLoginBeanClass" scope="flash"/>
The spring identifies the scope flash. However in the next action when I try to retrieve the bean in the flash scope, I get null value.
I understand that login bean has not been instantiated, however since I am using it on the page for the first time, shouldn't it be instantiated by the framework while doing the data binding?
I have pasted below the configuration I did in the faces-config file.
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<application>
<!-- Navigation handler proxy for a Spring-managed bean that is the Web Flow Navigation Handler -->
<navigation-handler>
org.springframework.webflow.executor.jsf.FlowNavig ationHandler
</navigation-handler>
<property-resolver>
org.springframework.webflow.executor.jsf.FlowPrope rtyResolver
</property-resolver>
<variable-resolver>
org.springframework.webflow.executor.jsf.FlowVaria bleResolver
</variable-resolver>
<variable-resolver>
org.springframework.web.jsf.DelegatingVariableReso lver
</variable-resolver>
<!-- Extended "webApplicationContext" resolver -->
<variable-resolver>
org.springframework.web.jsf.WebApplicationContextV ariableResolver
</variable-resolver>
</application>
<lifecycle>
<!-- Multi-caster that broadcast phase events to all PhaseListeners managed by Spring -->
<phase-listener>org.springframework.webflow.executor.jsf. FlowPhaseListener</phase-listener>
</lifecycle>
</faces-config>
If I use flow scope instead of flash, everything works fine. However the similar configuration should have worked in flash scope as well. Am I doing anything wrong here?
Would appreciate your help here.
Regards,
Shashi


Reply With Quote