I am working on a webflow project and I am have i issue with a decision-state trying to access and funcation in my java class. I am getting a Property Not Found error Caused by: org.springframework.expression.spel.SpelEvaluation Exception: EL1008E
pos 0): Field or property 'FlowActions' cannot be found on object of type 'org.springframework.webflow.engine.impl.RequestCo ntrolContextImpl'
Here is my flow:
Code:
<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">
<var name="member" class="org.uftwf.enrollment.domain.Member" />
<decision-state id="checkIsInPending">
<if test="FlowActions.isInPending()" then="endStateMemeberPending" else="name" />
</decision-state>
<view-state id="name" view="enrollment1.jsp">
<transition on="submit" to="SSNonFile" />
<transition on="cancel" to="endState" bind="false" />
</view-state>
...
Here is my controller:
Code:
package org.uftwf.enrollment.controller.swf;
import static org.apache.log4j.Logger.getLogger;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.uftwf.enrollment.domain.Member;
import org.uftwf.enrollment.service.TestService;
@Component
public class FlowActions {
@Autowired
private TestService testService;
private static final Logger LOGGER = getLogger(FlowActions.class);
public void addCustomer(Member customer) {
// testService.saveCustomer(customer);
}
public boolean isInPending()
{
LOGGER.debug("in side isInPending()");
return false;
}
public boolean isSSNOnFile(Member customer)
{
return false;
}
public void isMemeber(Member customer)
{
}
public void isDeceased(Member customer)
{
}
}
Here is my root-config.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
<import resource="mvc.xml" />
<import resource="flow.xml" />
<import resource="domain.xml" />
<context:component-scan base-package="org.uftwf.enrollment.controller.swf" />
</beans>
so why am I getting this error.. why cant spring webflow find it>