BUG TableSelectMany ADF Faces JDEV 10.1.3 BC

Hi,
I have few issues / concern about TableSelectMany component.
1) How can I unselect default first row selection when my page loads?
This component always select first row as checked.
2) I have Disabled property set to #{row.DocStts != 'Pending Assignment'}(Some value)
when page renders I can see check box on particular row get Disables due to that property setting but if you click on select all disabled row get selected. How to avoid that?
3) Or how to disable select all or select none link or stop rendering link on certain values in table. I do not want user to select row when I have disabled check box on certain values on table.
I will appreciate your help. Looks like to me it is BUG in component
Thank you,
Jigar
<af:table value="#{bindings.FAListView1.collectionModel}" var="row"
rows="5"
first="#{bindings.FAListView1.rangeStart}"
emptyText="#{bindings.FAListView1.viewable ? 'No rows yet.' : 'Access Denied.'}"
selectionState="#{bindings.FAListView1.collectionModel.selectedRow}"
selectionListener="#{bindings.FAListView1.collectionModel.makeCurrent}"
binding="#{backing_staff_FAList.faListTable}"
id="faListTable">
<f:facet name="selection">
<af:tableSelectMany binding="#{backing_staff_FAList.tableSelectMany1}"
id="tableSelectMany1"
disabled="#{row.DocStts != 'Pending Assignment'}">
<af:commandButton text="#{res['dmsfa.faPacketList.assignButton']}"
binding="#{backing_staff_FAList.assignButton}"
id="assignButton"
action="#{backing_staff_FAList.assignButton_action}"/>
</af:tableSelectMany>
</f:facet>
</af:table>

Thanks Frank for reply. this.getTable1().getSelectionState().clear(); clear out selected row but if you go next and previous again if you have navigation, First row always get selected as by default. Also as I mentioned I can not able to disable Select all and select none programmatically.
I will appreciate your help.
Regards,
Jigar

