Hi All,
I have a basic doubt here,
I want to call a method when my page loads using Spring Webflow.
In Spring Webflow,when a page loads the first method that gets called is setupForm in FlowController if we specify teh below code in <view-state>
After this stage i am able to call any method, but according to my requirement i need to call a method before page loads and display the data.Code:<render-actions> <action bean="formAction" method="setupForm" /> </render-actions>
I tried putting it this way, but it does not work before <view-state>
The error i get here is:<start-actions>
<action bean="formAction" method="setupForm" />
<bean-action bean="myclass" method="myMethod">
<method-result name="referenceData" />
</bean-action>
</start-actions>
Please give suggestions.nested exception is org.springframework.binding.method.InvalidMethodKe yException:Could not resolve method with key myMethod;
Thanks in Advance,
DeepEdward


Reply With Quote