EJB 3.0 / Data control binding / ADF Faces

We have a great and very useful tool to generate rich client web application. Generate web component from a data structure is easy but manage the full life cycle is a little bit more complex. This complexity is dramatically increased when tool/platform are offering many models to solve the problem.
In JDev we have three major choices:
1) adf business components
2) top link pojo
3) ejb3.0
From the client side and in my point of view (at my current understanding) the first and second choice are the easiest way to manage the persistence because they are what i say "bidirectional", that mean i will use the same data structure to persist and synchronize the database. I may only calll a method from the object to put my changes from the midle-tier into the database.
EJB 3.0 seem to be more cormplex due essentially to the presence of the session bean that acts like conversational api. I like this architecture because it is the most flexible but from my client i have to manage these api's instead of one data structure. This mean for me to catch/detect every updates, new insert or deletes in my business object and to write the corresponding code to apply to correct entity bean methods from my session bean.
Why not manage this logic in the data control framework by declaring which methods are to use as finder to get the data and which methods are to used to manage the persistence (persist, merge, remove) at object level.

Exactly what i mean
Actually Data Control architecture seem to be business object oriented with native method called from the same object to retrieve (the most part done)/synchronize the data with the database.
This is fine than your architectue don't provide a service layer like session facade.
With session facade you will access different business method to retrieve data and synchronize you data with the database not different method from the same object like application module do in adf bc.
I see two solution, the best is that you extend the data control framework to offer standard crud operation and a tools to map these with one or many methods in the same (has to be the same?this is a question of architecture, i think it has to be the same but the framework may have to permit to use an another one for flexibility) session bean. This may be the same from adf bc or top link but the method may be selected automatically by the tool (wizard).
The second solution is to build specialized sesssion bean with mandatory standardized methods and map this directly in the framework. The advantage i see is that the updates may be collected only once by the session bean by passing a specialized object manipulated by a specialized method.
In fact the best solution is something that combines mapping in the data control and a specialized set of methods in the session bean to execute a transaction in a whole at the server level.
What is to be decided if the framework (data control part) has to maintain a status for attribute (or set of attribute that correspond to a data control node) that are new inserted, updated or deleted and to synchronize only the changes.
I'm very surprising that something like that it is not already in the framework ?
How do I have to take care of changes made in a data control node object when i have used it to generate an adf faces by example in master / detail pages with an edit form like in otn examples. I see that the detail list in the detail table is updated so the data control is updated correctly by the edit form when i submit the changes but how to finally get this changes and synchronize with the database ?
ps i reply previously by mistake by email sorry ... not that the email is not exactly the same as the post here
Michel

