Custom phaseListener - issue with jsff
dslackApr 16 2013 — edited Apr 18 2013Hello all,
I have been playing with custom phase listener classes to preset some values on a few pages.
http://docs.oracle.com/cd/E12839_01/web.1111/b31974/adf_lifecycle.htm#CIAJGBID
Following this documentation I've found that I can get my phase listener to work just fine for a standard jsf page. I create my listener java class and set the ControllerClass attribute in the pageDef.xml using an el expression that resolves to that class by sticking it in the pageFlowScope of my task flow. However, for my jsff pages I can't get this to work. I've tried a few things:
1.) Following my previous technique that worked for jsf, ControllerClass set to the el expresion #{pageFlowScope.phaseImpl} results in a class not found exception.
2.) Try setting ControllerClass to actual path. "com.package.beans.PhaseImpl cannot be cast to oracle.adf.model.RegionController".
3.) Try setting ControllerClass to oracle.adf.model.RegionController as the documentation suggests. "ADF: Adding the following JSF error message: oracle.adf.model.RegionController
java.lang.InstantiationException: oracle.adf.model.RegionController"
I'm not sure if I'm misinterpreting the document, but does anyone have advice for what I could be doing wrong specifically for a page fragment calling a custom phaseListener?
Thanks in advance!