Ok i debugged the code to some extent and i have (i think) found where the problem is:
if i start the payslips.xml (webflow) the first state is an action-state which only evaluates and sets a request parameter to a flow scope variable
Code:
<action-state id="setupModel" >
<evaluate expression="requestParameters.payslipType" result="flowScope.payslipType" ></evaluate>
<transition to="setupView">
</transition>
</action-state>
<view-state id="setupView" view="payslips">
<on-entry>
<evaluate expression="requestParameters.backFlag" result="viewScope.backFlag" ></evaluate>
<evaluate expression="payslips.canUserApprovePayslips()" result="flowScope.approvalsMap" ></evaluate>
</on-entry>
<transition on="processPayslips" to="confirmationView" >
</transition>
</view-state>
<view-state id="confirmView" view="payslips_confirmation">
<on-entry>
<evaluate expression="requestParameters.selectedBulkPayslipsType" result="flowScope.selectedBulkPayslipsType" ></evaluate>
</on-entry>
<transition on="confirm" to="resultView" ></transition>
<transition on="back" to="setupView" ></transition>
</view-state>
The payslips.canUserApprovePayslips() method is executed in full and exited successfully THEN it shows me the flowId not found error and string out of bound exception which means it cannot find the payslips.jsp. SO now I know this is the problem but I cannot solve this as the setup is a bit complex here for the view:
here is my View Resolver:
Code:
<!-- Maps a logical view name to a physical resource using a resource bundle (views.properties)-->
<bean id="viewResolver" class="org.springframework.web.servlet.view.ResourceBundleViewResolver">
<property name="basenames">
<list>
<value>com.mypackage.mvc.payslips</value>
</list>
</property>
</bean>
in this com.mypackage.mvc package there is the payslips.properties file which has listings like this :
Code:
payslips.class=org.springframework.web.servlet.view.JstlView
payslips.url=/payslips/payslips.jsp
payslips_confirmation.class=org.springframework.web.servlet.view.JstlView
payslips_confirmation.url=/payslips/payslips_confirm.jsp
payslips_results.class=org.springframework.web.servlet.view.JstlView
payslips_results.url=/payslips/payslips_results.jsp
Now see I have made it this far, I don't know how this properties file is supposed to be read in webflow as a view resolver property but it is not. The non webflow urls are being accessed and the properties file is actually working in non webflow cases but the webflow urls even in the same file are not working.
I will really appreciate if anyone can help me in figuring out how to tell webflow where the jsps is for the view state.
Thanks in advance.
Mahdi