Problem in extension of a controller class

Hi all,
I have to make a radio button read only in a standard page. I am not able to set this property using personalisation, because, this bean is being created dynamically. So, I am extending the controller to perform the required function.
Also , there are 2 radioButton beans being created by the same id in the controller using the createWebBean method.
Because of the use of same id's, I am not able to use the findChildRecursive ()method, as this method fetches the 1st bean, while I want to set the property of the second bean.
Kindly help me in resolving this issue.
Thanks.

Hi all,
This is that part of the code of processRequest() in which they have created all the items dynamically . This is the class which I plan to extend to set the property of the radiobutton.
The part of the code is as follows:
OATableLayoutBean oatablelayoutbean = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
oatablelayoutbean.setCellSpacing(3);
oawebbean.addIndexedChild(oatablelayoutbean);
OARowLayoutBean oarowlayoutbean = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean);
OACellFormatBean oacellformatbean = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean.addIndexedChild(oacellformatbean);
oacellformatbean.addIndexedChild(createWebBean(oapagecontext, oawebbean, "ViewLabel"));
OACellFormatBean oacellformatbean1 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean.addIndexedChild(oacellformatbean1);
OARadioButtonBean oaradiobuttonbean = (OARadioButtonBean)createWebBean(oapagecontext, "RADIO_BUTTON", "VARCHAR2", "costRevSelect");
oacellformatbean1.addIndexedChild(oaradiobuttonbean);
oaradiobuttonbean.setAttributeValue(UIConstants.VALUE_ATTR, "Cost");
oaradiobuttonbean.setText(oapagecontext, oawebbean.findIndexedChildRecursive("CostLabel").getLabel().toString());
OACellFormatBean oacellformatbean2 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean.addIndexedChild(oacellformatbean2);
OARadioButtonBean oaradiobuttonbean1 = (OARadioButtonBean)createWebBean(oapagecontext, "RADIO_BUTTON", "VARCHAR2", "costRevSelect");
oaradiobuttonbean1.setAttributeValue(UIConstants.VALUE_ATTR, "Revenue");
oaradiobuttonbean1.setText(oapagecontext, oawebbean.findIndexedChildRecursive("RevenueLabel").getLabel().toString());
oacellformatbean2.addIndexedChild(oaradiobuttonbean1);
OACellFormatBean oacellformatbean3 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oacellformatbean3.setHAlign("center");
oarowlayoutbean.addIndexedChild(oacellformatbean3);
oacellformatbean3.addIndexedChild(createWebBean(oapagecontext, oawebbean, "PaFinPlanMvSelectGo"));
Kindly go through this code and suggest me way by which I can access the radio button with value 'Revenue'.
Thanks

