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

Similar Messages

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

  • 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

  • Is it possible to integrate ADF Faces with eclipse

    hi experts,
    i am new to JSF.
    i am using myeclipse IDE5.1 eclipse3.2 and java 1.6
    i want to know how to integrate ADF faces into my JSF....
    i have ADF Faces standalone adf-faces-api-10_1_3_0_4.jar and adf-faces-impl-10_1_3_0_4.jar
    and also include the jsf capabilities
    I dont know the integration in web.xml and faces-config.xml..
    and i dont know the documentation which is given by oracle is for Jdeveloper or eclipse too
    please send the one example with jar integration..
    or send the link of that....

    Ralph,
    Maybe I'm deranged the same way you were, but I have the same problem: I see the logs when the server (OpenPortal portlet Container 2.0 with Glassfish) starts, but after that, no logs are displayed in Eclipse console, and breakpoints are ignored in debug mode.
    What was the issue and how did you fix it ?
    Thanks
    Vincent

  • 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

  • Did anybody used ADF Faces with Apache Struts?

    Hi
    Can anybody give some guidelines of how to use ADF Faces with Struts?

    I think you'll get a better answer for this on an iBatis forum.
    I think I knew one customer who used this combination.
    We don't have a specific tutorial that shows you how to use iBatis with ADF Faces, but at the end of the day any of the tutorials we have that shows you how to use POJO or a session facade to front POJO will be applicable to iBatis.

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

  • Jdev 10.1.13 EA1 - search form (BC + ADF faces) with date field

    Did anyone tried to make a simple search form with BC,( just draging view form control palette to faces page?)
    Because when i did it and tried to search by one date field (for example orderDate) i got exception:
    oracle.adfinternal.view.faces.convert.ConvertException: Could not convert instance:Wed Sep 07 00:00:00 CEST 2005 of type:class java.util.Date into type:class java.lang.String
    Is it a bug?
    I tried to use converDateTime component but it haven't fixed the problem.
    Bart.

    Hi,
    Business Components doesn't perform type conversion. This is the problem I see. Basicaly the expected format is String
    Could not convert instance:Wed Sep 07 00:00:00 CEST 2005 of type:class java.util.Date into type:class java.lang.String
    Is you date field really a date field ?
    Frank

  • ADF Faces: oracle.adf.view.faces.CHANGE_PERSISTENCE

    Does anyone have any information about oracle.adf.view.faces.CHANGE_PERSISTENCE. This appears to be un-documented.

    This may help explain the situatin. I originally had JDeveloper 10.1.3.2 installed when I started this tutorial. I then installed JDeveloper 11 version 4 and tried to work the WebCenter Protlet tutorial. When I did it tried to migrage my settings. However, when I attempted to do the tutorial I noticed that it did not have the same options for the WebCenter new applications that would create a Portlet folder. So, I went back to 10.1.3.2 to work the tutorial. No error was flagged at this point but that is when the problems started occuring. I browsed my working directory (C:\Oracle\jdevinstance) where I had my applications stored (C:\Oracle\jdevinstance\mywork) and I noticed that I had what appared to be possible conflicting system files. I had the following system files listed under the working directory: system, system11.1.1.0.17.45.24, system11.1.1.0.22.47.96, and system11.1.1.0.22.49.49. I don't know if this is the issue or not and any feedback about these extra files would be apprecaited?
    In addition, I create a new application (using 10.1.3.2) with a different applicaiton directory (C:\Oracle\jdevinstance\MyWork_10.1.3.2) and started the tutorial over. This time I had no issues with the JSP page and all of my web.xml files are the same version (2.4).

  • Any tutorial for performing manual CRUD beside ADF faces and ADF BC ?

    Hi
    Thank you for reading my post
    is there any tutorial around which help me learn how to perform manual CRUD beside ADF BC ?
    in my application i have some complex DB operation which i need to perform them manually.
    an example is my login page :
    user enter user name and password and i should check it with database and after i checked that its correct then i can set session attributes that user is loged in.
    now the question is : how i perform that check for user name and password , does ADF-BC helps or i should get the connection and create an statement ...
    thanks

    Hi!
    You can do that with bind variables. Perhaps this thread will help you:
    Re: SQL statement problem!!
    Claus

  • ADF UIX with ADF Binding without Struts

    After trying the CRUD tutorial from the "Complete ADF UIX Application (Browse, Create, Update, Delete)" -(http://otn.oracle.com/products/jdev/collateral/tutorials/9050/adfuix_tut.html), I found it may be thousands of struts actions in my upcoming project.
    It will be difficult to merge and sync my team members works and the usefulness of StrutsPageFlow diagram will decrease severely although it is very convenient to drag data control operations to struts data actions without coding.
    I am trying to use ADF Controller event handler as my page flow engine to eliminate these drawbacks.
    When I use ADF controller as my page flow engine, if I have to pass ui model reference, initialize binding container, get binding container, get application module and refresh binding container, ... manually in my event handler codes just like the BasicDataAction class does in "ADF data binding primer (http://www.geocities.com/smuench/adfprimer/)"?
    Is there any document that cover this information or any suggestions?
    Daniel

    ADF Controller questions should be posted in the JDeveloper forum.

  • ADF Faces w/ADF BC: Bug(?) w/null values in drop down list in find mode

    Using JDev 10.1.3.0.4.
    I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
    One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
    When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
    However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
    (Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.)

    Using JDev 10.1.3.0.4.
    I have a page that shows a single record. The user can toggle between regular and Find mode to enter query by example criteria.
    One of the fields has been bound to a dynamic list. The "No Selection" Item in the List Binding Editor is set to "Selection Required".
    When editing a record, this list does not have an empty item. When the user enters find mode, the list has an empty item in the list - which makes sense since the user might not want to search on a value in that particular field.
    However, if the user enters find mode, selects an item from the list, executes the query (Execute action), and enters find mode again then the empty item no longer shows up in the list. Is this a bug?
    (Note - there is an easy workaround - if you delete and create in find mode, then the new critieria record has the list fixed with an empty item in it.)

  • ADF Faces and BC: Scope problem with managed bean

    Hi,
    I am using JDev 10.1.3 and ADF Faces with ADF BC.
    I have created a managed bean which needs to interact with the binding layer and also receive actions from the web pages. I have a managed property on the bean which is defined as follows:
    <managed-bean>
        <managed-bean-name>navigator</managed-bean-name>
        <managed-bean-class>ecu.ethics.view.managed.Navigator</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
        <managed-property>
          <property-name>bindings</property-name>
          <value>#{bindings}</value>
        </managed-property>
      </managed-bean>I need the been to session scope because it needs to keep previous and next pages to navigate the user through their proposal. If i use session scope (as above) i get the following error when i click on a comand link which references a method in the above bean: #{navigator.forwardNext_action} which returns a global forward.
    this is the exception:
    javax.faces.FacesException: #{navigator.forwardNext_action}:
    javax.faces.el.EvaluationException: javax.faces.FacesException:
    javax.faces.FacesException: The scope of the referenced object: '#{bindings}' is shorter than the referring object     at
    com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)     at
    oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211) at
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)at
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)     at
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)     at
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)     
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)     at
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)how can i get around this?
    Brenden

    Hi pp,
    you need to create a managed (not backing) been set to session scope.
    You can call/reference the managed bean from your page.
    the backing bean is designed around a page lifecyle which is request oriented in it's design.
    This is a simple managed bean from faces-config.xml
    <managed-bean>
        <managed-bean-name>UserInfo</managed-bean-name>
        <managed-bean-class>ecu.ethics.admin.view.managed.UserInfo</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
          <managed-property>
          <property-name>bindings</property-name>
          <property-class>oracle.adf.model.BindingContext</property-class>
          <value>#{data}</value>
        </managed-property>
      </managed-bean>and the getters and setters for bindings in your session scope managed bean:
        public void setBindings(BindingContext bindings) {
            this._bindings = bindings;
        public BindingContext getBindings() {
            return _bindings;
        }you can access the model from the managed bean using the the BindingContext if needed.
    also have a look at JSFUtils from the ADF BC SRDemo application, there are methods in this class such as resolveExpression which demonstrate how to get the values of items on your page programatically using expression language. You can use this in your managed bean to get values from your pages.
    regards,
    Brenden

Maybe you are looking for

  • RAM expansion on Satellite L50-B-18E

    Hi, I need to expand the RAM memory on my laptop, it is a Toshiba Satellite L50-B-18E i5. How can I do that? Do I send my laptop to some technical support office or can I do it myself? Thank you in advance.

  • How can I make the Instance name the same as the name of the Movie clip in an animation.

    Hi, I am an animator for a small game project and I have this really big problem. Even though I used flash for animation for a long time I am a newbie when it comes to something technical. I just received a request to make every movie clip that I use

  • Audigy SE Headset mic w/ speakers prob

    <font face="verdana,geneva" color="#808080">My on board sound peaced out the other day, so I bought the Audigy SE sound card and I have sound now, but I use speakers to listen to my games and a headset for communication purposes only, not sound. I pl

  • HT201318 I upgraded to 20GB storage which I don't want, how do I get a refund?

    I couldn't take any more photos on my iphone 4s as the storage was full so I upgraded, but didn't really want to pay £28.00 so would like a refund.  How do I go about it? Have tried various apple websited but can't seem to do it.

  • Mac now seeing mp4 as a document rather than a movie file

    Hi all Not sure if this is posted in the right forum. Pls point me in the right direction if it's not Over the last couple of days when I download a mp4 file it shows it as a document instead of a movie file and i can't play it with quicktime player