I followed a no of links and trying to handle the exception globally on my taskflow but seems like the exception page is not getting called.
I have a jsff page which is being called as taskflow region as :
jspx page has the entry:
<f:facet name="content">
<af:region value="#{bindings.TestException.regionModel}"
id="r1" inlineStyle="width:740.0px;" />
</f:facet>
The TestException is defined in page binding as:
<taskFlow id="TestException"
taskFlowId="/WEB-INF/exceptionTest/exceptionTest.xml#exceptionTest"/>
exceptionTest.xml has following entry:
<default-activity id="__1">begin</default-activity>
<exception-handler id="__13">ExceptionPage_invstate</exception-handler>
<view id="invstatecredits">
<page>/invstatecredits/InvStateCredits.jsff</page>
</view>
<view id="ExceptionPage_invstate">
<page>/invstatecredits/ExceptionPage_invstate.jsff</page>
</view>
<control-flow-rule id="__2">
<from-activity-id id="__3">begin</from-activity-id>
<control-flow-case id="__5">
<from-outcome id="__6">success</from-outcome>
<to-activity-id id="__4">invstatecredits</to-activity-id>
So, once the page is loaded, it loads the InvStateCredits.jsff page, on jsff page i have created the button which calls for a null pointer exception.
My expectation here is on the null pointer the page shall be routed to ExceptionPage_invstate.jsff, which i not happening.
Can someone advise me what is wrong with the code?