ADF Paging with EJB3.0

Hello,
I'm using ADF faces and ADF bindings with EJB3.0
I have af:table with paging, but that is only visual it still gets a list with al my objects.
Is it possible to have real paging that only gets the displayed data from the database.
Regards,
Tim

Hello,
I already have the method on the EJB, you pass the parameters, the number of the first record and the number of records you want.
The problem I'm having is that I don't know how to make adf call it.
I've used this with myfaces
http://wiki.apache.org/myfaces/WorkingWithLargeTables
But if I use something like that I can't use the bindings.
Am I right in presuming that the adf table only uses get(int pos) and size() to get the data from the collection. If so it was thinking about creating a PagedList based on the myfaces DataModel example. I don't really like that solution, but I don't know a better one.
Regards,
Tim

Similar Messages

  • Packaging ADF application with Libraries

    Hi Experts,
    I was exploring on packaging/ bundling an ADF application with all required libraries, so that this application can be deployed on any J2EE server.
    I have gone through another thread on similar topic - Error while deploying ADF application to a standalone weblogic server
    Above thread says that installation of run-time libraries are must. But I want to dig little deeper into the reasoning.
    What are libraries that can't be added into Application WAR file? (Normally J2EE developed application can be bundled and deployed on any of these servers (Weblogic/ tomcat/websphere)).
    Is it possible to bundle ADF application with all libraries and then deploy it to Websphere server directly (without installing 3rd party libraries)?
    Any help on this is appreciated.
    Thanks,
    Randhir

    Timo / Frank / Shay,
    Thanks for your help.
    Websphere server is being used by other applications. So the intention of bundling libs was to check ADF application funcationality on Websphere server without installing 3rd party ADF libraries (installation may conflict other libraries and some application can stop working).
    I gave a try on bundling all libraries with ADF application, but still I can see some error messages about missing libraries.
    What is your suggestion on installing 3rd party libs on Websphere server? Will this impact any deployed application?
    Thanks,
    Randhir

  • ADF Table with CheckBox - Select/deselect issue

    I have seen couple of threads and blogs for ADF table with check box . but none of them exactly matching with my requirement . My Database table does not have any field for check box .
    Here is my DB Table
    tableA_
    A_Id
    A_Name
    tableB*
    B_Id
    Requirements :*
    1. Display the above tables data with Checkbox . ( if A_Id = B_Id then the checkbox will be checked , else unchecked ) .
    2. Select / deselect the check box and save the data . Saving the data , will update only tableB . i,e when a new check box is selected then A_Id value will be inserted to tableB . Similarly , deselecting a checked in data will remove the entry from tableB.
    Development :
    1. Created a VO where tableB has marked as updateable .
    2. Created a transient Boolean variable for checkBox . and modified the getter method of checkbox for returning true/false based on the below condition in the ViewRowImpl Class .
    if ( A_Id = B_Id )
    return true;
    else false ;
    3. I have not modified the setter method .
    Using the above concept i can view the data with selected checkbox . but the problem is to save the data . because , when I select a checkbox the above coding in the getter method will return false .
    Therefore , though i am selecting the checkbox but value of the checkbox has been set as false .
    While saving the Data , I am iterating through the VOIterator and observed that a newly selected checkbox value is false . and realized its because of the getter method condition .
    Can you please suggest how can I overcome this issue or shall I need to take any other approach ?
    Jdev version 11.1.1.5
    Regards,
    Amitava
    Edited by: Amitava on Mar 17, 2012 3:48 PM

    You need to go through the ADF page life cycle concepts. In simple words the boolean value in the model is not set while in valueChangeListener. Try adding valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance()); on top in your listener method and see the effect.
    Reference:
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/adf_lifecycle.htm

  • Paging with JDBC

    Hi
    What is the best way to do paging with JDBC when using PL/SQL Cursor. I want to create DAOs that access PL/SQL Cursors with a paging mechanism. The DAO must be stateless.
    Regards,
    Nestor Boscan

    Nestor,
    While I'm not trying to take away from Mikael's suggestion, the way I do it (which was implemented before the existence of "OracleCachedRowSet") is to maintain a scrollable "ResultSet" on the server, and send "Collection"s to the client. But beware of very large "ResultSet"s, because the Oracle JDBC driver implements scrollable "ResultSet"s via client memory.
    In any case, paging has been discussed previously in this forum. Did you try searching the forum archives?
    Good Luck,
    Avi.

  • ADF Faces with Facelets (Menubar)

    Hello experts,
    i using ADF Faces with the jDeveloper (11.1.2) and currently i have a little problem. The menu bar is not usable when i using facelets. It seems to me that the component isn't working.
    This is my little testproject:
    http://www.axxg.de/Facelets.rar
    Thanks for your help
    Alexander

    Alexandar,
    You could have just explained your problem rather than making us download something.
    You have a few issues:
    1). You are using Facelets templating to include your content and header - however, content and header are full pages, not fragments - thus you have multiple f:view tags and af:document tags (this is why you have problems with the menu not dropping down). Have a look at ADF templates in the documentation if you'd like to see how ADF templating works.
    2) Your menus aren't set to do anything. <af:commandMenuItem text="open" id="cmi1"/> - there is no action/action listener associated with your menu item, so indeed it does nothing - this is what you will see when you fix problem #1
    John

  • ADF Faces with NetBeans Visual Pack

    Hello all,
    I have NetBeans 5.5.1 installed with the Visual Pack and I am looking to try out other libraries with it, in particular ADF Faces from Oracle.
    Does anyone know how to import the components into the NetBeans Visual Pack? They download from oracle as[b] adf-faces-impl-10_1_3_0_4.jar and not as a complib extension, which NetBeans prefers.
    Please if anyones has any experience with getting this to work let me know. Or if you think it can't work let me know as well?
    Hoping to hear from someone soon. Thanks in advance.

    Hello again,
    Anyone out there using ADF faces with NetBeans Visual Pack who can give some feedback?
    I want to be able to use the drag and drop capabilities of the Visual Pack with the ADF faces components, but I don't see how to configure this as they do not come pre-configured as a complib extension.
    Any feedback would be appreciated.
    Thanks and Regards.

  • Oracle ADF application with Teradata as Database

    JDeveloper PS5.
    Is it possible to integrate Oracle ADF application with Teradata as Database?
    If yes, can you please provide some information with respect to the same?
    Thanks,
    Navaneeth

    Does teradata have a JDBC driver ? and can it understand SQL92 falvor SQL ?
    If yes, then maybe you can do ADF on it.
    Take a look at this :
    http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
    A bunch of ADF features will not be available, primary key generation will be a bit sketchy(all keys for all tables will come from a single sequence of numbers) and you'll have to implement some stuff like the persistence collection manager.
    The one thing that doc does not mention is that you also have to make sure your adf-config.xml is set with the correct 'jbo.SQLBuilder' property (SQL92) in the <amconfig-overrrides> section.
    Happy hacking !

  • How to use ADF Faces with struts1.3.8

    Hi
    Can anybody guide us how to use ADF faces with Struts 1.3.8.
    Your help will be appreciated.
    Thanks
    Chetan

    Xpp,
    Have a look at the ADF Developer's Guide for specific instructions on menus (the ADF Developer's Guide for Forms/4GL Developers has the information in section 19.2).
    You can put javascript handlers on the components to get keyboard event handling.
    John

  • ADF Faces with ADF BC

    Hi everyone,
    I'm trying to map a <af:table> to an ADF Business Component. I can retrieve the records and I can also navigate doing Next and Previous, but I cannot do a Delete of a record. Do you know if there's any kind of "work arround" to use ADF Faces with ADF BC to do a delete or update, etc.?
    Here is the code, you can notice the: <af:tableSelectOne> tag to put the radio buttons colums to select which one to delete, and you can also notice the action="#{row.markForDeletion}" for the commandbutton to perform the delete.
    Jonas Jacobi wrote in his web blog on August 16 that he was going to post some samples for this "work arround" but I think he never posted them.
    Here is the code:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA12/html" prefix="afh"%><%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/ui/jsp/adftags" prefix="adf"%>
    <adf:uimodelreference model="table_testUIModel"/>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/EA12" prefix="af"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <H1>This is a Test</H1>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>my test page</title>
    <link href="css/blaf.css" rel="stylesheet" media="screen"/>
    </head>
    <body>
    <f:view>
    <afh:head title="tableSelectOne Demo"/>
    <af:panelPage>
    <af:table rows="3" var="row" value="#{bindings.CmSvcView1.rangeSet}" first="0">
    <f:facet name="selection">
    <af:tableSelectOne text="Select and ...">
    <af:commandButton text="Delete" action="#{row.markForDeletion}"/>
    </af:tableSelectOne>
    </f:facet>
    <af:column>
    <f:facet name="header">
    <af:outputText value="SvcId"/>
    </f:facet>
    <af:outputText value="#{row.SvcId}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="SvcNum"/>
    </f:facet>
    <af:outputText value="#{row.SvcNum}" styleClass="OraHeaderSubSub"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="SvcName"/>
    </f:facet>
    <af:outputText value="#{row.SvcName}" styleClass="OraHeaderSubSub"/>
    </af:column>
    </af:table>
    </af:panelPage>
    </f:view>
    </body>
    </html>
    Thanks,
    Pablo (sorry for the long post)

    Thank you Gabrielle. At least now I have an excuse to tell my boss why I can't get it to work.
    Any idea when it may be available? Would it be a better idea to implement the table in plain vanilla JSF, and when ADF Faces is ready for ADF BC then do the migration?
    Are there any workarround to this problem?
    Thank you for your time,
    Pablo

  • ADF Integration with BPEL

    Hello,
    I am new to BPEL. I am working on a sample .
    I am working on ADF Integration with BPEL process.
    I have an ADF Screen displaying data from an EMPLOYEE table in HR Schema . It has a button called "Update". I need to call a synchronous BPEL process on click of "Update" . This BPEL process will take the selected employee information as an XML input and update the last name to the first name as the response.
    I have some doubts in that :
    1. How to pass an XML Schema as input parameter to a BPEL process ? Can you please let me know some sample applications ?
    2. I am creating a web proxy for the BPEL WSDL (created above) and my "Update" button is binded to a method which is calling the BPEL process.
    How can i pass my XML input as the argument of the method to invoke the BPEL process ?
    Thanks
    Nutan

    When using a web service proxy, you need to pass the data as an object, which' structure is defined in the web service proxy wrapper classes.
    When you've defined a data control for your bpel process, you can just drag and drop the 'initiate'/'execute', your operation and bind this to the update-button.
    When working with the proxy client, you need to populate your java class objects with the employee-object, this can be done in a backing bean or managed bean in your adf faces application.
    For more information you can always have a look at my blog where I've provided an explanation about the different possibilities of interfacing adf with SOA.
    Kind regards,
    Nathalie

  • ADF: Error with API's OIM

    Hi! i am work with view object programmatically, and ADF project with Business Component too. So when i run the (JSP & JSF) i have this error:
    11/07/19 15:39:33 log4j:WARN No appenders could be found for logger (com.sun.faces.config.ConfigureListener).
    11/07/19 15:39:33 log4j:WARN Please initialize the log4j system properly.
    07-19-2011 03:39:34 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    07-19-2011 03:39:34 PM oracle.wireless.its.ra.TelnetResourceAdapter run
    INFO: Industrial Telnet Server versión: Version 10.1.3.0.0 iniciado correctamente.
    07-19-2011 03:39:36 PM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    11/07/19 15:39:37 JAVA: LookupXellerateTypeOIMImpl.java
    11/07/19 15:39:37 Startup...
    11/07/19 15:39:37 Getting configuration...
    11/07/19 15:39:37 Login...
    **11/07/19 15:39:37 Thor.API.Exceptions.tcAPIException: com.thortech.xl.security.tcLoginException: javax.naming.NameNotFoundException: ejb/tcUnauthenticatedOperations not found**
    **11/07/19 15:39:37      at Thor.API.tcUtilityFactory.createLoginException(Unknown Source)**
    **11/07/19 15:39:37      at Thor.API.tcUtilityFactory.<init>(Unknown Source)**
    11/07/19 15:39:37      at sv.gob.AppModuleImpl.LookupXT(AppModuleImpl.java:163)
    11/07/19 15:39:37      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    11/07/19 15:39:37      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    11/07/19 15:39:37      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    11/07/19 15:39:37      at java.lang.reflect.Method.invoke(Method.java:597)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
    11/07/19 15:39:37      at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:1962)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
    11/07/19 15:39:37      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
    11/07/19 15:39:37      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCInvokeActionDef$DCInvokeAction.refresh(DCInvokeActionDef.java:131)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2533)
    11/07/19 15:39:37      at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2274)
    11/07/19 15:39:37      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
    11/07/19 15:39:37      at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:78)
    11/07/19 15:39:37      at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
    11/07/19 15:39:37      at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
    11/07/19 15:39:37      at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
    11/07/19 15:39:37      at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:327)
    11/07/19 15:39:37      at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)
    11/07/19 15:39:37      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
    11/07/19 15:39:37      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
    11/07/19 15:39:37      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
    11/07/19 15:39:37      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    11/07/19 15:39:37      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:233)
    11/07/19 15:39:37      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:202)
    11/07/19 15:39:37      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    11/07/19 15:39:37      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    11/07/19 15:39:37      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    11/07/19 15:39:37      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    11/07/19 15:39:37      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    11/07/19 15:39:37      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    11/07/19 15:39:37      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
    11/07/19 15:39:37      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    11/07/19 15:39:37      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
    11/07/19 15:39:37      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
    11/07/19 15:39:37      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
    11/07/19 15:39:37      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    11/07/19 15:39:37      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    11/07/19 15:39:37      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    11/07/19 15:39:37      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    11/07/19 15:39:37      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    11/07/19 15:39:37      at java.lang.Thread.run(Thread.java:662)
    I dont understand about this error! need help! Please!!!

    There are couple of APIs are available, please have a look:
    http://otndnld.oracle.co.jp/document/products/id_mgmt/idm_903/doc_cd/javadocs/operations/Thor/API/Operations/tcAuditOperationsIntf.html

  • Weblogic server 10.0 MP2 version compatibility with EJB3.0

    Is it ok to use EJB3.0 in 10.0 MP2 ?
    Are there any pitfalls or problems with EJB3.0 implementation with webloigc 10.0 MP2 version?
    Currently we are using weblogic 10.0 MP2 version and planning to use EJB3.0 for one of our projects.
    Do we still need to go to weblogic 10.3 for using EJB 3.0 or can we stick with webloigc 10.0 MP2 version
    As per weblogic 10.0 documentation EJB3.0 is supported and JDK version used is 1.5. - http://docs.oracle.com/cd/E13222_01/wls/docs100/pdf/notes.pdf
    Thanks
    Deena

    Hi Anup,
    Maybe you should be a bit more specific about what you want to do. Coherence is just Java and has been supported WebLogic for years in the same way most other third-party Java libraries and APIs are. I first started using Coherence about four or five years ago with WebLogic 8.
    JK

  • Can I Integrate ADF Mobile with (BPEL or BPM)

    I want to know if I can Integrate ADF Mobile with (BPEL or BPM) and can I open my worklist App from ADF Mobile.

    Hi,
    why don't you access the worklist app from the mobile device browser?
    To answer your question: You can access BPEL processes as a service from an ADF Mobile application. If you have URLs which content you want to display within the mobile Application, then try adding a feature that uses a URL as a resource.
    Frank

  • Possibility & Drawback  Using JDeveloper 11g ADF Faces with Oracle 10g DB

    We are new to ADF Faces, would like to use JDeveloper 11g ADF Faces with Oracle 10g database (Enterprise Edition). As we are new to JDeveloper 11g ADF BC, so we want to know about the Possibility & the Drawback.
    Edited by: eng.shahed on Apr 5, 2010 11:21 AM

    i dont think so any drawbacks using Jdeveloper with any database.....its a open product ... You can use it with Sybase, MySQL, Oracle etc etc..

  • ADF Faces with NetBeans

    Hi,
    This is Sandip Kulkarni.
    I want to know that, how can we use or integrate ADF Faces with NetBeans 6.1 or NetBeans 6.5?
    Please assist me with the solution as early as possible........
    Thanking you

    Sandip,
    In all honesty, if you want to do ADF development - JDeveloper is the only game in town... yes, I know you can make it work, but it's not going to be productive. If you are talking about ADF Faces only, you may be able to configure the taglibs + etc in Netbeans, but not sure it's going to be fun. If you want to bring ADF Business Components into the mix, it's going to be unworkable.
    One thing you could look at doing is to use something like maven - and then use Maven to generate the Netbeans artifacts.
    Caveat: I've not done this before and cannot comment on how workable it will be.
    Why don't you want to use JDeveloper?
    John