Similar Messages

  • Jdev11g: How to use a Ord.image data type with ADF Faces 11g

    Where to find an example about Ord.image data type with ADF Faces 11g preview3

    Hi,
    such a sample doesn't yet exist.
    Frank
    Btw.: The Jdeveloper 11 forum is JDeveloper and OC4J 11g Technology Preview

  • Not able to access SOAP web service data control from adf mobile

    Hi,
    I am trying to call web services from adf mobile..
    I have created data control from external web service and it is perfectlly working on web browser..
    But why it is showing an error on emulator??
    Is there any .jar file missing in adf mobile so that it is not supporting a web service?
    Or is there any other problem? Emulator is connected to network and I am able to run WSDL in emulator's browser..
    Please help me to solve this issue..
    Thanks,
    Laxmi

    Emulator is connected to network and I am able to run WSDL in emulator's browser..
    Connecting to WSDL in the browser is not the same as connecting to WSDL in an application.
    To access a web service from an Android device enable a permission in AndroidManifest.xml that allows applications to open network sockets. Add the following uses-permission element.
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>

  • Could not find "ADF Data Controls" in ADF tutorial 10.1.3.1.0 chapter 2

    Hi
    I am currently learning Oracle ADF followed by 10.1.3.1.0 tutorial. ( September 2006 Revision ), I installed Oracle Jdeveloper 10.1.3.2.0 on my pc with remote 10.2.0.2 database connection.
    In the manual page 2-17, the final step of that chapter, it requests to create ADF data controls associated with SRPublicFacadeBean.java . It says, right-click the SRPublicFacadeBean.java node and choose "Create Data Control" from the context menu. However, I could not find such option in the context menu. Does anyone know why that happened.
    Thanks ahead
    Sean
    Edited by: ma_sean on Oct 8, 2008 4:14 PM

    Did you install the J2EE edition of JDeveloper or the Studio edition?
    You need the studio edition to be able to create data controls.

  • Using UCM data controls in ADF application

    Using *.6 Jdeveloper/UCM/Protal Application/UCM
    Calling all the experts in Webcenter/Spaces/UCM/ADF.
    We have a requirement to design search inteface for Documents stored in UCM for Webcenter Portal and Spaces application.
    Our approach is
    Design simple ADF application (no security/templates)
    Bounded task flows using fragments.
    Framents to use UCM data controls (provided by oracle)
    UCM data control definition is extended to use custom metadata.
    package the application.
    Added as ADF library jar to portal application
    Added as Shared Library to Spaces application.
    Question.
    Is this approach sound?
    Does UCM data controls provide all the functionality, for example if we want to read a option list for custom metadata or need custom metadata in return table?
    Can we add other methods to UCM data control provided by Oracle or should we create different one?
    Is there good documentation for such requirements. We have acces Webcenter developers guide which throws some light on UCM data controls.
    Let me know if more clarity is needed...
    Regards

    Hi.
    One of my last components was a custom "Document Explorer" and I used for first time JCR Data Control (Custom UCM Data Control provided by Oracle).
    Sharing my experience I did something similar to you:
    1) Create a ADF Bounded Task Flow and test it individually.
    2) Add generated ADF JAR Library to WebCenter Spaces shared-lib.
    3) Add your Task Flow to Resource Catalog.
    Challenges that I found using custom Data Control:
    1) When items retrieved are content/files all custom metadata can be retrieved OOTB.
    2) When retrieving folders don't provide custom metadata like files. I used RIDC with JCR Data Control to provide all the information relative to folders. If you don't need more information about folders than the name, URI and icons then is OK :).
    3) Using JCR Data Control registers in DataControls.dcx UCM Connection name used when generate JCR Data Control. After deploy your ADF JAR Library in WebCenter Spaces you'll have problems if you don't have a WebCenter Content Connection created with the same name. (Not talking about export UCM Connection with ADF JAR Library, Data Control uses a Connection name by itself :)).
    I added extra functionallity with RIDC (not extending JCR Data Control).
    I hope this help you.
    Regards.

  • Getting Extra classes while creating Data Control in ADF

    I am using Jdeveloper 11.1.1.6.0.
    I was trying to create a Data Control from a Java class (containing event handling code) right click on the java class -> Create data Control.
    I can see many data controls were created in my work space when the operation was completed
    Example: java.io.InputStream.xml, java.net.URI.xml and many more.
    Anybody please suggest is it a problem in Jdeveloper tool or I need to perform any additional step to remove all these files.
    Regards,
    Rajesh

    Hello TimoHahn,
    I can see only the Data controls are getting generated (not the class files).
    Please find the code snippet for my class for which I generated data controls:
    public class ContexEvent {
        public ContexEvent() {
            super();
        public void handleEvent(ActionEvent payload){
            UIComponent component = payload.getComponent();
            Map<String, Object> attrMap = component.getAttributes();
            FacesContext context = FacesContext.getCurrentInstance();
            ELContext elContext = context.getELContext();
            Application application = context.getApplication();
            ExpressionFactory factory = application.getExpressionFactory();
            ValueExpression valueExpr = factory.createValueExpression(elContext, "#{backingBeanScope.NameBean}", Object.class);
            NameBean nb=(NameBean)valueExpr.getValue(elContext);
            //String newVal = (String)payload.getNewValue();
            nb.setFirstName("Rajesh");
            AdfFacesContext adfContext= AdfFacesContext.getCurrentInstance();
            adfContext.addPartialTarget(nb.getNameLabel());

  • Data control binding to soap in/out for wsdl

    hi,
    i am a new to jdeveloper. i did fine but here i am stuck at a stage. i see whole structure for the wsdl document. simply i want to know how can i make(bind) a user input data bound control on jsp form. where user enter information. it goes to web server visa wsdl. and send back results. and how can i save these results in my variable. and can show on jsp page. my web service responding well and show its all getxxxxxxxx massages.

    There is a step-by-step tutorial to call a BPEL process using ADF-BC, that may be a good place to start, for your current use case.
    See "using BPEL in an ADF application", by Susan Duncan.
    Hope this helps,
    -eric

  • Calling SOA composite from ADF BC web application by cretaing Data Control

    Hi ,
    I have deployed my SOA composite on a stand alone server .I have a ADF web application and I hace created a WS data control using the URL of WSDL of the SCA (got it from EM Test page).I have created a jsf page and have created input/output parameter .Now as soon as page loads it gives error in processing Security header. I go and check the policies tab there is a global policiy wss10_saml_token_service_policy that has been attached to the SCA .it cannot be removed(there is no disbale option). Now I try to override it using no_authetication_service_policy but it satrtas giving error .My question is this sca when tested by Test webservice button works fine so this means behind the scene it is sending some username and passsword in the soap request what is that userna me and password how to find that.Because I hope if i Get that then may be whiel creating the Data control in ADF web applciation I can give that username and password as endpoint authectication values and it should.Request some one to please advice what needs to be done for this.
    Thanks

    This got solved .I have created a polciy for the datacontrol and given the username and password same as that of app server.

  • ADF Faces Release Date?

    Can somebody please indicate what is the scheduled release date for the ADF Faces suite? Also, it would be nice to know the prevailing thought process on the licensing.
    Thanks
    Arjuna

    Due to Sarbens-Oxely regulations we can't give you a more specific date then FY06 (meaning anytime between now and June-06) as a release date for both JDeveloper 10.1.3 and ADF Faces.
    ADF Faces is free if you deploy your application on the Oracle Application Server. If you deploy on another application server there is a runtime cost ($5K per proccessor).
    And just for the record we already know of people using ADF Faces in production applications even though the components are still not officially production.

  • Jdev 11g, Passing data between pages using data control

    Hi,
    I'm fairly new to Jdev, J2EE, and ADF. I created a project using the tutorial "Build a Web Application with JDeveloper 11g Using EJB, JPA, and JavaServer Faces" (found here: http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html).
    Data model part seems to work fine. I am able to connect to the database and print out a record using the sample client.
    Now I'm trying to build the web front end for it. I started using a data control and ADF to make the components. I built a search page by dragging and dropping my method from the data control onto a form. I set the action on the form to go to a detail page which I put a database node from my table product_group. My thinking was the user would put in the id and then be taken to the next page that has the detail on it.
    When I ran the page though the search page seemed to execute fine but the detail page came up blank. There were no runtime errors. I think data is not being passed to the next page.
    This is the code for the form on the search page:
    <af:form>
    <af:panelFormLayout>
    <af:inputText value="#{bindings.p_id.inputValue}"
    label="#{bindings.p_id.hints.label}"
    required="#{bindings.p_id.hints.mandatory}"
    columns="#{bindings.p_id.hints.displayWidth}"
    maximumLength="#{bindings.p_id.hints.precision}"
    shortDesc="#{bindings.p_id.hints.tooltip}">
    <f:validator binding="#{bindings.p_id.validator}"/>
    <af:convertNumber type="number"/>
    </af:inputText>
    <af:commandButton actionListener="#{bindings.queryProdGroupFindByID.execute}"
    text="Search ID"
    disabled="#{!bindings.queryProdGrouptestFindByID.enabled}"
    action="search"/>
    </af:panelFormLayout>
    </af:form>
    This is the detail page:
    <af:form>
    <af:panelFormLayout>
    <af:panelLabelAndMessage label="#{bindings.description.hints.label}">
    <af:outputText value="#{bindings.description.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.id.hints.label}">
    <af:outputText value="#{bindings.id.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.id.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.status.hints.label}">
    <af:outputText value="#{bindings.status.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.storeId.hints.label}">
    <af:outputText value="#{bindings.storeId.inputValue}"/>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.type.hints.label}">
    <af:outputText value="#{bindings.type.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.type.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    </af:panelFormLayout>
    </af:form>
    I guess what I'm asking is how does data get passed to the detail page using a data control? Also if anyone has an online book about data controls and how they work I'd appreciate that too. Too much magic going on.
    Thanks in advance.
    Edited by: user2936931 on May 3, 2009 5:15 PM

    I went to the bindings tab for my search.jspx page and found in the 'executables' table queryProdGroupFindByIDIterator. I looked in the properties for that and 'CacheResults' is set to '<default>true'. Next page still looks blank. I changed it to straight up 'true' and that didn't work either.
    If I'm in the right place I guess it must be something else?

  • Missing Data Controls

    Hi,
    I've been following the OBE "Building a Web Application..." at this link http://www.oracle.com/technology/obe/obe11jdev/11/ejb/ejb.html
    I am up to creating a master-detail page and when browsing the Data Controls panel, I have nothing listed. Anyone know how to see the data controls ?
    Thanks,
    Ben

    Ben --
    Just to be sure... did you do this step? This is what should add your EJB to the Data Controls panel.
    12.      We are now going to expose the EJB as a data control for the Oracle ADF framework. This will simplify the way that we can bind user interfaces to the EJB. To learn more about the ADF Framework visit:
    http://oracle.com/technology/products/adf
    Right-click the HRFacadeBean node in the Application Navigator and select Create Data Controls from context.
    -- Brian

  • What are the benefits of converting my custom class into Data Control?

    Hi,
    I have developed my own custom class which implements no of methods for execution of Business Logic. Now I have two ways to use the same -
    *1. Create and instance of the same (wherever required) and call those methods.*
    *2. Expose the class as Data Control.*
    I want to understand which methods/technique is better and why?
    Does creating that class as Data Control provides me better performance any other benefit.
    Thanks in Advance,
    Amit

    Hi,
    1. You use this if you don't want to use ADF bindings to access the business logic (e.g. to build input forms or table for it)
    2. You use this when you want to work with ADF. Additional benefits you gain is that you can specify UI control hints on the generated metadata, apply validation rules that are consistently applied to all uses of the POJO class. In addition you don't need to handle class instantiation and dismissal yourself anymore as the ADF framework takes care of it.
    The base line though is "no data control - no ADF binding"
    Frank

  • Web service data control

    how to web service data control security username and password with executewithparams or bean ?

    hi Abdelkader
    After you find the wizard ...
    ... this post by Shay Shmeltzer could be relevant
    "Re: ADF binding on Web Service Data Controls "
    Re: ADF binding on Web Service Data Controls
    "Indeed there seem to be a problem with this in 10.1.3.2 - I'll bug this."
    success
    Jan Vervecken

  • ADF Faces Table with a Total row calculated?

    Hi there OTN Community:
    I have another doubt.
    I have an EJB dataControl, and i use one of his collections to display the data in an ADF Faces Table. One of the columns of the Adf Faces Table is numeric, And i have to display the Total of that Column.
    I only shows 10 rows per screen, but i need to show the total of all the rows.
    How i can calculate it?

    Mmmmm..... You're right!...I will try that.
    Thanx :)
    Hey, and....You know? i was thinking, maybe i can get the iterator and then capture each object of the iterator to compute the total. That is a crazy idea?, its possible?, its not recommended? or its ok too? :P
    Thanx in advance.
    Dany

  • ADF Faces Production?

    Hi,
    does Oracle have already a fix deadline when JDev ADF Faces production will be released?
    TIA,
    Tamas

    Tamas,
    ADf Faces in fact will be released with Oracle JDeveloper 10.1.3 production. To trhis time it will have a complete visual editor as well as ADF integration, which means that binding ADF Faces components to business services (EJB, Webservices etc.) becomes a matter just a mouse click or two.
    Its not really fair to talk of Forms as "old Developer 9i / Forms" because it still solves its pupose. It depends on the type of application you want to build, if it shoudl be a Web application with a HTML basd user interface, then yes, it may make sense to wait for ADF Faces to become production. If your project can't wait, then you can still use e.g. JSPs un Oracle JDeveloper 10g.
    Frank

Maybe you are looking for

  • Istalling oracle 11g on windows vista

    Hi, i need to install oracle 11g on windows vista, unfortunately i cannot able do to that, becase after double cliking on the setup a messege like this one came out: OUI-10151: There was an error while loading library.generalQueries. Stop installatio

  • Invoice Does not Created in R/3

    Dear All, I am sending data from Oracle Application to SAP R/3 through XI . XI is picking up data from Oracle and send it to RFC of SAP R/3 in RFC it calls function module(Z) in which i am calling BDC.It executes fine in R/3 But when i send it thriou

  • My exported mpeg2-dvd m2v file won't playback an image in Encore CS6 or QT?

    I've also posted in Encore, but this group sees a lot more traffic and supposed to deliver tomorrow. Exported media as mpg2-dvd from PP CC 2014, imported as timeline with the .wav into Encore as suggested here: Adobe TV I don't know if this is an exp

  • Open PDF files in IE by Acrobat Standard 8 instead of Reader

    Hi, I have an issue when I open PDF files in Internet Explorer. On my computer, Acrobat Reader 7 and Acrobat Standard 8 are installed. I want that Acrobat Standard 8 opens my PDF files instead of Acrobat Reader 7. There is 2 conditions : I can't (I m

  • Difference in value in MIGO &  part2

    Hi, In MIGO the BED value captured has flown to J1IEXwhile posting part2 , but in the credit availed tab it is showing different amount. What is the reason behind this. Regards, Kumar