Similar Messages

  • ADF Faces (JDev 10.1.3): How to support the Back Button

    Hi,
    when I scroll through a result set, rendered as a input form with navigation buttons, then use the browsers back button and then try to go to the next row using the 'next' navigation button, I always get an exception: JBO-29000, JBO-35007, JBO-25013
    The sample application was build using JDev 10.1.3, ADF Faces and Business Components.
    I have read through the new Oracle Dev Guide and found some parameters concerning state management and tested different settings. The most promising setting:
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param>
    Regardless of which setting I used, an exception was prompted.
    My questions:
    Are there addtional settings to configure to make an ADF Faces app 'back button' agnostic?
    Is it an ADF Faces or a JSF problem?
    What are your experience and how do you solve the problem?
    I have no idea how to solve the problem.
    Any hints are welcome!
    Thanks,
    Markus

    Hi Marcus,
    we had the same problem in UIX (JDeveloper version 10.1.2) and the official stance of Oracle (we had created a TAR on metalink) was that it was a general webapplication problem and not 'supported' by ADF.
    We created a solution by creating a filter that checks a sequence number in the pages. Each page request was checked and the sequence was increased. The <form> on the pages needed to send the sequence with each request.
    If the user used the backbutton then the sequence would be out of order. We would redirect the user to an error page and rollback the complete model.
    This was our base solution. What we also tried was to use the passivation mechanism of the application module (of Business Components) we would save a snapshot after the rendering of each page and if the user used the back button and the sequence was out of order we would rollback the application module to that snapshot. However after a COMMIT you cannot rollback ofcourse and it gave us some troubles.
    We finally sticked with the base solution and gave the user buttons in the application to go 'back'.
    Regards,
    Robert

  • Deploying ADF Faces (JDev 10.1.3) to Application server 10gR2 (10.1.2)

    Is it possible to deploy a Toplink/sessionEJBs/Data controls/ADF Faces app (written in jDev10.1.3) to Oracle Application Server (10.1.2)?
    I'm using Application Developers Framework Developer's guide adfdevguide.pdf, which says that you can. However it requires swicthing the JDK to 1.4, which generates compiler errors - 'errorIllegalCharacter' in the sessionEJB, on lines with annotations.
    Is it possible to auto-generate session EJBs for JDK 1.4?
    Thanks
    Robin

    Thanks for the reply Prasanth.
    I can now see why I'm getting the error - because the session bean seems to use EJB3.0 by default. This puts annotations in the session bean code, which fails because I'm using JDK1.4
    If I force the project to use EJB2.0, then when creating the session bean, it ignores of the toplink classes, and when I create a data control, the table related services aren't included.
    Do I need to create either the sessionEJB or datacontrols in a different way??
    Thanks,
    Robin

  • ADF Faces JDev 10g Dialog framework and session timeouts

    Hi,
    using ADF Faces & BC 10.1.3.4 for a web application with a main page that opens a dialog where the uses fill out stuff and click next until complete. Occasionally they will leave the application open and the session times out and when they go to use it they get the login page inside the dialog. They login but as expected the whole state of their session is lost resulting in no or the wrong record being displayed. Additionally of they go back to the parent window the row keys are all stuffed, they get the first record in the dialog even though the record from the previous session was still shown on the screen.
    Any web developer would know to close the dialog and login properly, but this for end users of any experience level.
    Is there anyway to prevent the login screen appearing in the dialog or at least direct them to properly re-establishing the session?
    Brenden

    Hi,
    the question is how you identify that the page is loaded in a dialog window. Because if you know this then the redirect would be to a html page that has an onLoad event defined that calls window.close();. Next problem then however is that the calling parent page too is timed out.
    Frank

  • ADF FACES: processValidators and ValidatorException bug

    Using EA15.
    Unless I'm misunderstanding how UIComponent.processValidators works, you should just throw a ValidatorException to signal a problem.
    However, in trying just that, the ADF FACES framework is treating the exception as a SEVERE error instead of treating it as a validation failure.
    I have constructed a simple extension to PanelPage so I can invoke my own validation routine, like this:
    * Internal class to provide a validation hook for our forms
    public static class ValidatingCorePanelPage extends CorePanelPage {
    public void processValidators(FacesContext ctx) {
    super.processValidators(ctx);
    // Dispatch the validation to the current form
    FormBean.dispatchFormValidation(ctx);
    dispatchFormValidation will invoke a validation method on the proper backing bean, in which code similar to the following is used:
    String spokeWith = (String)getCompSpokeWith().getLocalValue();
    String callStatus = (String)getCompFinalCallStatus().getLocalValue();
    System.out.println("SPOKEWITH='" + spokeWith + "'");
    System.out.println("CALLSTATUS='" + callStatus + "'");
    // We require a value in "spoke with" if the call status is anything other than
    // "left message"
    boolean isMessageStatus = !StringUtils.isEmpty(callStatus) && StringUtils.contains(callStatus.toLowerCase(),"message");
    if( !isMessageStatus && StringUtils.isEmpty(spokeWith)) {
    // register the error message
    FacesMessage fmsg =
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Incomplete Data",
    "'Spoke with' may not be empty");
    // Add the message to the specific
    // component that is missing data.
    getFacesContext().addMessage("spokewith", fmsg);
    throw new ValidatorException(fmsg);
    However, when this executes (and results in a ValidatorException), I get the following output in my log file:
    05/05/20 15:51:44 <<<< PHASE: RESTORE_VIEW 1
    05/05/20 15:51:44 >>>> PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 <<<< PHASE: APPLY_REQUEST_VALUES 2
    05/05/20 15:51:44 >>>> PHASE: PROCESS_VALIDATIONS 3
    May 20, 2005 3:51:44 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    SEVERE: Incomplete Data
    javax.faces.validator.ValidatorException: Incomplete Data
         at com.fhm.mwb.ui.backing.OfficeCallForm.validateForm(OfficeCallForm.java:256)
         at com.fhm.mwb.ui.backing.FormBean.dispatchFormValidation(FormBean.java:588)
         at com.fhm.mwb.ui.SharedComponents$ValidatingCorePanelPage.processValidators(SharedComponents.java:337)
         at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java)
    And the lifecycle stops dead!
    How is this supposed to work? How are you supposed to report a validation exception from within processValidators?
    This seems to be a bug in ADF FACES.

    <af:forEach> does not support <f:> or <h:> tags; this unfortunate restriction is documented in the <af:forEach> release notes. It's not a bug - it's a fact of life until we can get our technique integrated into the core JSF or JSP specifications.

  • JDEV 10.1.3: Using "Create" binding on BC view object with ADF Faces Table

    Hello,
    I am trying to get this to work, but to no avail:
    I've got a very simple page (ADF Faces - JSPX) created by dragging an iterator from the data control pallete on to my page and picking "ADF Table..." as my chose to create. This creates a table on my page that allows me to edit each row in place. Very nice.
    Now, I dragged the create operation for that iterator on to the page. What I had hoped to see is that when I click "Create," a new blank row appears in my table (well, at least a row that is blank except for any default values specified in the EO/VO and my overriden create() method).
    However, this doesn't happen. The page submits and refreshes, but no blank row shows up. I initially tried setting the Create button to do partial submit and setting the partialtriggers for the table to include the Create button, to no avail. I also tried it without the partial submit with the same results.
    So:
    1). Should this work, or is this behavior a bug.?
    2). If not, is there a different/better way of doing it?
    Regards,
    John

    G'day John
    I think I can give you a hint of what is occuring... I'm still trying to work out what is happening exactly.
    In JDev 10.1.2 UIX, when the user invoked the create action, they would see the blank record added to the underlying table. Under 10.1.3 Faces the functionality is somewhat different.
    When you the user clicks on the create action a blank record is created but not shown in the table control. To prove the blank record is there try this:
    1) Build an ADF Input Form based on the same VO iterator
    2) In your JSF navigation, create a navigation case between the existing page and the new page, and another back again,
    3) In the existing page, map the Create button's action attribute to navigate to the ADF Input Form
    4) In the ADF Input Form, map the Submit button's action attribute to navigate to the ADF Table page.
    Now when you run your app, notice when you create a new record in the ADF Table which automatically takes you to the ADF Input Form, note the blank record, and the details you enter into the record here and submit, are then visible in the ADF Table on the return.
    This is a long way of proving that the new record is in the table. It's just you can't see it.
    I have a theory which I'm trawling through the newly updated documentation to verify. This issues goes back to the VO createRow vs insertRow method calls that have been documented by Steve Muench a couple of times. I'm guessing the table control is now smarter and doesn't show createRow records, only insertRow records.
    Read one of Steve's posts here regards the createRow vs insertRow method calls:
    http://www.oracle.com/technology/products/jdev/tips/muench/blankrow/index.html
    If I find anymore info I'll endeavour to post it.
    Meanwhile this of course doesn't help you if you actually want to show the blank row in the ADF Table editable control, but I'd thought I'd give you an idea of what's happening behind the scenes.
    Hope this helps.
    CM.

  • CreateRow increases memory and cpu. Tomcat+ADF Faces+BC4J in JDev 10.1.3.0

    CreateRow increases memory and cpu. Tomcat+ADF Faces+BC4J in JDev 10.1.3.0.4
    My old problem is this Ineffectiveness/Inconsistency BC4J createrow in tomcat, CPU = 100%,Mem=2.2G
    I have tested my Adf Faces application with jmx in server and, in my machine, jconsole and mc4j.
    When cpu=100% and memory increases, jconsole constantly returned similar trace:
    In all trace, I see that common is:
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    Therefore, I believe that function populateRow make infinity loop (or fuction fech make infinity loop, called populateRow), but I don’t know populteRow or fetch code.
    tomcat Version: 5.5.16
    Jdeveloper Version: 10.1.3.0.4
    Adf Business component Version: 10.1.3.36.73
    Java version: 1.5.0_05
    Please, any oracle ACE could help me?
    When cpu=100% and memory increases, jconsole constantly returned any of these trace:
    First trace
    java.net.SocketOutputStream.socketWrite0(Native Method)
    java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    oracle.net.ns.DataPacket.send(Unknown Source)
    oracle.net.ns.NetOutputStream.flush(Unknown Source)
    oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:979)
    oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:951)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:448)
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:692)
    oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:258)
    oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:193)
    oracle.jbo.server.QueryCollection.hasNextInResultSet(QueryCollection.java:3014)
    oracle.jbo.server.ViewObjectImpl.hasNextForCollection(ViewObjectImpl.java:3650)
    oracle.jbo.server.QueryCollection.hasNext(QueryCollection.java:2992)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2207)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Second trace
    java.net.SocketInputStream.socketRead0(Native Method)
    java.net.SocketInputStream.read(SocketInputStream.java:129)
    oracle.net.ns.Packet.receive(Unknown Source)
    oracle.net.ns.DataPacket.receive(Unknown Source)
    oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.net.ns.NetInputStream.read(Unknown Source)
    oracle.jdbc.driver.T4CMAREngine.unmarshalUB1(T4CMAREngine.java:979)
    oracle.jdbc.driver.T4CMAREngine.unmarshalSB1(T4CMAREngine.java:951)
    oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:448)
    oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:185)
    oracle.jdbc.driver.T4CPreparedStatement.fetch(T4CPreparedStatement.java:692)
    oracle.jdbc.driver.OracleResultSetImpl.close_or_fetch_from_next(OracleResultSetImpl.java:258)
    oracle.jdbc.driver.OracleResultSetImpl.next(OracleResultSetImpl.java:193)
    oracle.jbo.server.QueryCollection.hasNextInResultSet(QueryCollection.java:3014)
    oracle.jbo.server.ViewObjectImpl.hasNextForCollection(ViewObjectImpl.java:3650)
    oracle.jbo.server.QueryCollection.hasNext(QueryCollection.java:2992)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2207)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Third trace
    java.lang.System.arraycopy(Native Method)
    com.sun.java.util.collections.ArrayList.toArray(ArrayList.java:287)
    oracle.jbo.server.ViewDefImpl.getEntityReferences(ViewDefImpl.java:547)
    oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1730)
    oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
    oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1070)
    oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)
    oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2841)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2594)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)
    Fourth (and end) trace
    oracle.sql.NUMBER.toBigDecimal(NUMBER.java:715)
    oracle.sql.NUMBER.bigDecimalValue(NUMBER.java:2080)
    oracle.jbo.domain.Number.bigDecimalValue(Number.java:551)
    oracle.jbo.domain.Number.hashCode(Number.java:431)
    oracle.jbo.Key.hashCode(Key.java:384)
    oracle.jbo.common.WeakHashtableImpl.get(WeakHashtableImpl.java:195)
    oracle.jbo.common.WeakHashtable.get(WeakHashtable.java:98)
    oracle.jbo.server.EntityCache.add(EntityCache.java:327)
    oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:1762)
    oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:2151)
    oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1070)
    oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2943)
    oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2841)
    oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:2203)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2088)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2594)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetImpl.activateIteratorState(ViewRowSetImpl.java:4960)
    oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:1901)
    oracle.jbo.server.ViewRowSetImpl.createRow(ViewRowSetImpl.java:1891)
    oracle.jbo.server.ViewObjectImpl.createRow(ViewObjectImpl.java:6555)
    com.samesi.segestion.view.backing.app.Clientes.devoluciones_action(Clientes.java:1845)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:585)
    com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
    oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:94)
    oracle.adf.view.faces.component.UIXTable.broadcast(UIXTable.java:205)
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet._service_79(FacesServlet.java:197)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)Tranks,

    I continued researching. When my server gain cpu and memory in Catalina.out, I can to see this output:
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache encodeBegin
    INFO: fragment is Facturacion.jspx:_id3
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache getFragmentFromCache
    INFO: fragment (Facturacion.jspx:_id3) fetch: cache miss
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache insertFragmentInCache
    INFO: fragment (Facturacion.jspx:_id3) insert: cached for 864000 secs
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache encodeBegin
    INFO: fragment is Facturacion.jspx:_id4
    Feb 28, 2008 10:25:53 AM oracle.adf.view.faces.webcache.component.UICache getFragmentFromCache
    INFO: fragment (Facturacion.jspx:_id4) fetch: cache missIn this example, I belive that user is resuming the Facturacion.jspx page. In my code I have this line:
    It’s corresponding to menu.
    I have looking this documentation:
    http://download.oracle.com/docs/html/B25947_01/web_cache002.htm
    In this documentation, first access, the cache miss, but the following times the cache could hit. . When my server gain cpu and memory I look that the following times the cache always miss in all pages. Subsequently tomcat no reply and the malicious thread, execute Armageddon trace. This behavior of the cache is strange, right?
    I’m sure that I’m making anything that fetch in queryCollection make big loop.
    I have redefining getRangeSize and CurrentRow of my CustomViewObject (all viewOjects about my applications extends CustomViewObject and CustomViewObject extends viewObject) and I looked correct rangesize (not -1). I got system.out.println(getFetchedRowCount()) in createRow and obtain 13 or 15. I belive that It’s correct.
    Another example of problematic trace is (in this case is in preparemodel):
    com.sun.java.util.collections.ArrayList.indexOf(ArrayList.java:201)
    com.sun.java.util.collections.ArrayList.contains(ArrayList.java:183)
    oracle.jbo.server.ViewRowCache.addWithCheck(ViewRowCache.java:351)
    oracle.jbo.server.ViewRowCache.add(ViewRowCache.java:409)
    oracle.jbo.server.QueryCollection.addRowToColl(QueryCollection.java:2069)
    oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:2111)
    oracle.jbo.server.QueryCollection.get(QueryCollection.java:1468)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3650)
    oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:2612)
    oracle.jbo.server.ViewObjectImpl.activateCurrentRow(ViewObjectImpl.java:12360)
    oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3768)
    oracle.jbo.server.ViewRowSetIteratorImpl.getRangeSize(ViewRowSetIteratorImpl.java:627)
    oracle.jbo.server.ViewRowSetImpl.getRangeSize(ViewRowSetImpl.java:2251)
    oracle.jbo.server.ViewObjectImpl.getRangeSize(ViewObjectImpl.java:6065)
    oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1549)
    oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1420)
    oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1403)
    oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2641)
    oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2484)
    oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2257)
    oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:104)
    com.samesi.segestion.view.frameworkExt.SegestionPageLifecycle.prepareModel(SegestionPageLifecycle.java:354)
    oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
    oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:97)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
    oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
    oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:595)Thanks,

  • [SOLVED] adf faces demo doesn't work with jdev 10.3.1.2

    Has anybody tried to run the ‘Introduction to adf faces/trinidad using jdev’ demo at
    http://www.oracle.com/technology/obe/obe1013jdev/10131/trinidad/adf_faces_trinidad.htm
    with jdev 10.1.3.2 studio?
    I am trying it and I am getting this error
    500 Internal Server Error
    java.lang.NoSuchMethodError: oracle.adf.view.faces.context.AdfFacesContextFactory.createContext(Loracle/adf/view/faces/webapp/wrapper/ContextWrapper;Loracle/adf/view/faces/webapp/wrapper/RequestWrapper;)Loracle/adf/view/faces/context/AdfFacesContext;
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterHelperImpl.startFilter(AdfFacesFilterHelperImpl.java:112)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:111)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Message was edited by:
    mauro avon

    We don't automatically migrate the adf-faces-api.jar since in a 10.1.3.x ADF Faces application this JAR is not part of your project's WEB-INF/lib directory.
    The issue must be specific to migrating this Apache Trinidad example.

  • JDev ADF Faces and XML publisher integration

    Hi,
    I have an ADF Faces / BC project which I want to integrate XML Publisher for reporting and output purposes.
    Following this note by Deepak Vohra http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html (which was incredibly helpful by the way)
    So far it's looking very promising but I have a few unknowns with the design.
    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    thanks and regards,
    Brenden

    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    To obtain JDBC connection from ApplicationModule refer
    http://radio.weblogs.com/0118231/2004/01/30.html#a232
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    Output may be set to an OutputStream with the FOProcessor method
    setOutput(java.io.OutputStream stream)

  • [BUG | ADF Faces] af:selectManyShuttle description doesn't work in af:page

    I am using:
    - JDeveloper 10.1.3.0.4
    - ADF Faces 10.1.3.0.4
    I have a selectManyShuttle component on my page (mapped to a managed bean) and nested inside a panelPage component, like this:
    <f:view>
      <afh:html>
        <afh:head title="Shuttle Test">
          <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
        </afh:head>
        <afh:body>
          <af:form>
            <af:panelPage title="Shuttle Test">
              <f:facet name="messages">
                <af:messages/>
              </f:facet>
              <af:selectManyShuttle leadingHeader="Available"
                                    trailingHeader="Selected"
                                    leadingDescShown="true"
                                    trailingDescShown="true"
                                    value="#{testShuttle.selectedValues}">
                <f:selectItems value="#{testShuttle.allItems}"/>
              </af:selectManyShuttle>
            </af:panelPage>
          </af:form>
        </afh:body>
      </afh:html>
    </f:view>The managed bean is based on the ShuttlePageBackingBeanBase class described in the ADF Developer's Guide: How to Create a Shuttle.
    This works fine - as you select each item in the list, the description field is updated with the correct value. If, however, I replace the af:panelPage component with an af:page component, the descriptions do not show up.
    I think this must be a bug because the main difference between the two components is the menu structure. In all other ways, they should function in the same manner.

    I have filed a service request on MetaLink for this problem and they have created a bug entry.
    The bug is 5840131 - "LONGDESC" FROM SELECTITEM OF SELECTMANYSHUTTLE IN AN AF:PAGE IS NOT DISPLAYED.

  • ADF Faces: Changing "rendered" property in PPR: JDev 10.1.3

    Hello all,
    I have an ADF Faces page that has an af:CommandButton on it. The rendered property of the button is set to an EL expression that references the model (ADF BC). When the page is submitted (via an af:CommandButton with PartialPage=true), the rest of the page refreshes properly to reflect the changed model state, but the command button with the conditional rendered property is not disappearing as expected (the button is initially rendered=true). I remember reading recently about a similar issue if the button is initially not visible, and I'm not sure if this is related.
    Interestingly, if I click on the button (which should no longer be visible after the PPR event), it does nothing - so it appears to be merely a visual problem. I have also tried setting the disabled property to an EL expression that is the opposite of the rendered property, and the button does not change to be disabled, either.
    Any thoughts? At this point, it looks like a bug/feature.
    Kind regards,
    John
    Should I be able to do this?

    John,
    if you wrap the button in a panel (e.g. buttonpanel) and set the PPR to this panel, does it work ?
    Frank

  • Bug ADF Faces: af:table

    Hello,
    I found a new bug while working with ADF Faces. If you have a form on a page as well as a table and one of the field in the form is flagged required, then the table won't be sortable unless a value is put in the required field. The same holds true for row navigation.
    I already thought about flagging the table as immediate. That fix the row navigation but not the sorting.
    Regards,
    Simon Lessard

    Hello Frank,
    Thank you for the reply. Here's the complete project.
    It's only a little example to show ADF Faces components without any specific model technology. Therefore, the project is a single project with any well defined separation. As you can see, the table is based on a collection completely separated from the form.
    Note: I agree that sorting should fail with a required field if the table is not immediate. However, if it's I see no reason why it wouldn't work since the table and the form are not linked.
    Anyway, here's the case.
    1. A "shop" managed bean:
    import java.util.ArrayList;
    import java.util.List;
    public class ShopBean {
        private Product newProduct;
        private List products;
        public ShopBean() {
            products = new ArrayList();
            newProduct = new Product();
        public String addNewProduct() {
            products.add(newProduct);
            newProduct = new Product();
            return null;
        public Product getNewProduct() {
            return newProduct;
        public void setNewProduct(Product newProduct) {
            this.newProduct = newProduct;
        public List getProducts() {
            // I also tried to return a CollectionModel here, but it didn't change anything
            return products;
        public void setProducts(List products) {
            this.products = products;
    }2. A product class:
    public class Product {
        private String name;
        private String description;
        private Double price;
        public Product() {
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        public String getDescription() {
            return description;
        public void setDescription(String description) {
            this.description = description;
        public Double getPrice() {
            return price;
        public void setPrice(Double price) {
            this.price = price;
    }3. A single page:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <f:loadBundle basename="com.dmr.cours.jsf.resources.messages" var="msg"/>
        <afh:html>
          <afh:head title="#{msg['page.title']}">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <h:form>
              <af:panelPage title="#{msg['title.page']}">
                <f:facet name="menu1">
                  <af:menuTabs>
                    <af:commandMenuItem text="#{msg['menu1.application.label']}"
                                        selected="true"/>
                  </af:menuTabs>
                </f:facet>
                <f:facet name="menu2">
                  <af:menuBar>
                    <af:commandMenuItem text="#{msg['menu2.welcome.label']}"/>
                    <af:commandMenuItem text="#{msg['menu2.products.label']}"
                                        selected="true"/>
                  </af:menuBar>
                </f:facet>
                <f:facet name="branding">
    <- Using SRDemo branding because no one sane want to
    see a branding made by me, using no branding works as well ->
                  <af:objectImage source="/images/SRBranding.gif"/>
                </f:facet>
                <af:panelHeader text="#{msg['title.new']}">
                  <af:panelForm>
                    <f:facet name="footer">
                      <af:panelButtonBar>
                        <af:commandButton text="#{msg['action.add']}"
                                          action="#{shop.addNewProduct}"/>
                      </af:panelButtonBar>
                    </f:facet>
    <- Removing the required attribute here makes sorting
    and row navigation functional again. ->
                    <af:inputText label="#{msg['product.name']}"
                                  value="#{shop.newProduct.name}" required="true"/>
                    <af:inputText label="#{msg['product.price']}"
                                  value="#{shop.newProduct.price}">
                      <f:convertNumber minFractionDigits="2"
                                       maxFractionDigits="2"/>
                      <f:validateDoubleRange minimum="0"/>
                    </af:inputText>
                    <af:inputText label="#{msg['product.description']}"
                                  value="#{shop.newProduct.description}" rows="5"/>
                  </af:panelForm>
                </af:panelHeader>
                <af:panelHeader text="#{msg['title.list']}">
                  <af:table value="#{shop.products}"
                            var="product" rows="5" banding="row"
                            bandingInterval="1" emptyText="#{msg['list.empty']}"
                            immediate="true">
                    <af:column sortProperty="name" sortable="true"
                               headerText="#{msg['product.name']}">
                      <af:outputText value="#{product.name}"/>
                    </af:column>
                    <af:column sortable="false"
                               headerText="#{msg['product.description']}">
                      <af:outputText value="#{product.description}"/>
                    </af:column>
                    <af:column sortProperty="price" sortable="true"
                               headerText="#{msg['product.price']}">
                      <af:outputText value="#{product.price}">
                        <af:convertNumber type="currency"/>
                      </af:outputText>
                    </af:column>
                  </af:table>
                </af:panelHeader>
              </af:panelPage>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>4. A property files
    page.title = Test shop page
    menu1.application.label = MyShop.com
    menu2.products.label = Product management
    menu2.welcome.label = Home
    title.page = Product management
    title.new = New product's data
    title.list = Existing product list
    action.add = Add to product list
    product.name = Product's name
    product.price = Price
    product.description = Description
    list.empty = No product yet.5. The /images/SRBranding.gif file.
    EDIT: Forgot to add the required field and "fixed" the comment that the forum was erasing. =P
    EDIT: Added a note.
    Message was edited by:
    Simon Lessard

  • Unable to implement Programmatic ADF Faces Tree component in jdev 11g

    I have referred to the posts " [Back to programming: Programmatic ADF Faces Tree component|http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html] " and " [Follow-up: Programmatic ADF Faces Tree in JDev 11g|http://one-size-doesnt-fit-all.blogspot.com/2007/05/follow-up-programmatic-adf-faces-tree.html] ",
    The first post showed how to construct the elements in the tree programmatically rather than relying on bindings (in JDeveloper 10.1.3)
    and the second post tells the only difference in 11g .
    I am trying to implement the elements of the tree programatically in Jdev 11g(specifically 11.1.1.0.2) but no result is coming .
    There is no compilation/run time error , its just that the tree is not visible.
    Can anyone suggest any key points which should be focussed during this implementation?

    Hi,
    follow the description
    http://www.oracle.com/technology/products/adf/adffaces/11/doc/demo/adf_faces_rc_demo.html
    to install the ADF Faces RC component demo in JDeveloper. It has a tree example. Have a look at their implementation and dapt it to your needs
    Frank

  • ADF Faces: how to extend one of the faces components

    Hi all,
    I am thinking of extending the built-in ADF Faces CommandMenuItem component (to work around a bug that was filed). The only thing that I think I need to do is to add an additional property - I don't believe that I will need to add any additional behavior to the tag.
    Can anyone comment on (high level) the steps that I would need to go through? I'd like to
    a). Add the property
    b). Make sure the property shows up in the JDev property inspector
    c). Inherit everything else from CoreCommandMenuItem.
    I've looked at the source code (from the Apache guys), and this doesn't look too hard. I don't want to re-compile the whole Apache drop, just create a new component as described above, but I've no idea really where to start.
    Any insights appreciated,
    John

    Hello John,
    I don't know how possible it will be. It depend on what kind of property you want to add. Here are the general indications to acheive this.
    1) Make a custom component class extending CommandMenuItem class and add an additional property.
    2) Extends the commandMenuItem tag clas with your own
    3) override the method public void setProperties(javax.faces.component.UIComponent component)
    you just have to call the parent first which is the specification behavior anyway, so:
    public void setProperties(UIComponent component) {
    super.setProperties(component);
    // Cast the component to your component class and set your additional property on it
    4) The hard part... This is where I'm unsure of the procedure, but I would say that you'll have to extends ADF Faces's renderer for commandMenuItem and find a way to push the property in it if it has to be sent to the client. This seem really annoying to do. One way to do it would be to wrap the ResponseWriter so you can intercept what the parent renderer encodes and insert your property in the right spot. That strategy requires an additional (probably intern) class extending ResponseWriter. Then you would have to do something like this:
    FacesContext context = FacesContext.getCurrentInstance();
    ResponseWriter initial = context.getResponseWriter();
    context.setResponseWriter(new MyWrapperWriter(initial));
    super.encodeBegin(context, component);
    context.setResponseWriter(initial);
    The Wrapper would have to override all methods and delegate the call to the wrapped instance. When calling startElement(String) you would add a call to writeAttribute for your own property.
    5) For showing the property in the property editor panel you must fill a faces-config.xml file with the <component> tag. Since that one does not allow inheritance (which is really annoying imho) you'll have to copy most of the properties from adf faces' faces-config.xml file.
    6) Fill the tld for your new tag
    7) JAR the whole thing
    8) Edit your tag library from Tool in the menu I think (not on a computer with JDev installed atm so cannot be sure). Add your library that you just created. If faces.config.xml and the .tld are well made JDev will figure prety much everything on its own. You will now have a new choice in the dropdown menu of the component palette for your custom library.
    I hope I was decently clear.
    Regards,
    Simon Lessard

  • ADF Faces is not supported on IE running in compatibility mode

    hi
    In the blog post "Running ADF Faces applications with IE 9 in IE 8 compatibility mode "
    at https://blogs.oracle.com/jdevotnharvest/entry/running_adf_faces_applications_with_ie_9_in_ie_8_compatibility_mode
    Frank Nimphius explains about headers to make IE browsers behave like a previous version (in compatibility mode), but ends with this support information:
    Very Important(!)
    ADF Faces is not supported on IE running in compatibility mode. If using ADF Faces on IE in production, make sure IE is configured to run in native mode. Compatibility mode may only be used during development if your IE version is not certified with the JDeveloper version you work with. In production then you need to make sure the IE version matches the JDeveloper certification matrix.Reviewing the Release 1 "Certification and Support Matrix "
    at http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html#Browsers
    it currently says
    "For Internet Explorer 8 and 9, only Native mode is supported. View Compatibility mode should be disabled. "
    But there currently are no hits when searching for "compatibility" in the Release 2 "Certification and Support Matrix "
    at http://www.oracle.com/technetwork/developer-tools/jdev/jdev11gr2-cert-405181.html#Browsers
    - (q1) ADF Faces is not supported on IE running in compatibility mode, how much of that applies to JDeveloper Release 2 and where has it been documented?
    many thanks
    Jan Vervecken

    Thanks for your reply Frank.
    Frank Nimphius wrote:
    its bug 13906617 "ADD ADF FACES NOT SUPPORTED ON IE COMPATIBILITY MODE TO THE DOCUMENTATION"
    I was unable to find bug 13906617 on My Oracle Support. Has bug 13906617 been published?
    thanks
    Jan

Maybe you are looking for

  • Issue with Formula on Brand Family Level

    Hi Friends, we are facing issue with the formula while showing the report output. Following is the scenario. BrandFamily(Char),Material(Char),Comp(Char), Kf1(Keyfig) ,Kf2(Keyfig) Data Records: 1st Record  - >    B1, M1,  200, 100 2nd Record - >    B1

  • Can't save phone numer

    anyone help me please... i can't save phone number... at CONTACT  i choose NEW CONTACT, i fill a name and number... but when i want save and i klik SAVE there is nothing happen.. i try to choose CANCEL, nothing happen too at least i choose DISCARD an

  • How to make a reset password function work in OIM?

    There is a requirement for resetting password for users in OIM. An OIM admin should be able to reset a password for a specific user, and the new password which should NOT be known by the admin will be sent to the user via email. And the user will be

  • How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?

    How can i put de number 2 over km 2?  Comment mettre le 2 surélevé pour km carré?

  • Disabling G/L Account field in MIGO transaction

    HIiya Gurus,                  I have got a requirement to disable the GL Account field in Accounting tab in the MIGO transaction. since i am an abaper i am not sure how to disable this field. i have gone through the transaction SPRO , but unfortunate