Controller class extension ignored

Hi,
in R12, I'm tryng to extend controller in page /oracle/apps/ap/payments/ps/webui/SelectedPsPG 120.9.
Controller : SelectedPsCO
Application Module: PsrAM
To extend oracle.apps.ap.payments.ps.webui.SelectedPsCO I created a new controller in a new package oracle.apps.ap.cust.payments.ps.webui.XxmySelectedPsCO.
I compiled and deployed it on server.
In personalization page I updated contoller class value from oracle.apps.ap.payments.ps.webui.SelectedPsCO to oracle.apps.ap.cust.payments.ps.webui.XxmySelectedPsCO.
I add in custom controller code, on click existing "save" button, a raise of an exception, just to try it.
I tested my extension but it means not catch the change of controller and ignore the custom raise exception.
I bounced all services.
Please help me.
Lou

Thanks RMH,
I activated diagnostic and put messages in controller class.
Unluckly it doesn't appear.
After click on svae button I didn't see neither my custom message "MYprocessFormRequest" nor the standard message "processFormRequest".
Instead I can see "processRequest" and some referement to my custom CO
[25]:PROCEDURE:[fnd.profiles.Profiles]:getProfileOptionValue: name=FND_DISABLE_OA_CUSTOMIZATIONS; levelID=10002; levelValue=200; levelValueApplID=0
[25]:PROCEDURE:[fnd.profiles.Profiles]:getProfileOptionValue: name=FND_DISABLE_OA_CUSTOMIZATIONS; levelID=10001; levelValue=0; levelValueApplID=0
-->*[26]:EVENT:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:OAF LOG: Event : Call Process Request, in: oracle.apps.ap.xxcust.payments.ps.webui.XxinSelectedPsCO: Entering Process Request*
-->*[26]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - begin*
-->*[26]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - begin*[26]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - begin
[29]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - end
[29]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - begin
[32]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - end
[32]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - begin
[37]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - end
*-->[38]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - end*
[39]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - begin
[41]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - end
[42]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - begin
[44]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - end
[44]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - begin
[49]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - end
*-->[50]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - end*
So my personalisation seems picked up but processFormRequest is not fired.
cheers
Lou