Maybe you are looking for

  • HELP! Need to undo updates for a Goods Receipt - incorrect PO

    Hi there, I'm fairly new to SAP Business One and made a mistake with my last Purchase Order/Goods receipt. The parcel I had to book in arrived but the invoice had no PO number, so using the Query Manager I found out which Purchase Orders included the

  • Add import button to portfolio layout?

    Hi all, I would like to create a psudo-application with acrobat X and portfolio sdk. I need to build a basic pdf portfolio creator application. Here is a simple explication of my idea: I create a pdf portfolio that will open fullscreen. The protfolio

  • Ibook G4 won't recognise Combo drive

    Hi there I have an iBook G4 12" 800Mhz , when I bought it off ebay it arrived with an issue - the computer doesnt see the combo drive, dvds don't mount, Apple dvd player app gives an error message saying it kind find the drive to play dvds. I have si

  • Service cancellation fee

    I need to cancel our service. We have 4 lines, all being smartphones. How do I do it? I'm SURE Verizon charges a cancellation fee, ha!

  • E72, MfE & Exchange 2003

    I've been using MfE in it's installable versions for a couple of years now, on various devices. We've just moved over to E72's at work from WinMo devices and we use a SBS 2003 SP2 Exchange box. Normally, and this applies to all other devices (WinMo,