Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom phaseListener - issue with jsff

dslackApr 16 2013 — edited Apr 18 2013
Hello 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!
This post has been answered by Puthanampatti on Apr 16 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2013
Added on Apr 16 2013
7 comments
1,943 views