Similar Messages

  • Controller Class Extension Problem

    Hi,
    I am trying to extending controller class below is the code. When I click "FndGoButtonSubmit" at my page then it does not calling "setSequenceValue(pageContext, webBean)" method and no action take place at processFomeRequest method, although my code at processRequest works fine
    super.processRequest(pageContext, webBean);
    throw new OAException("Wrong Button Selected", OAException.WARNING);
    package oracle.apps.eam.stores.materialissue.webui;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.eam.stores.materialissue.webui.EAMIssueMaterialMainCO;
    import oracle.apps.eam.stores.materialissue.server.EAMMaterialResultTableVORowImpl;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    import oracle.apps.icx.testapp.emptest.server.EmpTestVORowImpl;
    import oracle.cabo.ui.beans.message.MessageTextInputBean;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.domain.Number;
    public class TestCO extends EAMIssueMaterialMainCO {
    public TestCO() {
    public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
    super.processRequest(pageContext, webBean);
    throw new OAException("Wrong Button Selected", OAException.WARNING);
    public void processFomeRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("EamSubmitButton")!=null) {
    setSequenceValue(pageContext, webBean);
    else if (pageContext.getParameter("FndGoButtonSubmit")!=null) {
    checkButton(pageContext, webBean);
    else
    throw new OAException("Else if Selected", OAException.WARNING);
    public void setSequenceValue(OAPageContext pageContext,
    OAWebBean webBean) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction transaction = am.getOADBTransaction();
    OAViewObject vo =
    (OAViewObject)am.findViewObject("EAMIssueMaterialResultTableVO");
    System.out.println("Number of Rows are:" + vo.getRowCount());
    Number sequencVal = transaction.getSequenceValue("TEST_SEQ_MAT");
    EAMMaterialResultTableVORowImpl row = null;
    RowSetIterator iterator = vo.createRowSet("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(vo.getRowCount());
    System.out.println("OK!");
    for (int i = 0; i < vo.getRowCount(); i++) {
    row = (EAMMaterialResultTableVORowImpl)iterator.getRowAtRangeIndex(i);
    row.setReference(sequencVal.toString());
    public void checkButton(OAPageContext pageContext,
    OAWebBean webBean) {
    throw new OAException("Go Button Clicked", OAException.WARNING);
    Regards,
    Haroon.
    Edited by: Haroon Afridi on Jan 11, 2011 6:08 AM

    Hi Haroon,
    You are calling at the start of the PFR super.processFormRequest(pageContext, webBean);//This will alway call your Parent Controller & hence your extended code will not get executed.
    Put it at the end of the PFR.
    public void processFomeRequest(OAPageContext pageContext,
    OAWebBean webBean) {
    super.processFormRequest(pageContext, webBean);
    if (pageContext.getParameter("EamSubmitButton")!=null) {
    setSequenceValue(pageContext, webBean);
    else if (pageContext.getParameter("FndGoButtonSubmit")!=null) {
    checkButton(pageContext, webBean);
    else
    throw new OAException("Else if Selected", OAException.WARNING);
    public void setSequenceValue(OAPageContext pageContext,
    OAWebBean webBean) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OADBTransaction transaction = am.getOADBTransaction();
    OAViewObject vo =
    (OAViewObject)am.findViewObject("EAMIssueMaterialResultTableVO");
    System.out.println("Number of Rows are:" + vo.getRowCount());
    Number sequencVal = transaction.getSequenceValue("TEST_SEQ_MAT");
    EAMMaterialResultTableVORowImpl row = null;
    RowSetIterator iterator = vo.createRowSet("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(vo.getRowCount());
    System.out.println("OK!");
    for (int i = 0; i < vo.getRowCount(); i++) {
    row = (EAMMaterialResultTableVORowImpl)iterator.getRowAtRangeIndex(i);
    row.setReference(sequencVal.toString());
    Regards.
    Gyan

  • Cannot locate custom controller class after applying OIE.K  patch.

    Hi,
    I am trying to search all the region level personalizations(on Update Allocations Page in iExpenses while creating Expense Reports) to find out where our custom controller class is being called(it was personalized at site level). But no luck until now.
    Nevertheless, we were able to locate our custom controller class in an instance where the OIE.K oracle patch was not applied. Seems like after applying this patch, the seeded region names are changed too. Our custom code also works but cannot figure out where our CO is being called.
    Any suggestions please?
    Thanks,
    Swati.

    Guys,
    Using "About the Page" link on UpdateExpenseAllocationsPG, I found SplitCriteriaTblCO controller class instead of UpdateKffCO class, that was extended to HumUpdateKffCO custom class.
    Our custom code is still intact even though we do not find our custom CO. Probably we have to look elsewhere to find it, no idea!.
    I just need to know how to remove our iExpense extension. In order to remove the iExpense extensions in the instance where the OIE.K was not applied, we just removed the personalization at site level, where the controller HumUpdateKffCO was called and that took care of it.
    --Swati.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error while extending controller: class name is wrong or not included

    Hi All,
    I am getting this error while I port my extended controller class to the custom top and assign this controller to the page. I have made sure its the class file that is copied. The directory is correct, the permissions were given using chmod 775. There exists a soft link betwen the custom top and the oracle top as well. What else am I missing here?
    Error: oracle.apps.fnd.framework.OAException: Could not create Java class: (oracle.apps.ap.oie.entry.webui.XXEntryFlowPageCO) associated with region: (GeneralInformationPG). This is probably because the class name is wrong or not included in project.

    :( Started out with that Gyan. If i do give the path with xx. appended to it, it lets me save and when i log back in and there are no changes to the page. I go to the personalise option to find the modification has been overwritten. I was told that this is so because Oracle doesnt recognise the xx.path and since there exists a soft link already the standard path with the new controller name should work.
    i have really tried both of these options and am not sure what could be wrong. thanks for all your attempts to help. anything else i can try?

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to retrieve content from DAO Class and process in Controller Class?

    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05

    875864 wrote:
    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05if its a large set of data, and is fetched from DB and you are sure that it is too large and chances of getting out of memory exception then why you are passing it over request.
    If the data is fetched based on some filter criteria, then just pass the filter criteria from class A to class B, and fetch the data from DB based on the filter criteria in class B.

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • Deploying the extended controller class file on server

    Hi OAF Experts,
    I am working on the already extended controller file.
    I have made the changes and was able to comiple the controller class file.
    I have one uestion for you. Now to put the class file on the server i am following the below steps:
    1) Putting the new class file on the server where it is already present. This is done using Unix commands
    2) Bouncing the server.
    I hope this will reflect the new changes. Is there any thing else i need to do?
    Thanks,
    Samarth

    Hi,
    Yes. These are only required steps to reflect the changes.
    --Sushant                                                                                                                                                                                   

  • How to Use JavaScript in Controller Class...

    Hi All,
    Can any one tell me how to use JavaScript in Controller Class.
    Requirement is:
    I have
    Radio Group(RG1),
    Two Radio Buttons(RB1,RB2),
    Two messageTextInput(MTI1,MTI2),
    if i click RB1 i should Prompt to the end user to "Enter value for MTI1" or
    If i click RB2 i should prompt "Enter value for MTI2" while submitting page.
    Please let me know the steps to use JavaScript and the above client validation...
    Regards
    Alem...

    Using javascript is against the standard. I can tell you a workaround instead of you setting the javascript, check if that would be acceptable.
    You can use PPR and set the required property on the messageTextInput on clicking of the radio button. By doing this you will let UIX generate the javascript for you to handle the client side validation. But the validation will happen only on click of the submit button. The visual indicator is good enough to tell that the value has to be entered to the item.

  • Custom page controller class

    Hello,
    I'm trying to implement what is explained in the article *"Two Ideas to Handle JBO-35007 'Row Currency Changed' Exception"* (http://blogs.oracle.com/smuenchadf/examples/). This example illustrates how to use a custom page controller class to override the handleError() method to conditionally handle the JBO-35007 exception ('Row currency has changed since the user interface was rendered.') in a way that might be more useful to the end-user.
    So I've defined a custom page controller class in a JSP of my application, but I don't know why the application flow is not passing through the handleError method when a JBO-35007 exception occurs.
    I've defined well in the pagedef the attribute "ControllerClass", and I use the "back button" to produce the JBO-35007 exception. But I don't know why the method handleError is not executed, although the the JBO-35007 exception is displayed.
    Thank you very much.

    Hi,
    you are on JDeveloper 11g ? The article you follow was written for 10.1.3. In 11g the error handling is configured in DataBindings.cpx page. Select the DataBindings.cpx page in the Application Navigator and select its root node in the Structure Window. Then open the Property Inspector to configure your version of the Error Handler class
    Frank

  • How do i set the contentStyle of textbox in my controller class on pageload

    Hi All,
    I have a requirement where i need to set the contentStyle of a textbox as well as the border of textbox as per condition on page load.
    I am trying this code but unable to set it properly.
    *public void onLoad() {*
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    erks.addScript(context,"AdfPage.PAGE.findComponent('it15').setProperty('ContentStyle',background-color:#00C0C0);");
    Am i missing something ??
    Is there any other method to achieve my requirement ?
    Please suggest!!
    Thanks!!

    Hi Accadsoft,
    I have tried with this but nothing happens :-
    I have used this code in my controller class :-
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService erks =
    Service.getRenderKitService(context, ExtendedRenderKitService.class);
    erks.addScript(context,"AdfPage.PAGE.findComponentByAbsoluteId('it3').setProperty('ContentStyle',background-color:#00C0C0);");
    Please find the below Jspx code snippet as well...:-
    <af:form id="f1"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.f1}">
    <af:panelFormLayout binding="#{backingBeanScope.backing_TimeCostedInvoices.pfl1}"
    id="pfl1" maxColumns="3" rows="1">
    <af:inputText value="#{bindings.Totalamount.inputValue}"
    label="#{bindings.Totalamount.hints.label}"
    required="#{bindings.Totalamount.hints.mandatory}"
    columns="#{bindings.Totalamount.hints.displayWidth}"
    maximumLength="#{bindings.Totalamount.hints.precision}"
    shortDesc="#{bindings.Totalamount.hints.tooltip}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.it3}"
    id="it3">
    <f:validator binding="#{bindings.Totalamount.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Totalamount.format}"/>
    </af:inputText>
    <af:selectOneChoice value="#{bindings.Doctypedesc.inputValue}"
    label="#{bindings.Doctypedesc.label}"
    required="#{bindings.Doctypedesc.hints.mandatory}"
    shortDesc="#{bindings.Doctypedesc.hints.tooltip}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.soc1}"
    id="soc1"
    valueChangeListener="#{backingBeanScope.backing_TimeCostedInvoices.getValue}"
    autoSubmit="true">
    <f:selectItems value="#{bindings.Doctypedesc.items}"
    binding="#{backingBeanScope.backing_TimeCostedInvoices.si1}"
    id="si1"/>
    </af:selectOneChoice>
    </af:panelFormLayout>
    </af:form>
    I am just thinking whether the syntax is appropriate on this line :-
    erks.addScript(context,"AdfPage.PAGE.findComponentByAbsoluteId('it3').setProperty('ContentStyle',background-color:#00C0C0);");
    Please suggest!!!

  • How to access servlet objects from OA page controller class

    Hi everybody!
    I need to put some value into servlet attribute in OA page controller class to read it from ordinary servlet later.
    How can i do it? Is it possible to get HttpServletRequest and HttpServletResponse objects from page controller?
    Thank you.

    I have a servlet which receives uploaded files with special attributes (something like tags for file) using POST request.
    This attributes created when user open page in standard OAF page via page controller.
    On client side I have an applet which uploads user selected file to my servlet and passes this file attributes.
    Now this attributes passes as plain text. I want to encrypt this attributes to hide attribute details from user. To do this I need to share some information between OAF page and my servlet.
    I know that OAF supports URL encryption, but to decrypt it I should use standard pageContext object.
    But in ordinary servlet I can't use it.

  • Java.lang.ClassCastException in Controller Class

    Hi All,
    I am getting ClassCastException in one of my Controller class where initiating OABreadCrumbsBean object.
    The code is as below.
    OABreadCrumbsBean oabreadcrumbsbean = (OABreadCrumbsBean)((OAPageLayoutBean)oawebbean).getBreadCrumbsLocator();
    This I am using processRequest() method in that controller class.
    Please let me know what can be the possible reason of this.
    Thanks
    Debashree

    You are presuming that the first indexed child can be cast as OAMessageChoiceBean. If you do System.out.println of the object, it will tell you what the type is. It sounds like the order of the children may have changed and the type of object you think you have referenced is a different type.
    Comment out the uiNde0 cast and do this:
    System.out.println(reasonDff.getIndexedChild((OARenderingContext)pageContext.getRenderingContext(),
    1));
    Kristofer

  • Getting appmod reference in UIX controller class

    Hi,
    I tried using ServletBindingUtils.getApplicationModule(BajaContext) method in a static method in UIX controller class to get the reference of application module defined in UIX page. But i am getting null. How can i get the reference of view and appmod in UIX controller class
    regards,
    srivatsan

    Your event handler has to be within a <bc4j:findRootAppModule> element.

Maybe you are looking for

  • Why does my macbook pro suddenly go to sleep while I am using it

    My 2009 2.53 GHz Intel Core 2 Duo will suddenly go to sleep (or so it seems) while I am using it - like mousing or typing on it.  It is difficult to get it to wake up.  I either have to hit the space bar repeatedly or hit the on button a couple of ti

  • Administrator page will not display

    Running Windows 2003 server with Sun webserver and CFMX 6.1 Upgraded to CFMX 7. Followed instructions to install in the default directory c:\cfmx7. Next step was to open CFMX administrator page (http:\\127.0.0.1\cfide\administrator\index.cfm) to run

  • How to send a Error mail without Orchestration

    Hi, I need to send an Error mail without using orchestration and without enabling Failed Message routing in the ports. Please help me in accomplishing this. Regards, Vignesh S

  • IPAD Movie Sync Extremely Slow

    Everytime I sync a movie to my IPAD it takes about 45 minutes to sync. Please help !!!!!!!!!!!1

  • Viewing HDV sequence / media on Broadcast Monitor?

    Is it / or is it not possible to view a HDV sequence or media on Broadcast Monitor via a Firewire Device such as a HDV camcorder? If so great, if not, what are my options and how can I achieve this? VV URGENT Thanks in advance.