Oracle ADF VO old value problem.

I have a web application developed Oracle ADF and Jdev 11.1.2.3.0. I have a button in my page which name is "Complaint". When user click the button, it invokes a method on ApplicationModuleImpl via a ManagedBean.
public void clearAndExecute(){
getCardView1().clearCache();
getUser1View1().clearCache();
getReplyView1().clearCache();
getCardView1().executeQuery();
getUser1View1().executeQuery();
getReplyView1().executeQuery();
public void increaseComplaint(BigDecimal cardID) {
clearAndExecute();
ViewObjectImpl vo = getCardView1();
Integer complaintCount;
BigDecimal userID=null;
Row[] rows = vo.findByKey(new Key(new Object[] { cardID }),1);
if (rows != null && rows.length > 0) {
Row row = rows[0];
complaintCount = (Integer) row.getAttribute("CardComplaintcount");
++complaintCount;
userID=(BigDecimal) row.getAttribute("UserUserid");
row.setAttribute("CardComplaintcount", complaintCount);
clearAndExecute();
this.getDBTransaction().commit();
clearAndExecute();
This method gets the "CardComplaintcount" column value in CardView1 and increase +1 it. and commit Transaction. My method runs normally but i have an issue.
For example scenerio ; Initially, In column "CardComplaintcount" value is 5. And i open two web page different browser. Then, i clicked "Complaint button" 3 times. I looked at the mysql db, its value 8 it is OK. And then, i turn to other opened browser and clicked "Complaint" button one time and looked at the mysql db, and size is 6. it must be 8+1=9. It is likely refresh problem or not, How can handle this problem.
Edited by: ramonypp on 27.Kas.2012 18:29

Kdario, i know that, i can do a jdbcl call and get last result from DB. But, What is here ADF business components, Entities and View Objects, Rows. More jdbc call can make our application performance down. Due to this reason, i'm trying to solve this problem with entity objects or view objects.
I did some news. Overriding the my entity object's lock method like below;
try {
super.lock();
catch (RowInconsistentException ex) {
this.refresh(REFRESH_WITH_DB_FORGET_CHANGES | REFRESH_CONTAINEES);
super.lock();
When it encounter with Optimistic lock exception (RowInconsistentException ) fetchs the new results from db, and refresh the entity. But i have only problem too. When i invoke the "ComplaintCount" button in other page, first click it retrives last value from DB, and second click, it counts complaintcount +1. I dont know Why first time id doesnt count +1,

Similar Messages

  • Oracle.adf.view.rich.pprNavigation.OPTIONS on give problem with servlets

    I recentrly fix ADF_FACES-60058 using in web.xml:
    <context-param>
    <param-name>oracle.adf.view.rich.newWindowDetect.OPTIONS</param-name>
    <param-value>on</param-value>
    </context-param>
    and now bc this change, when i call a sevlet using ajax.. all my servlets stop working...
    =( This mean this is not good fix...

    Hi i am getting now after fix problem with my servlet( Delete servlet and use Backing bean instead)
    javax.servlet.ServletException: java.lang.InternalError: name is too long to represent
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    =/

  • JsCookMenu - Problem with display of Menu (Oracle ADF)

    I am using Oracle ADF with JSF components. The jsCookMenu displays the menu along with "x" representing images on the right and left side of the menu label. Please suggest me how to remove this icon from the menu display. Please find the code below.
    <t:jscookMenu layout="hbr" theme="ThemeOffice" styleLocation="/css/jscookmenu" >
    <t:navigationMenuItem id="nav_1" itemLabel=" Menu1 " >
    <t:navigationMenuItem id="nav_1_1" itemLabel="Menu1.1" > </t:navigationMenuItem>
    </t:navigationMenuItem>
    </t:jscookMenu>
    I am getting this problem with IE when the application starts. When I do ctrl+refresh, this issue doesnot occur. Also, with Firefox I am not getting any problem. I need to know how to fix this issue with IE when the application starts. Any suggestions on this would be of great help.

    User, please always tell us your jdev version.
    The interesting part is what you did not tell us.
    Kindly let me know as to why Iam not to replicate the issue in my earlier WLS.Please find my code means hte code has once run OK and now after you did some changes doesn't any longer. Querstion: what did you change, not oly to the code but to the environment.
    Timo

  • Problem in Oracle ADF with JDeveloper. JBO25001

    Hello All,
    I have to develop an application using oracle ADF and JDeveloper. To famalirize my self with the technology, I downloaded the Oracle ADF tutorial "Tutorial for Forms/4GL developers" from Oracle site.
    I am following this tutorial line by line, but still getting an error. I have created
    1) Entities
    2) Associations
    3) Views
    4) ViewLinks
    5) Application Module
    all by wizard.
    After I added my view and view link into the application module and tried to test it it gave me the following error.
    (oracle.jbo.common.ampool.ApplicationPoolException) JBO-30003: The application pool (.10E97657A25) failed to checkout an application module due to the following exception:
    ----- LEVEL 1: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    ----- LEVEL 2: DETAIL 0 -----
    (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: oracle.jbo.NameClashException, msg=JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    ----- LEVEL 3: DETAIL 0 -----
    (oracle.jbo.NameClashException) JBO-25001: Name ServiceRequestsTable of object type Attribute already exists
    I changed the names of each object but still the problem persisted.
    If any body can help me on this I will really appreciate it. Thanx a ton in advance.
    I have downloaded and using the latest JDeveloper version 10.1.3.1.0.3984
    Please help me on this.
    Regards,
    Saket Maheshwary

    Saket,
    Did you ever get this situation resolved?
    I'm working thru the tutorial myself and get the same error except the object is Product.
    Do you have any clues?
    Thanks,
    Lonnie Spears

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Oracle ADF: ORA-01460 4000 chars problem

    Hello,
    please excuse my bad english. I hope you will understand what I mean.
    I hope I'am right here with my Problem:
    I hava a web application written with Oracle ADF in jDeveloper. A View-Object contains the SQL-Statemant to search with a bind variable (Type: String) and uses Oracle Text.
    WHERE contains(Index, :mySearchString, 1) > 0
    Java generates the String (Type: String) that might have a length of 12 chars, 1234 chars or maybe something about 4000 chars.
    If the String is below 4000 chars, there is no problem.
    But if he exceeds the 4000 chars I get a exception with the message "ORA-01460:     unimplemented or unreasonable conversion requested".
    How to execute this statement with a String longer than 4000 chars?
    Could someone help me?
    I am at my wit's end.
    Thank you!
    DB: Oracle 10g Enterprise Edition (10.1.0.4.2)
    JDBC Version: 10.1.0.5
    Greetings
    One

    Thank you! Good to know that it isn't impossible to enhance this.
    I wrote a sql function:
    create or replace function mysearch(p_arg varchar2)return sys_refcursor is
    l_resultset sys_refcursor;
    begin
    open l_resultset for select ... from ... where contains(attribut, p_arg);
    return l_resultset;
    end;
    and create a View-Object. This View-Object has the follwing SQL-Statement:
    SELECT mysearch(:p_arg) AS MY_SEARCH FROM DUAL
    but no attributes! And the Object which I get has only 1 row. It should contains about 9000.
    And I get anyway the message "ORA-01460:     unimplemented or unreasonable conversion requested".
    In a PL/SQL context varchar2 can be 32KB!? Or not?
    Is this a ADF Problem? :-( (I hope so! If not: SORRY)

  • How to Set default value to dropdown list in oracle ADF

    hi,
    I need to set default value in the drop down list in oracle ADF.
    If you take in HTML :
    <select>
    <option value="">Select Value </option>
    <option value="saab">Saab</option>
    <option value="mercedes">Mercedes</option>
    <option value="audi">Audi</option>
    </select>
    Like this i need to set default value in drop down llist in oracle ADF.
    Thanks and Regards,
    M. Ramu.

    Hi Ramu,
    Please be more clear on ur post whts ur Jdev version and wht type of dropdown u r using model driven or static list..?????
    Its hard to help u without proper info..
    Just have a look into this before u post a thread...
    https://forums.oracle.com/forums/ann.jspa?annID=56
    Regards,
    Suganth.G

  • Difference between the binding and the value attribute of an Oracle ADF com

    Can somebody please tell me the difference between
    the binding attribute and the value attribute of any oracle ADF component such as inputText and when would we use one over the other.
    THanks,

    Value represent the value that is going to be displayed by the item.
    Binding indicate the backing bean object that represents the instance of the component.

  • Link to old document - Recommended Reading on Oracle ADF

    In the list of Recommended Reading on Oracle ADF (http://www.oracle.com/technology/products/jdev/tips/muench/requiredreading/index.html ), the link for Oracle ADF Development Guidelines displays the document for JDeveloper 9.0.5.2. from 2004. There is at least one later version of this document for JDeveloper 10.1.2 from August 2005.

    Hi!
    The scope of this forum is for doc maintenance on OTN, documentation URL: http://www.oracle.com/technology/documentation/index.html.
    Please try the Members Feedback Forum at: Community Feedback (No Product Questions)
    Thanks and regards,
    Chao

  • Stretching problem in Oracle ADF..

    Hi All...
    Oracle ADF Inline Frame is not stretching properly. Any solution...
    The following code for your reference...
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelStretchLayout id="rengacont1" styleClass="AFStretchWidth"
    startWidth="0px" endWidth="0px" topHeight="0px"
    bottomHeight="0px" dimensionsFrom="children">
    <f:facet name="center">
    <af:panelSplitter orientation="horizontal" splitterPosition="400"
    id="jsffPanSpt"
    dimensionsFrom="children">
    <f:facet name="first">
    <af:panelStretchLayout id="psl0" startWidth="0px" endWidth="0px"
    topHeight="0px" bottomHeight="0px"
    styleClass="AFStretchWidth"
    dimensionsFrom="children">
    <f:facet name="center">
    <af:group id="rengasamygroup1">
    <af:chooseDate id="cd1"/>
    <af:chooseColor id="cc1"/>
    <af:image source="/Visit-Srirangam-Temple-in-Trichy.jpg"
    id="i1"/>
    </af:group>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    <f:facet name="second">
    <af:panelStretchLayout id="pgHelp" startWidth="0px" endWidth="0px"
    topHeight="0px" bottomHeight="0px"
    styleClass="AFStretchWidth">
    <f:facet name="center">
    <af:inlineFrame source="http://www.google.com" id="jsffILFrame"
    inlineStyle="border-color:Navy;border-width:thin;border-style:solid;"
    shortDesc="Help"/>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks & Regards,
    Vass Lee

    Hi Vass,
    please use the proper tags so that it will be easy to understand.
    thanks

  • Implementing Internationalization in Oracle ADF, small problem

    Hi all i have simple question,
    i cant internationalization Search and Select popup dialog.
    I read all document about Implementing Internationalization in Oracle ADF and cant see where are make mistake.
    Any way i did:
    Create Java class in view project:
    public class BLAFBundle_sr extends ListResourceBundle {   
    public Object[][] getContents()
    return contents;
    static final Object[][] contents = {
    {"SEARCH_TEXT", "Pretraga"},
    {"SIMPLE_SEARCH_TEXT", "Prosta pretraga"},
    {"ADVANCED_SEARCH_TEXT", "Napredna pretraga"}
    Set faces-config as
    <locale-config>
    <default-locale>sr</default-locale>
    <supported-locale>sr</supported-locale>
    </locale-config>
    <resource-bundle>
    <base-name>SistemskeKlase.BLAFBundle_sr</base-name>
    <var>sr</var>
    </resource-bundle>
    Set my internet explorer on sr language,
    Set view project to use Automaticly sync bundle
    and default bundle name as SistemskeKlase.BLAFBundle_sr
    And nothing happened after building and running project

    I think you are using incorrect resource string name in your method
    static final Object[][] contents = {
    {"SEARCH_TEXT", "Pretraga"},
    {"SIMPLE_SEARCH_TEXT", "Prosta pretraga"},
    {"ADVANCED_SEARCH_TEXT", "Napredna pretraga"}
    }I can't find these strings SEARCH_TEXT,SIMPLE_SEARCH_TEXT,ADVANCED_SEARCH_TEXT in Selectors for Skinning Fusion's ADF Faces Components
    http://docs.oracle.com/cd/E21764_01/apirefs.1111/e15862/toc.htm

  • BPC 7.0 MS Script-Logic problem: New values used, old values written?

    I am trying to using BPC Script logic to update my Sales cube, specifically Revenue=Units*Price and Price=Revenue/Units using the "Price" stored in a seperate Price cube.
    Inside default.lgl, I am *INCLUDE-ing my own script:
    *LOOKUP PRICES
    *DIM PREIS:ACCOUNT="Price"
    *ENDLOOKUP
    *WHEN ACCOUNT
    *IS "Units"
    *REC(FACTOR=LOOKUP(PREIS),ACCOUNT="Revenue")
    *IS "Revenue"
    *REC(EXPRESSION=%VALUE%/LOOKUP(PREIS),ACCOUNT="Units")
    *ENDWHEN
    *COMMIT
    Now, when I insert new "Units" values using the std. Excel template, strange things happen:
    - The Revenues seems to be computed and updated correctly in the cube (if I check them using excel templates, they show up).
    - The Units seem to have the values they had before... seems they get old values ?!
    E.g. if I have several write operations say, I write units=2,3,4 and price is constant 10,
    the values in the cube seem to be (table):
    value written, units in cube, revenue
    3 , 2 , 30
    4,  3 , 40
    The new value is somewhere in the MS Analysis cube, otherwise, how could later be the new value be shown, although the excel templates seem to show old values?
    Any explanation for that strange behaviour?

    I simplified and wrote the prices in the same cube as I send the data from with the excel template.
    I tried using:
    *WHEN ACCOUNT
    *IS "Units"
    [Account].[#Revenue]=[Account].[Units]*[Account].[Price]
    *ENDWHEN
    *COMMIT
    *WHEN ACCOUNT
    *IS "Revenue"
    [Account].[#Units]=[Account].[Revenue]/[Account].[Price]
    *ENDWHEN
    *COMMIT
    Now, if units are send from the excel template, revenue is calculated correctly.
    If I enter revenue instead, seems that the 1st block is executed as well (why????!!!/how to avoid - I use *WHEN - what else should I do? )  which would explain the behaviour I get the old values for Units and Account again...
    Related: How can I use "*WRITE_TO_FILE"? I tried both
    *WRITE_TO_FILE Mylog.txt
    *WRITE_TO_FILE "Mylog.txt"
    But I can't find these file after sending data through the excel template... Do I have to create the files manually first or give full Path Names?
    Thanks!

  • Oracle ADF viewScope causing session size bloat

    As I'm sure you know, ADF introduces some additional scopes (pageFlowScope, viewScope and backingBeanScope) on top of the standard JSF ones. Our use of one of the ADF scopes, viewScope, appears to be causing our session size to bloat over time.
    Objects that are view scoped (e.g. our Backing Beans) are managed by ADF and appear to be put into the session in a org.apache.myfaces.trinidadinternal.application.StateManagerImpl$PageState object. The number of these objects in the session is equal to the org.apache.myfaces.trinidad.CLIENT_STATE_MAX_TOKENS in our web.xml configuration file.
    Once all of the tokens are ‘used up’, by navigating around the application, the oldest one of these objects is removed from the session and (should be) garbage collected at some point. However, the reclaim of this space is observed much later, after the session has expired. Because of this, when load testing the application we see the heap space usage gradually increasing, before causing the JVM to crash.
    The monitoring of the creation and destruction of our objects is done by adding log statements in the default constructor and in the finalize method (Which overrides the finalize method on object). The logging statements on object creation are seen when we would expect them, but the logging statements from the finalize method are only seen after session expiry. When a garbage collection is triggered using Oracle JRocket Mission Control we see the heap usage drop significantly, but don’t observe any logging from the finalize method calls.
    Does anyone have any thoughts on why the garbage collector might not be able to reclaim view scoped objects after they are removed from the session?
    Thanks in advance.
    P.S. I have already found VIEW SCOPE IS NOT RELEASING PROPERLY IN ADF which is a very closesly related thread, but unfortunately was not able to use the replies on there to resolve our issue. I've also posted this same question on Stack Overflow (http://stackoverflow.com/questions/13380151/lifetime-of-view-scoped-objects-oracle-adf). I'll try and update both threads if I find a solution.
    Edited by: 971217 on 14-Nov-2012 07:08

    Hi Frank,
    Thanks for your very useful reply. I've managed to recreate the problem today by doing the following.
    1. Create pageOne.jspx and pageTwo.jspx
    2. Create PageOneBB.java and PageTwoBB.java
    3. Register PageOneBB.java and PageTwoBB.java in the adfc-config.xml as view scoped managed beans.
    Then after building and deploying out to my Weblogic server I continue by doing the following:
    4. Open pageOne.jspx in a browser. Observe the constructor of pageOneBB being called and the correct default text being shown in the box. [Optional] Set the text value to a new string and click on the button.
    5. Get redirected to pageTwo.jspx. Observe the constructor of pageTwoBB being called and the correct default text being shown in the box. [Optional] Set the value to a new string and click on the button.
    6. Monitor the Weblogic server using Oracle JRocket Mission Control. Observe the large lists of booleans being created as expected (5,000,000 per click!).
    7. Note that this number is never reduced - even though the old view scoped beans should have been released for garbage collection.
    8. Repeat steps 4 and 5 until I see the Weblogic server crash due to a java.lang.OutOfMemoryError.
    9. Wait for all of the sessions to expire. I've set my session expiry to be 180s for the purpose of this test.
    10. After 180s observe the finalize method being called on all of the backing bean objects and the heap usage drop significantly.
    11. The server works again but the problem has been demonstrated in a reproducible way.
    adfc-config.xml
    <managed-bean>
        <managed-bean-name>pageOneBB</managed-bean-name>
        <managed-bean-class>presentation.adf.test.PageOneBB</managed-bean-class>
        <managed-bean-scope>view</managed-bean-scope>
    </managed-bean>
    <managed-bean>
        <managed-bean-name>pageTwoBB</managed-bean-name>
        <managed-bean-class>presentation.adf.test.PageTwoBB</managed-bean-class>
        <managed-bean-scope>view</managed-bean-scope>
    </managed-bean>
    pageOne.jspx
    <?xml version='1.0' encoding='utf-8?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
        xlmns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
        xmlns:c="http://java.sun.com/jsp/jstl/core" >
        <jsf:directive.page contentType="text/html;charset=UTF-8" />
        <f:view>
            <af:document id="t" title="Page One">
                <af:form>
                    <af:inputText id="pgOneIn" value="#{viewScope.pageOneBB.testData}" />
                    <af:commandButton id="pgOneButton" partialSubmit="true"
                        blocking="true" action="#{viewScope.pageOneBB.goToPageTwo}"
                        text="Submit" />
                </af:form>
            <af:document>
        </f:view>
    </jsp:root> pageTwo.jspx
    <?xml version='1.0' encoding='utf-8?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
        xlmns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
        xmlns:c="http://java.sun.com/jsp/jstl/core" >
        <jsf:directive.page contentType="text/html;charset=UTF-8" />
        <f:view>
            <af:document id="t" title="Page Two">
                <af:form>
                    <af:inputText id="pgTwoIn" value="#{viewScope.pageTwoBB.testData}" />
                    <af:commandButton id="pgTwoButton" partialSubmit="true"
                        blocking="true" action="#{viewScope.pageTwoBB.goToPageOne}"
                        text="Submit" />
                </af:form>
            <af:document>
        </f:view>
    </jsp:root> PageOneBB.java
    package presentation.adf.test;
    import java.io.IOException;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.context.FacesContext;
    import org.apache.log4j.Logger;
    import logger.log4j.RuntimeConfigurableLogger;
    public class PageOneBB implements Serialiable
        /** Default serial version UID. */
        private static final long serialVersionUID = 1L;
        /** Page one default text. */
        private String pageOneData = "Page one default text";
        /** A list of booleans that will become large. */
        private List<Boolean> largeBooleanList = new ArrayList<Boolean>();
        /** The logger */
        private static final Logger LOG = RuntimeConfigurableLogger.gotLogger(PageOneBB.class);
        /** Default constructor for PageOneBB. */
        public PageOneBB()
            for (int i = 0; i < 5000000; i++)
                largeBooleanList.add(new Boolean(true));
            if (LOG.isTraceEnabled())
                LOG.trace("Constructor called on PageOneBB. This object has a hash code of " + this.hashCode());
        /** Method for redirecting to page two. */
        public void goToPageTwo()
            try
                FacesContext.getCurrentInstance().getExternalContext.redirect("pageTwo.jspx");
            catch (IOException e)
                e.printStackTrace();
        * {@inheritDoc}
        @Override
        protected void finalize() throws Exception
            if (LOG.isTraceEnabled())
                LOG.trace("Finalize method called on PageOneBB. This object has a hash code of " + this.hashCode());
        * Set the testData
        * @param testData
        *        The testData to set.
        public void setTestData(String testData)
            if (LOG.isTraceEnabled())
                LOG.trace("setTestData method called on PageOneBB with a parameter of " + testData);
            this.pageOneData = testData;
        * Get the testData
        * @return The testData.
        public String getTestData()
            if (LOG.isTraceEnabled())
                LOG.trace("getTestData method called on PageOneBB");
            return pageOneData;
    PageTwoBB.java
    package presentation.adf.test;
    import java.io.IOException;
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.context.FacesContext;
    import org.apache.log4j.Logger;
    import logger.log4j.RuntimeConfigurableLogger;
    public class PageTwoeBB implements Serialiable
        /** Default serial version UID. */
        private static final long serialVersionUID = 1L;
        /** Page one default text. */
        private String pageTwoData = "Page two default text";
        /** A list of booleans that will become large. */
        private List<Boolean> largeBooleanList = new ArrayList<Boolean>();
        /** The logger */
        private static final Logger LOG = RuntimeConfigurableLogger.gotLogger(PageTwoBB.class);
        /** Default constructor for PageTwoBB. */
        public PageTwoBB()
            for (int i = 0; i < 5000000; i++)
                largeBooleanList.add(new Boolean(true));
            if (LOG.isTraceEnabled())
                LOG.trace("Constructor called on PageTwoBB. This object has a hash code of " + this.hashCode());
        /** Method for redirecting to page one. */
        public void goToPageOne()
            try
                FacesContext.getCurrentInstance().getExternalContext.redirect("pageOne.jspx");
            catch (IOException e)
                e.printStackTrace();
        * {@inheritDoc}
        @Override
        protected void finalize() throws Exception
            if (LOG.isTraceEnabled())
                LOG.trace("Finalize method called on PageTwoBB. This object has a hash code of " + this.hashCode());
        * Set the testData
        * @param testData
        *        The testData to set.
        public void setTestData(String testData)
            if (LOG.isTraceEnabled())
                LOG.trace("setTestData method called on PageTwoBB with a parameter of " + testData);
            this.pageTwoData = testData;
        * Get the testData
        * @return The testData.
        public String getTestData()
            if (LOG.isTraceEnabled())
                LOG.trace("getTestData method called on PageTwoBB");
            return pageTwoData;
    }

  • Oracle-ADF inlineFrame initializing view scoped bean twice

    I am facing strange issue related with af:inlineFrame component. Trying to display/render ADF page inside of af:popup within af:inlineFrame component. The weird thing is when the popup displayed; view scoped bean's @PostConstruct method called twice. That means bean is initialized twice. However it needed to be initialized once since bean is referenced from the page that is going to be displayed inside af:inlineFrame.
    Correct flow gotta be:
    Click to button openPopup() method called.
    openPopup() sets URI then opens popup.
    inlineFrame source property set as it's going to display framePage.jspx.
    JSF scans framePage.jspx code finds out there is a reference to FrameBean inside af:outputLabel
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    What happens in my case:
    Click to button openPopup() method called.
    openPopup() sets URI opens popup.
    inlineFrame source property set as it's going to display framePage.jspx.
    JSF scans framePage.jspx code finds out there is a reference to FrameBean inside af:outputLabel
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    Construct FrameBean then call @PostConstruct method.
    Call appropriate getter and render page.
    Popup located like:
    <af:popup id="mainPopup" binding="#{mainBean.mainPopup}">
    <af:dialog id="mainDialog">
      <af:inlineFrame source="#{mainBean.URI}"> </af:inlineFrame>
      </af:dialog>
    </af:popup>
    Showing popup via af:button action="#{mainBean.openPopup}":
    public void openPopup() {
    this.setURI("http://localhost:7001/app/framePage.jspx");
      RichPopup.PopupHints hints = new RichPopup.PopupHints();
    this.getMainPopup().show(hints);
    framePage.jspx:
    <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <jsp:directive.page contentType="text/html;charset=UTF-8" />
    <f:view>
    <af:document title="Frame Demo" id="demoDocument">
      <af:form id="demoForm">
    <af:outputLabel value="#{frameBean.commonId}">   </af:outputLabel>
      </af:form>
      </af:document>
    </f:view>
    </jsp:root>
    FrameBean:
    @ManagedBean
    @ViewScoped
    public class FrameBean {
    private String commonId;
      @PostConstruct
      public void afterInit() {  } 
      public String getCommonId() {
    return commonId;
    public void setCommonId(String commonId) {
    this.commonId = commonId;
    Making FrameBean @SessionScoped solves this issue since bean is kept with session but I don't want to keep it within session. Also setting source property of af:inlineFrame in jspx as hardcoded not fixing the problem.

    im using ADF Essential on Glassfish 3.1 with no problem, but glassfish is heavyweight. I think Oracle ADF is not dependent to Application Server , then i tried to use my project with Tomcat 7. I deployed my application on Tomcat 7 , but im getting some exceptions.
    Not all application servers support Oracle ADF.
    Refer the certification matrix, Tomcat 7 is not listed as being supported.
    http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html

  • Oracle ADF Business Service Layer Technologies

    Hello,
    We are building an online shopping mall/site that is expected to receive order volume of 50-60 thousand orders per week. So obviously, data traffic generated by the site will be pretty heavy. The technology set we are supposed to use is Jdeveloper 10g with ADF. Currently ADF business service layer offers following set of technologies. The question is which of following technologies meets these four criterias the BEST? (1) Security, 2)24x7 Reliability and Maintenace overheads (3)Speed /Performance of the server response to client requests (4) integration with Oracle database.
    Please advise. Any technet/metalink oracle document that compares these various business layer technology would be great indeed.
    Business service technologies that I am talking about is mentioned below
    Enterprise JavaBeans (EJB) Session Beans
    Since most J2EE applications require transactional services, EJB session beans are a logical choice because they offer declarative transaction control. Behind the EJB session bean facade for your business service, you use plain old Java objects (POJOs) or EJB entity beans to represent your business domain objects. JDeveloper offers integrated support for creating EJB session beans, generating initial session facade implementations, and creating either Java classes or entity beans. You can also use Oracle TopLink in JDeveloper to configure the object/relational mapping of these classes.
    JavaBeans
    You can easily work with any Java-based service classes as well, including the ability to leverage Oracle TopLink mapping if needed.
    Web Services
    When the services your application requires expose standard web services interfaces, just supply Oracle ADF with the URL to the relevant Web Services Description Language (WSDL) for the service endpoints and begin building user interfaces that interact with them and present their results.
    XML
    If your application needs to interact with XML or comma-separated values (CSV) data that is not exposed as a web service, this is easy to accomplish, too. Just supply the provider URL and optional parameters and you can begin to work with the data.
    ADF Business Components.
    These service classes are a feature of the ADF Business Components module, and expose an updateable dataset of SQL query results with automatic business rules enforcement.
    Thanks
    Ruchir

    So the quote says "technologies Oracle recommends to J2EE developers" which is correct - if you are an experience Java EE developer the TopLink/JPA/EJB stack should be your choice however if you are coming from a 4GL/Enterprise developer background then the recommendation is here:
    http://download.oracle.com/docs/html/B25947_01/intro002.htm#sthref21
    For enterprise 4GL developers building new web applications, Oracle recommends using JavaServer Faces for the view and controller layers, and ADF Business Components for the business service implementation. This combination offers you the same productive J2EE technology stack that over 4000 of Oracle's own enterprise 4GL developers use every day to build the Oracle E-Business Suite. Since its initial release in 1999, several thousand external customers and partners have built and deployed successful Oracle ADF-based applications as well. Both now and in the future, Oracle and others are betting their business on Oracle ADF with ADF Business Components.
    And yes ADF BC can be exposed as EJB - but this is usually only used for remote deployment of ADF BC when they are on another server than the UI code - for example when using Swing.

Maybe you are looking for

  • How do I add my IPOD contents to a new computer

    I have an IPOD full of music, much from old CDs. How do I transfer it to my new computer?

  • Recovered Imported Photos Error/Message

    When I recently converted back from Windows XP to MacOS I did an import of all pictures in My Pictures directory on Windows into iPhoto. Not sure what happened, but there are 145 pictures that are duplicates that I deleted, but then every time I laun

  • ICloud the maximum number of free accounts have been activated on this iPhone, how to fix this?

    i have problem here on iCloud using my iPhone when i log in it says "the maximum number of free accounts have been activated on this iPhone" how to fix this guys? please reponse

  • Idoc senario

    hi all, i have a problem while creating idoc to file scenario, i configured in R/3 system and XI system but message is not triggered from R/3 to XI.In testing i had the message <b>message should not send</b> ,how to check ,can anyone suggest me. than

  • JMS message is not picked up by the listener

    We have created a queue in a cluster. We have an application that listens to a queue. Messages from another application will post message into this queue which is inturn picked up by the listener process.           We posted a message to the queue lo