jdev 11.1.1.6
I created a bounded task flow(task-flow.xml) with two jspx files browse.jspx and more.jspx
On the click of more button in browse.jspx i am expected to be navigated to more.jspx. code is as follows:
<managed-bean id="__21">
<managed-bean-name id="__23">TestBean</managed-bean-name>
<managed-bean-class id="__22">com.poc.bean.TestBean</managed-bean-class>
<managed-bean-scope id="__20">session</managed-bean-scope>
</managed-bean>
<view id="Browse">
<page>/Browse.jspx</page>
</view>
<view id="More">
<page>/More.jspx</page>
</view>
<control-flow-rule id="__2">
<from-activity-id id="__3">Browse</from-activity-id>
<control-flow-case id="__4">
<from-outcome id="__6">goMore</from-outcome>
<to-activity-id id="__5">More</to-activity-id>
</control-flow-case>
</control-flow-rule>
..
...
Browse.jspx:
<af:commandButton text="More" id="cb4"
action="#{TestBean.browseAction}"/>
TestBean.java:
public String browseAction() {
return "goMore";
}
On the click of more button i am getting the exception:
javax.faces.el.EvaluationException: Target Unreachable, identifier 'TestBean' resolved to null
at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
please advise