OBE : ADF Faces in Model project

hi
The tutorial "Examining ADF Business Components New Features"
at http://www.oracle.com/technology/obe/obe11jdev/11/adfbc_new_features/adfbc.html
says, in its "Create a New Application and Project" section, to "... set the project name to Model, and in the Project Technologies tab, shuttle ADF Faces into the Selected pane ..."
The screenshot ADFFacesInModelProject.png shows how both ADF Business Components and ADF Faces are part of the Model project.
- (q1) Why would it be a good idea to have both ADF Business Components and ADF Faces in the same JDeveloper project?
many thanks
Jan Vervecken

The screenshot ADFFacesInModelProject.png shows how both ADF Business Components and ADF Faces are part of the Model project.Can't see any valid reason why. For what the article is trying to do , there isn't any valid reason to add Faces libs to the model project.
Not that there's a technical limitation to this - but looks like a mistake (also causes deployment issues).
- (q1) Why would it be a good idea to have both ADF Business Components and ADF Faces in the same JDeveloper project?if it's some ugly throaway test code.
Not in production code anyway.

Similar Messages

  • ADF Faces and BC4J integration

    If I drag and drop my BC4J View Objects from the data control palette, Jdeveloper 10G generates an input form using tags from the struts TLD (WEB-INF/struts-html.tld).
    How can I configurate JDeveloper to use the ADF Faces tags in this case?
    Now JDeveloper generates for an attribute in an input form this code:
    <html:text property="CodigoTipoCliente"/>
    I want to generate something like this:
    <af:inputText property=”xx”> where xx is the attribute name for the BC4J.
    Is this possible?
    If it not possible, can I integrate ADF Development to JSF?
    thanks

    i have a requirement where i need to have Java Beans as Model Layer in ADF Faces.
    i have executed a project in ADF UIX with Java Beans Model Layer it works fine.
    but when i tried the same in ADF Faces like i have created some java beans as Data controls and drag and drop them onto the JSP page which in turn convert into <af:inputText value="#{bindings.lastName.inputValue}"
    label="Last Name"
    required="#{bindings.lastName.mandatory}"
    columns="#{bindings.lastName.displayWidth}"
    binding="#{backing_inputPage.inputText2}"
    id="inputText2">
    <af:validator binding="#{bindings.lastName.validator}"/>
    </af:inputText> but these fields are always shown as ReadOnly fields even though i set the readOnly attribute to false and by which i cannot insert any values into it on runtime
    but where as when i convert them into normal JSF HTML tags then i can enter values and even pass values between pages but WHY DO I NEED TO DO THIS
    is the ADF FACES JAVA MODEL LAYER IS NOT YET integrated or what?
    please reply or clarify

  • A Question about ADF Faces, File Uploading in distributed environment

    Hello,
    I am using ADF Faces for my project. In my project members will be able to create their albums and upload their photos..
    The problem is that i can do upload in a single server enviroment but i dont know what will happen when count of members will grow.. What is the best way
    for managing these photos in clustered enviroment. 1 Server will not be enough if too many people upload their photos.
    I do not have exact server number because i will add additional server nodes when it will be necessary, so i must think how to do that before production.
    Do you advice me to use XML or keep addresses of photos in database? Or anything else? As i mentioned, i dont know how many servers i will have... maybe 1 maybe 5 maybe 10.
    Thanks for your helps..

    Hi,
    First of all, thanks for your replies..
    Actually i do not want to keep all of videos and photos in database. Keeping them in directories will be better for me but i do not know how to share them between multiple server nodes..
    This is the thing that i have never done before..
    Can you please tell me the terms & keywords that i need look for? So i can find some documents about making this happen.
    Thanks again..

  • ADF Faces - showOneTab PPR problem in Internet Explorer

    Hoping someone has some insight into this that may help. This is causing us a lot of problems for us and could end up causing us to drop ADF faces from our project.
    Basically we are using af:showOneTab in our application and the first time we change tabs and every other time after that, the progress bar in IE basically runs forever and we have problems with afh:script tags that set the focus to the desired input field. We get a Javascript error that the element doesn't exist (it does, checked with a DOM explorer), or its not ready (may not be because of the progress bar) or isn't visible (it is).
    So after a lot of debugging in our application I just went back to the adf demo war file and the showOneTab component demo page in there shows exactly the same behavior. Firefox 1.5.0.7 does not have this problem.
    Here are the relevent versions of everything:
    ADF faces standalone jars, version 10.1.3.0.4 from the main ADF faces page download.
    JSF 1.1_01 RI
    Websphere 6.0 App Server
    Internet Explorer version 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
    JDK 1.4 - required because of WAS 6.0
    Thanks!
    Steve

    I did find a workaround to this problem. I think its pretty ugly though. I had to add the following to the page:
    <!-- This code is necessary to prevent the IE progress bar runs forever problem. -->
    <f:verbatim>
         <iframe height="1px" marginheight="0px" marginwidth="0px" id="garbageFrame" name="garbageFrame" width="1px" style="visibility:hidden; position:absolute; top:-200px">
         </iframe>
    </f:verbatim>
    <afh:script id="iframeUpdate"
         text="window.garbageFrame.document.write('');
         window.garbageFrame.close()"/>
    <!-- End of code for IE progress bar problem. -->     
    Then I add the iframeUpdate script as a partial Target in my tab disclosure listener:
         UIComponent c = (UIComponent)de.getComponent();
         UIComponent target = c.findComponent(":iframeUpdate");
         AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
         if(target != null) {
              adfContext.addPartialTarget(target);
    Just thought I'd follow up as I remember others having the progress bar run forever in IE as well.
    Steve

  • ADF Faces & BC: Best pratices for project layout

    Season greetings my fellow JDevelopers!
    Our software group has been working with ADF for around 5 years and through the years we have accumulated a good amount of knowledge working with JDeveloper and ADF. Much of our current application structure has been resurrected in the early days of JDeveloper 10 where there were more samples codes floating around then there were "best pratice" documentation. I understand this is a subjective topic and varies site to site, but I believe there is a set of common practices our group has started to identify as critical to streamlining a development process(reusable decorated ui components, modular common biz logic, team development with svn, continuous integration/build, etc..). One of our development goals is to minimize dependency between each engineer as everyone is responsible for both client and middle layer implementation without losing coding consistency. After speaking with a couple of the aces at the last openworld, I understand much of our anticipated architectural requirements are met with JDeveloper 11(with the introduction of templates, declarative components, bounded task flows, etc..) but due to time constraints on upcoming deliverables we are still about an year away before moving on with that new release. The following is a little bit about our group/application.
    JDeveloper version: 10.1.3.4
    Number of developers: 7
    Developer responsibilties: Build both faces & bc code
    We have two applications currently in our production environments.
    1.A flavor of Steve Muench's dynamic jdbc credentials login module
    2.Core ADF Faces & BC application
    In our Core ADF Faces application, we have the following structure:
    OurApplication
         -OurApplicationLib (Common framework files)
         -OurApplicationModel (BC project)
              -src/org/ourapp/module1
              -src/org/ourapp/module2
         -OurApplicationView (Faces project)
              public_html/ourapp/module1
              public_html/ourapp/module2
              src/org/ourapp/backing/module1
              src/org/ourapp/backing/module2
              src/org/ourapp/pageDefs/
    Total Number of Application Modules: 15 (Including one RootApplicationModule which references module specific AMs)
    Total Number View Objects: 171
    Total Number of Entities: 58
    Total Number of BC Files: 1734
    Total Number of JSPs: 246
    Total Number of pageDefs: 236
    Total Number of navigation cases in faces-config.xml: 127
    Total Number of application files: 4183
    Total application size: 180megs
    Are there any other ways to divide up this application? Ie: module specific projects with seperate faces-config files/databindings? If so, how can these files be "hooked" together? A couple of the aces has recommended that we should separate all the entity files into its own project which make sense. Also, we are looking into the maven builds which should remove those pesky model.jpr files that constantly gets “touched”. I would to love hear how other groups are organizing their application and anything else they would like to share as an ADF best pratice.
    Cheers,
    Wes

    After discussions over the summer/autumn by members of the ADF Methodology Group I have published an ADF Coding Standards wiki page that people may find useful:
    [http://wiki.oracle.com/page/ADF+Coding+Standards]
    It's aimed at ADF 11g and is intended to be a living document - if you have comments or suggestions please post them to the ADF Methodology google group ( [http://groups.google.com/group/adf-methodology?hl=en] ).

  • Configure ADF-Faces project

    Hi,
    I have a project developed with ADF-Faces. I've copied it and pasted in another computer. This other computer has installed jdev 10.1.3.4, same version used for developing, and loaded the project without problems, aparently. When I tried to buil the project I have compilation errors due to missing libraries. I went to the web project's properties and found at the Libraries options that all ADF-Faces related entries have problems and can't be found, and, when opening files that use ADF-Faces objects imports can't be resolved. JSP pages won't find the tag libraries. How can I fix this problem?
    Any help is mostly welcome. Thanks.

    thanks for your reply.
    I did try that. In the project properties' window, down in the Libraries I had five adf entries, which were masked as with problem:
    ADF Common Runtime
    ADF Controler Rintime
    ADF Faces Cache
    ADF Faces Runtime
    ADF Model Runtime
    I removed them, and tried to add them again, but only two loaded again out of the five:
    ADF Faces Cache
    ADF Faces Runtime
    The same happened in the JSP Tag Libraries menu. I had
    ADF Faces Cache 1.0
    ADF Faces Components 1.0
    ADF Faces HTML 10_1_3_2
    JSF Core 1.0
    JSF HTML 1.0
    deleted and tried to add them again, but only two out of five were available
    JSF Core 1.0
    JSF HTML 1.0
    Any ideas what might be the problem?

  • Error while deploying ADF Model Project to OIM 11g R2

    Hi
    I am getting the following error when deploying ADF Model Project in OIM 11g R2
    oracle.jbo.NoDefException:JBO-25058: Definition UsrLastName of type Attribute is not found in UsrLastName
    any inputs is appreciated...thanks in advance....

    See if you can find something helpful in the following links:-
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2329750
    oracle.jbo.NoDefException: Error in Quick Search when we use View  Criteria

  • JDeveloper - ADF Faces projects - calling a jspx from another project

    I have an ADF Faces project which has a jspx file and a backing bean. The jspx file is called 1.jspx and the backing bean is called 1.java. Navigation within the page and outside of the page is controlled by the faces-config.xml.
    However, I want to be able to navigate to another jspx in another project. Let's call this jpx, 2.jspx. How would I be able to make this call without losing the current context in my first project? Please note I do not want to have to copy the 2.jspx and 2.java files into my current project.
    Thanks
    Chris

    Hi,
    according to the JavaEE specs, a J2EE context demarks the scope of a session, which means that as soon as you call out to another application, you start a new session, loosing all the information of the other session. So if you don't want to deploy this all in one application, then you have to find a way of persisting context information (e.g. using a shared database instance)
    Frank

  • 2 Model projects in one ADF Application?

    Hello,
    I want to create an ADF application that connects to 2 databases. For both databses I create a seperate Model project. But when I drop a Data Control from the 2nd Model Project on the jsp I get an exception:
    oracle.jbo.ConfigException: JBO-33005: Configuration Model2ServiceLocal is not found.
    When I t
    Do I need to configure something extra to get this working or is this not possible?
    Joost

    Instead of creating two separate Model project you can create two application module in a model project.
    Steps:
    1. Create EO VO AM for the first connection.
    2. Open Model.jpx and create another db connection. Then create EO VO AM etc for the second connection.
    Hope this solves your problem
    ~Abhijit

  • Adf faces tutorial - Toplink model is out of sync with the database.

    When running the adf faces tutorial I encountered some problems. The starter workspace uses toplink and the model should be based on the OE schema database objects. However the Customers class is different from the database table, especially the custAddress (but also the phoneNumbers).
    Thus when running the application, the creation and update of a customer (with data for the address) raises the following error:
    javax.faces.FacesException: #{ManageCustomers.doUpdate}: javax.faces.el.EvaluationException: Exception [TOPLINK-4002] (Oracle TopLink - 10g Developer Preview 3 (10.1.3.0 ) (Build 041116)): oracle.toplink.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-00932: inconsistent datatypes: expected OE.CUST_ADDRESS_TYP got CHAR
    Error Code: 932
    Besides, the application is not able to display the address properly (due to the same problem) but shows something like: oracle.sql.STRUCT@43e and it cannot display the order_date (timestamp with timezone) correct.
    I get the impression that the toplink model is based on an old or modified OE schema and has not been updated. I like the tutorial, but I would appreciate it when it is correct and does not contain such flaws as descibed. Please update the workspace.

    Ship missing arch files to the standby arch dest manually and initiate recovery of the standby db.No need to regenerate the controlfiles. You might want to investigate the reason why they were not sent to the standby db.

  • Information about adf data model's state management in JSF/ADF faces?

    Dear All,
    i am developing an application with JSF/ADF faces + using
    adf data model (EJB, not adf bc)...
    i want to know more about state management of adf data model..
    1. under what condition, will the data in the binding context
    (methodIterator, variableIterator, accessorIterator..etc) be maintained accross
    http requests? say browse pageA.jspx, pageB.jspx, pageC.jspx..then do data
    in the corresponding pages saved somewhere else until session timeout?
    2. how do the binding context data be saved ?? http session?
    i can't find detail information in the adf bc dev guide and the adf dev guide..
    could anyone give me more information about this?? any better document??
    i have asked these question several times...but seem nobody can give me a
    full picture about the adf data model's state management....it is quite important
    in order to develop good application using adf data model.
    my company have brought oracle's support service...can i get these information
    through metalink (open a SR) ?? or actually no such information available ??
    btw, after playing with adf data model for a few weeks, i do find it is very
    hard to learn it... no complete document, information is just by providing example...
    adf data model do make:
    1. simple logic, supported by adf, more simple in coding
    2. simple logic, not supported by adf, more complex in coding
    3. complex logic, much more complex in coding...brain damage..
    lsp

    Hi,
    actually, these pages don't explain the state management about the adf data model's iterators?
    i want to know the state management of the iterators...for some iterators..it's
    state is maintained across requests...
    please see my previous post: ADF JSF data binding: why state maintained between requests? that Frank Nimphius said:
    "in this case its the iterator that survives the page navigation"...
    in the adf dev guide..section 5.5.5..it says: "Upon each request, the iterator bindings are refreshed to rebind them to the
    underlying RowSetIterator objects. By default, the rowset iterator state and the
    data caches are maintained between requests."
    in dev guide, it seems state is maintained for request for the same page, but not
    accross different pages. but in fact, the rowset iterator do survive...
    any detail document that write down the actual behavior of the iterators?
    thank you.
    lsp

  • Page navigation and send parameters between different projects (ADF Faces)

    Hi,
    I am using ADF Faces 11g and have an application which has multiple web projects, I want to navigate between different projects' pages and send form values as parameters. How can i do that?
    Thanks
    Edited by: user12227999 on 16.Şub.2010 01:43

    You'll need to use JavaScript to alter the action url on the form element to achieve that, but it's going to be complex and I'm not too positive on the resulting stability in a 11g environment that often need to send XHR to the server. What's your exact use case? It looks like a bad design to me. Normal external call would be using URL parameters, which is consistent to RESTful strategies. What you want to do is a POST to an external application from another which is quite horrible imho, how will you handle session management? Piping the response from the server could be another option.
    Regards,
    ~ Simon

  • Externalize the Skin from ADF Faces project

    I have a requirement, where we don't want to bundle Skin(CSS, adf-faces-skins.xml, adf-faces-config.xml files) with the web project. Which would help us to add new skin or change the existing skins.
    I see the CSS file name is different when it renders in the final HTML page. If my file name is 'sni.css' and it is kept in folder 'Web Content/css' but in the output html('/adf/styles/cache/sni-desktop-10_1_3_3_0-en-ie-6-windows-s.css'). How does the name changes here?
    We do this in our old framework by putting CSS files in Web Server. Can we do similiar thing in ADF Faces to externalize the styles? Overriding Faces Listeners or by any other way?
    Similiarly want to externalize images, adf-faces-skins.xml and adf-faces-config.xml also.
    Thanks

    Hi,
    We created a external skin project. WebSkin.war. In this project we put every thing (images, ccs, etc).
    In the others Web projects, into our jsp files we added this line on the header.
    <link rel="stylesheet" type="text/css" media="screen" href="/WebSkin/common/skins/<%=styleBean.getStyleName()%>/screen.css" />
    And (of course) getStyleName give us the current Skin Name (blue, purple, etc)
    But (nothing is perfect).. we are using JBOSS as application server, we didn't test that solution on other platform.
    I hope is not to late ...
    Regards.
    Message was edited by:
    ppasquel

  • Protocal between ADF Business Service (ADF -AM) and the ADF Faces Model.

    Hi,
    Anyone knows how the communication is happening between ADF-AM and the ADF Faces model ? I mean the protocol? Is it handling by the application server container with the help of ADF libraries?
    I knew in ADF Faces and EJB the communication is hap[ping via RMI/IIOP (standard EJB call). But in the ADF BC and application module i am bit confused about the access. I knew we can expose the AM as state full session bean. But by default how that is happening. Experts please help me to understand the architectural concept of this.
    -t                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    the question is not basic and valid too. Just wanted to understand the motivation behind it
    For bc4j i am not sure. can we full fill the above deployment scenario?
    Yes, you can. ADF BC allows you to deploy the business service as an EJB 2.1 model and then have the Data Control hooking up to it (JNDI).
    Apart from this i would like to know the communication protocol (by default) between ADF BC application module and the view model which is the data control. In ejb when we create the data control we can specify that is Local or remote ( Some people said the EJB binding is not full supported in some cases but for ADF-bc it is). But how this is happening in the ADF-BC.
    It would work like a normal EJB client. The ADF BC client interface would reside on the web tier and access the remote business service. So there is nothing different here than when using EJB. However, not that it uses EJB 2.1 still and that we don't see customers using this approach in a web deployment. It made lots of sense (performance) in desktop application development with ADF BC, but in web application development a remote business service access doesn't seem to be state of the art (and even using straight EJB you would use the local interface and have the business service model reside on the same machine as the web module)
    Frank

  • Integrate ADF Faces RC with existing project

    Hi,
    I want to use ADF Faces RC components in my existing project but i could not find downloadable jar files to add.
    Is ADF Faces RC component available only with JDeveloper?
    My company dont use JDeveloper. Is that possible to use these excellent components in our applications?
    Thanks,
    ULAŞ

    You can just download JDev 11 and then use only the JAR files of the components.
    Currently we don't have a stand alone download of them.

Maybe you are looking for

  • Editing a PDF in preview (os x 10.8)

    I am editing a PDF in preview (os x 10.8) and I want to add a text box with a fill.  I can change the text color, but the fill option is greyed out. how do I change the fill of the text box?

  • Failure: "gnrclist.cpp" after a DLL call

    Forum: Since adding dll calls in a VI, LabVIEW is frequently crashing, both during VI execution and after exiting the application. Generally, what issues need to be considered when making successful dll calls (using the "call library function"). Jord

  • Need to reinstall OSX, but original discs are 3 years old

    I have a Powerbook 1.33GHz PowerPC G4 and it's running OS X 10.4.8, but I need to clean it up and pass it on to my daughter. I just got a MacBook intel laptop It's been so long since I did an install, I can't remember if I use the original discs I go

  • Support for Progress Database

    Hi, I have a requirement to pull data into HANA from MFG PRO system that runs on Progress database, does SLT support it. Please advise. Thanks.

  • Specifying mulitple jars on classpath

    What is the most convenient way to specify multiple jar files on the classpath? If I have a lib directory with many jar files, it seems like I should be able to specify that directory on the classpath and all jars will be used. But, as I understand t