Similar Messages

  • Problems with extension of generic abstract class

    Hello,
    I'm having some problems with the extension of a generic abstract class. The compiler tells me I have not implemented an abstract method but I think I have. I have defined the following interface/class hierarchy:
    public interface Mutator<T extends Individual<S>, S> {
         public void apply( T<S> ind );
    public abstract class AbstractMutator<T extends Individual<S>, S> implements Mutator<T, S> {
         public abstract void apply( T<S> ind );
    }Now I implement AbstractMutator as such:
    public class BinaryMutator extends AbstractMutator<StringIndividual<Integer>, Integer> {
         public void apply( StringIndividual<Integer> ind ) { ... }
    }The compiler says:
    BinaryMutator.java:3: ga.BinaryMutator is not abstract and does not override abstract method apply(ga.Individual<java.lang.Integer>) in ga.AbstractMutator
    Why does it say the signature of the abstract method is apply(Individual<Integer>) if I have typed the superclass as StringIndividual<Integer>?
    Thanks.

    Yes, but the abstract method takes an arg of type <T extends Individual>. So it takes an Individual or a subclass thereof, depending on how I parameterise the class, right? StringIndividual is a subclass of Individual. So if I specify T to be StringIndividual, doesn't the method then take an arg of type StringIndividual?

  • Extended controller class error

    Hi,
    I have extended the CompetenciesCO.class file by creating java class in the jdev, after that i written my logic then i saved and transfered that specific file
    to server (where the CompetenciesCO is located).
    But while i run the page, it says could not create java file:
    after that i changed that extended controller file to .class file, but again same problem.
    What should i do?
    Thanks in advance,
    SAN

    I can't understand about custom top under $JAVA_TOP.
    what i did is, i paced the extended Controller file in the same location where the original controller available.
    Now what should i do?
    why my extended class is problem?
    I changed the controller class file in the Region also using personalization.
    but i didn't bouce the application after i made this, is it needed?

  • 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

  • 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

  • BSP Controller Class Enhancement - calling problem while execution

    Hi all,
    We are having a requirement in the EREC-Publication.
    We have to insert 2 Droop-down fields on screen providing the F4 help for them.
    BSP is modified to add the required fields.
    Also, the Controller class methods are enhanced so that the given F4 list table is populated.
    Here the issue is, when we call the BSP application a fresh and go to the required page, F4 help gets populated and the list is displayed. This means that the Enhancement is also being called. - Confirmed after inserting a break-point.
    Then if i navigate to "Previous page" or "Initial page" using the link that is generated by the SAP Standard. Then when i come back to the same page again. the Enhancement for filling the F4 help list is not called and as a result the F4 help remains empty...
    Is there any solution for the same i am not able to figure out what is exactly going wrong?
    Thanks and Regards,
    Kunjal Patel

    Hi Sharmila,
    The BSP Application in concern is a SAP Standard and hence, we need to enhance the same.
    What you say is correct that we need to do it in the DoInit method. However, as far as possible Modification of SAP Standard code should be avoided. For the same, we have used the Implicit Enhancement point to enhance the required Method of the class.
    This Enhancement is not called every time the class method is called. Hence, the worry.
    Any suggestions?
    Thanks and Regards,
    Kunjal Patel

  • 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.

  • Problem avec bean code in controller

    Hi;
    i made a slider in scenebuilder et i added a method in the code: #ondrag.scenebuilder gives a warning:No event handler found in FXML controller class for the event ondrag
    How can i make an event handler in controller for this slider?
    regards
    Kapac

    daniel wrote:
    #ondrag.scenebuilder is not a valid method name.
    You should use #xxxxxxx where xxxxxxx is the name of a method in your controller's class.
    What you can do is:
    1. In SceneBuilder, select the node on which you want to set the handler.
    2. Open the Code section of the inspector
    3. Type in the name of the method you want to invoke when the event is fired (don't forget the leading #)
    4. Invoke View > Show Sample Skeleton Code
    5. In the window that pops up, copy the method declaration, and paste it into your controller class.
    See my post on connection to code:
    https://blogs.oracle.com/jmxetc/entry/connecting_scenebuilder_edited_fxml_to
    -- danielDaniel;thank you for your precious and quick answer ;i have always problems with slider;
    i don't understand your remark :
    #ondrag.scenebuilder is not a valid method name.
    You should use #xxxxxxx where xxxxxxx is the name of a method in your controller's class.
    because i write any name of method in builder #xxxxxxx and i copy it in controller without problem .Is a particular name to write in builder?
    my problem is :moving the cursor of the slider by a method of the builder code,i tried differents methods in drag and drop : ondragdetected;ondragdone;ondragentered;ondragexited,onmousedrag exited,onmousedragrelease,
    and in mouse
    and copyit in controller
    but if i put a breakpoint at the method the debugger is ignoring the method and the breakpoint
    i would like to make a music reader and i succeed to make a slider like a progressbar;but i can't move the cursor of the slider with the mouse in order to play another place.
    also i don't find any doc or tutorials on the different parts of the builder code? are any??

  • New controller classes for Web IC views

    Hi
    Could anyone help out with the following:-
    I 'inherited' a customer's Web IC implementation to support recently.  The system hasn't been properly documented, I'm new to Web IC and they've just applied support packages to the system which has caused some problems.
    The specific issue is as follows:-
    I search for, identify and confirm a business partner.
    I call up view IHistResult (via Interaction History from the NavBar) - this was copied from the standard CRM_IC application and has a Z controller associated with it.  There is an XML controller replacement in place to call this view.
    When the view is called, I get a syntax error - CX_SY_MOVE_CAST_ERROR.  The cast that occurs is from a variable referencing CL_BSP_CONTROLLER to my Z class - which does have a relationship to CL_BSP_CONTROLLER through super classes.
    If I make the controller class the SAP standard class (CL_CRM_IC_IHISTRESULT_IMPL) then everything is fine.  I created a new, clean Z class with CL_CRM_IC_IHISTRESULT_IMPL as the super class, no redefinitions, no changes and assigned this to the view.  Then I get the syntax error in the view.
    I don't see what the problem with casting to my Z class can be - it's a subclass of CL_CRM_IC_IHISTRESULT_IMPL with absolutely no changes. 
    If anyone could suggest any ideas or solutions I'd be grateful.
    Thanks
    Ben

    Found my own solution to this one.  Hadn't updated the .do file - only the .htm.
    Sorry for any time wasted.

  • Update a column value from Controller class

    Hi,
    hope you are well.
    i am facing a problem.
    i want to update a schema object's column value i.e:update emp set id=2 where id=:1;
    how can i do it from Controller Class.
    i would like to bind a variable in this :1.
    i would like to avoid pl/sql stored procedure.
    so please suggest.
    regards
    Mofizur

    Mofizur,
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;//Import this into your controller
         OAViewObject opsVO = (OAViewObject) am.findviewObject("getisOpsOrNonOps1");
          if(!opsVO.isPreparedForExecution())
            opsVO.setWhereClause(null);
            opsVO.setWhereClauseParam(0,null);
            opsVO.executeQuery();
          }

  • Controller Class: Search functionality.

    Hello,
    Here is a snapshot of the Controller class what NetBeans have created by default which interacts with the entity class. I need to add a search functionality to this bean which a JSF search form can utilize. Can anyone help me out to add without breaking it's structure.
    public class ProductController {
        private Product product = null;
        private List<Product> products = null;
        @Resource
        private UserTransaction utx = null;
        @PersistenceUnit(unitName = "ExApp")
        private EntityManagerFactory emf = null;
        public EntityManager getEntityManager() {
            return emf.createEntityManager();
        public int batchSize = 15;
        private int firstItem = 0;
        private int itemCount = -1;
        public SelectItem[] getProductsAvailableSelectMany() {
            return getProductsAvailable(false);
        public SelectItem[] getProductsAvailableSelectOne() {
            return getProductsAvailable(true);
        private SelectItem[] getProductsAvailable(boolean one) {
            List<Product> allProducts = getProducts(true);
            int size = one ? allProducts.size() + 1 : allProducts.size();
            SelectItem[] items = new SelectItem[size];
            int i = 0;
            if (one) {
                items[0] = new SelectItem("", "---");
                i++;
            for (Product x : allProducts) {
                items[i++] = new SelectItem(x, x.toString());
            return items;
        public Product getProduct() {
            if (product == null) {
                product = getProductFromRequest();
            if (product == null) {
                product = new Product();
            return product;
        public String listSetup() {
            reset(true);
            return "product_list";
        public String createSetup() {
            reset(false);
            product = new Product();
            return "product_create";
        public String searchSetup() {
            reset(false);
            product = new Product();
            return "product_search";
        public String create() {
            EntityManager em = getEntityManager();
            try {
                utx.begin();
                em.persist(product);
                utx.commit();
                addSuccessMessage("Product was successfully created.");
            } catch (Exception ex) {
                try {
                    if (findProduct(product.getId()) != null) {
                        addErrorMessage("Product " + product + " already exists.");
                    } else {
                        ensureAddErrorMessage(ex, "A persistence error occurred.");
                    utx.rollback();
                } catch (Exception e) {
                    ensureAddErrorMessage(e, "An error occurred attempting to roll back the transaction.");
                return null;
            } finally {
                em.close();
            return listSetup();
        public String detailSetup() {
            return scalarSetup("product_detail");
        public String editSetup() {
            return scalarSetup("product_edit");
        private String scalarSetup(String destination) {
            reset(false);
            product = getProductFromRequest();
            if (product == null) {
                String requestProductString = getRequestParameter("jsfcrud.currentProduct");
                addErrorMessage("The product with id " + requestProductString + " no longer exists.");
                String relatedControllerOutcome = relatedControllerOutcome();
                if (relatedControllerOutcome != null) {
                    return relatedControllerOutcome;
                return listSetup();
            return destination;
      private Product getProductFromRequest() {
            String theId = getRequestParameter("jsfcrud.currentProduct");
            return (Product) new ProductConverter().getAsObject(FacesContext.getCurrentInstance(), null, theId);
        private String getRequestParameter(String key) {
            return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);
        public List<Product> getProducts() {
            if (products == null) {
                products = getProducts(false);
            return products;
        public List<Product> getProducts(boolean all) {
            EntityManager em = getEntityManager();
            try {
                Query q = em.createQuery("select object(o) from Product as o");
                if (!all) {
                    q.setMaxResults(batchSize);
                    q.setFirstResult(getFirstItem());
                return q.getResultList();
            } finally {
                em.close();
        private void ensureAddErrorMessage(Exception ex, String defaultMsg) {
            String msg = ex.getLocalizedMessage();
            if (msg != null && msg.length() > 0) {
                addErrorMessage(msg);
            } else {
                addErrorMessage(defaultMsg);
        public static void addErrorMessage(String msg) {
            FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, msg);
            FacesContext.getCurrentInstance().addMessage(null, facesMsg);
        public static void addSuccessMessage(String msg) {
            FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
            FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg);
        public Product findProduct(Integer id) {
            EntityManager em = getEntityManager();
            try {
                Product o = (Product) em.find(Product.class, id);
                return o;
            } finally {
                em.close();
        public int getItemCount() {
            if (itemCount == -1) {
                EntityManager em = getEntityManager();
                try {
                    itemCount = ((Long) em.createQuery("select count(o) from Product as o").getSingleResult()).intValue();
                } finally {
                    em.close();
            return itemCount;
        public int getFirstItem() {
            getItemCount();
            if (firstItem >= itemCount) {
                if (itemCount == 0) {
                    firstItem = 0;
                } else {
                    int zeroBasedItemCount = itemCount - 1;
                    double pageDouble = zeroBasedItemCount / batchSize;
                    int page = (int) Math.floor(pageDouble);
                    firstItem = page * batchSize;
            return firstItem;
        public int getLastItem() {
            getFirstItem();
            return firstItem + batchSize > itemCount ? itemCount : firstItem + batchSize;
        public int getBatchSize() {
            return batchSize;
        public String next() {
            reset(false);
            getFirstItem();
            if (firstItem + batchSize < itemCount) {
                firstItem += batchSize;
            return "product_list";
        public String prev() {
            reset(false);
            getFirstItem();
            firstItem -= batchSize;
            if (firstItem < 0) {
                firstItem = 0;
            return "product_list";
        private String relatedControllerOutcome() {
            String relatedControllerString = getRequestParameter("jsfcrud.relatedController");
            String relatedControllerTypeString = getRequestParameter("jsfcrud.relatedControllerType");
            if (relatedControllerString != null && relatedControllerTypeString != null) {
                FacesContext context = FacesContext.getCurrentInstance();
                Object relatedController = context.getApplication().getELResolver().getValue(context.getELContext(), null, relatedControllerString);
                try {
                    Class<?> relatedControllerType = Class.forName(relatedControllerTypeString);
                    Method detailSetupMethod = relatedControllerType.getMethod("detailSetup");
                    return (String) detailSetupMethod.invoke(relatedController);
                } catch (ClassNotFoundException e) {
                    throw new FacesException(e);
                } catch (NoSuchMethodException e) {
                    throw new FacesException(e);
                } catch (IllegalAccessException e) {
                    throw new FacesException(e);
                } catch (InvocationTargetException e) {
                    throw new FacesException(e);
            return null;
        private void reset(boolean resetFirstItem) {
            product = null;
            products = null;
            itemCount = -1;
            if (resetFirstItem) {
                firstItem = 0;
        private Map<Object, String> asString = null;
        public Map<Object, String> getAsString() {
            if (asString == null) {
                asString = new HashMap<Object, String>() {
                    @Override
                    public String get(Object key) {
                        if (key instanceof Object[]) {
                            Object[] keyAsArray = (Object[]) key;
                            if (keyAsArray.length == 0) {
                                return "(No Items)";
                            StringBuffer sb = new StringBuffer();
                            for (int i = 0; i < keyAsArray.length; i++) {
                                if (i > 0) {
                                    sb.append("<br />");
                                sb.append(keyAsArray);
    return sb.toString();
    return new ProductConverter().getAsString(FacesContext.getCurrentInstance(), null, (Product) key);
    return asString;
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can you tell us what "not working" means? Can you give us some more detail to try and narrow down the problem? Also you say the search works on your local machine. Have you tried running the help from the generated / published location yourself?

  • 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 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

Maybe you are looking for

  • Connect a legacy system to SAP by ALE

    Dear firends,    I have a legacy system in VB for venodor details, I wish to integrate it with SAP. but don know the procedure... i feel ALE can help in this regards as i am looking for it in real time rather uploading the data by batch upload.   ple

  • Mac Mini Server VPN Issues - Driving me insane

    Mac Mini Late 2012 Late 2012 Software  OS X 10.8.2 (12C2034) Server Version 2.2(166) Previous Issues experiencing: Before i rang apple support and spoke with enterprise support i had no luck at all for weeks getting the VPN connected. After calling s

  • Formating Western Digital External Hard Drive gets an error

    Hi! I just bought a 500GB Western Digital External Hard Drive (uses Firewire 400), primarily for storing HD iMovie and Final Cut Express files. When I checked the iMovie support, it recomends to format the external hard drive as Mac OS X Extended (Jo

  • Using Old AT Style Northgate Keyboard with Mac mini

    I have just switched to Mac from Windows and I am having trouble figuring out how to use my favorite keyboard. It's a Northgate Omni Key 102 At style keyboard without a "windows" key and I don't know how to access Command, or Option with it. Is there

  • Photoshop CC not opening from desktop icon

    Photoshop CC installed on PC running Windows 7 and appears as app pinned to task bar.  The application will open normally when opened via Lightroom photo editing, but when attempting to open from the task bar, it just brings up  dailogue box, which s