faces-config + adfc-config combination project JEE

People,

I am in a catch 22 situation.

I wanted to know if we can have our controlled beans defined in adf - conf.xml (to borrow the view range and the scope of the page) and the rules of navigation defined in faces-config. XML (since r already defined rules..) for a JEE project with adf faces view level.

Struggling for a while...

No one tried this?

thnks.

As controller of ADF extends the JSF controller functionality, him above described Scenario/usage cases should work without problems.

For an audit, a sample project is created with the navigation rules defined in the faces - config.xml and
bean registered in adfc - config.xml, and it works as expected.

Thank you
Nini

Tags: Java

Similar Questions

  • How to define the rules of navigation in faces - config.xml dynamically?

    In jdev 12.1.2 I am studying and performing the adf faces demo (12.1.2 version).

    I am trying to implement the function of navigation like this:

    1. in the navigation tree in the left panel of the accordion will show the features of an application which is read from database tables;

    2. When you click on a node in the navigation tree, a corresponding function/page will be launched in the Panel to the right of the home page;

    3. the navigation tree nodes display names and information pages target will be resident in the database tables and will be read in my case, the control of data bindings.

    and now I know, the click action was executed in this file in the demo: componentGallerySideBarTree.jsff:

    ->action = "#{stamp.actionOutcome}"

    < af:tree id = "tree" value = "#{attrs.menuModel}" var = "stamp" = "single" rowSelection fetchSize = "200" "

    Summary = "#{uploading." Summary}"disclosedRowKeys =" #{attrs.menuModel.foldersTreeState} "autoHeightRows = '0'"

    displayRow selectedRowKeys = "#{attrs.menuModel.selectionState}" = "selected" "

    contentDelivery = 'immediate' emptyText = "there are no demos for this category.

    styleClass = "AFStretchWidth" >

    < f: facet name = "nodeStamp" >

    < af:panelGroupLayout id = "nodePgl" >

    < af:image source = "#{stamp.ico}" styleClass = "GalleryIcon" shortDesc = "Image of a tree node" "

    ID = "nodeImg" / >

    < af:switcher facetName = "#{stamp.children == null?' leaves ': 'notLeaf'}" id = "nodeSw" > "

    < f: facet = "journal batch name" >

    < af:link id = text = "#{stamp.label"leafLink"} '"

    shortDesc = "#{stamp.label} #{stamp.deprecated eq 'real'?" (not recommended) " :"} »

    action = "#{stamp.actionOutcome}"

    inlineStyle = "#{stamp.deprecated eq 'true'?-style: italic; color: gray':"} ' "

    selected = "true" >

    < af:target execute="@this"/ >

    < / af:link >

    < / f: facet >

    < f: facet name = "notLeaf" >

    < af:outputText id = value = "#{stamp.label"notLeafText"} ' shortDesc =" #{stamp.label} "/ >"

    < / f: facet >

    < / af:switcher >

    < / af:panelGroupLayout >

    < / f: facet >

    < / af:tree >

    and the value of actionOutcome was entered in this file DemoConfusedComponentsMenuModel.java:

    (for the case of the confused component navagation tree folder)

    private TreeModel _initConfusedComponents()

    {

    Confused components

    The list < DemoItemNode > confusedComponentsNodes = new ArrayList < DemoItemNode >)

    {

    {

    ..

    Add (new DemoItemNode ("Tabs", "/ confusedComponents/tabs.jspx","/adfdt/panelTabbed.png","confused.tabs"));

    Add (new DemoItemNode ("iterators","/ confusedComponents/iterators.jspx","/adfdt/iterator.png","confused.iterators" ""));

    }

    };

    DemoItemNode confusedComponentsGroup = new DemoItemNode ("Often confused", "/ images/folder.png", confusedComponentsNodes);

    List ConfusedComponentsList = new ArrayList();
    confusedComponentsList.add (confusedComponentsGroup);

    TreeModel confusedComponents = new ChildPropertyTreeModel (confusedComponentsList, _CHILDREN);
    Return confusedComponents;
    }

    In addition, there are elements in faces-config .xml to define the rules of navigation for the actions 'by clicking on the tree node.

    <>navigation-case

    < from outcome >confused.iterators< / de-results >

    < to view - id > /confusedComponents/iterators.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    So, I can add a new entry in the navigation tree, like this:

    1. in DemoConfusedComponentsMenuModel.javaof the file: Add

    Add (new DemoItemNode ("Iterators", "/confusedComponents/cms.jspx","/ adfdt/iterator.png","confused.cms" ""));

    2. in the file faces - config.xml, add:

    <>navigation-case

    < from outcome >confused.cms< / de-results >

    < to view - id > /confusedComponents/cms.jspx< / to-view-id >

    <!-< redirect / >->

    < / navigation-case >

    and it works!- I have successfully added a new node in the navigation tree, called a new page created by myself cms.jspx.

    If I implement them using database tables (links datacontrols EO/VO),.

    I think I can put action = "#{stamp.actionOutcome}" by links.

    But how can I pay the entry in the faces-config file. XML? -That is to say:

    How to define the rules of navigation in faces - config.xml dynamically?

    Thanks in advance!

    ADF 12 c comes with support for JSF 2.0, you can use the implicit navigation feature.

    In short: you don't need to add case action property, any set of navigation in the name of the page (and include the path if necessary).

    In your case, the name of the action will be: ' / confusedComponents/cms.jspx ' and of course, you can link the action property of method that returns this string.

    If you want to add by the case of navigation program, try ConfigurableNavigationHandler.

    For example:

    Manager of ConfigurableNavigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance () .getApplication () .getNavigationHandler ();

    handler.getNavigationCases () .put (...);

    Dario

  • JDeveloper 11.1.2.4: Is it possible to display only custom validator ID defined in faces-config. XML

    I have several custom validators and do not need to see the default values listed in the screenshot below:

    http://i.imgur.com/xOQgxeZ.PNG

    Is it possible to display only custom validators that I defined in faces-config. XML?

    Thank you

    Wes

    Deepak,

    do not understand this sentence:

    "Do not specify the binding attribute value in the tag of f: validator for links do not display.

    Wes,

    The answer to the question seems to be 'no', you cannot remove other validator entries as they are too configured in a faces configuration file - but not that of the application

    Frank

  • Why ADFPhaseListener not configured in faces - config.xml in JDeveloper 11 g?

    I expect something like that in the faces-config. XML when you use links ADF as shown in the Guide of Oracle Application Development Framework Developer 10 g Release 3:

    When an ADF Faces component bound to an ADF data control is inserted into a JSF page for the first time, JDeveloper adds the PhaseListener ADF in faces - config.Xml.

    * < faces-config xmlns = "http://java.sun.com/JSF/Configuration" > *.
    *...*
    * < cycle of life >
    * <>phase listener *.
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener
    * < / phase listener > *.
    * < / life cycle > *.
    *...*
    * < / faces-config > *.

    But I don't see that this has generated in faces - config.xml, even in the demo storefront.
    How really the ADF PageLifeCycle is in the image in the ADF?

    See the "Note" in the section "customization of the ADF Page Lifecycle of 19.4" in ADF 11 g Fusion developer's Guide.
    (http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adf_lifecycle.htm#CIAJGBID)

  • ADF Faces &amp; BC: best practices for project implementation

    Season greetings my fellow JDevelopers!

    Our group of software works with ADF for about 5 years and over the years, we have accumulated a good amount of knowledge in collaboration with JDeveloper and ADF. A large part of our current structure of demand was resurrected in the early days of JDeveloper 10 where there are more codes samples floating around, then there was the 'best practices' documentation. I understand that this is a subjective question, and varies from one site to another, but in my view, there is a set of common practices, our group began to identify as essential to the rationalization of a development process (reusable decorated with user interface components, modular common biz logic, the development with svn, continuous integration/build team, etc...). One of our development objectives is to minimize the dependence between each engineer as everyone is responsible for the client and middle tier application without losing the consistency of coding. After speaking with a couple of the ACE to the last openworld, I understand a large part of our planned architectural requirements are filled with JDeveloper 11 (with the introduction of models, declarative elements, bordered of workflow, etc...) but lack of time on the results expected to come, we are still almost a year away before moving to this new version. Here's some of our group/application.

    JDeveloper version: 10.1.3.4
    Number of developers: 7
    Responsibilities of the developer: build both faces & collection bc

    We currently have two applications in our production environments.
    1.A flavor of the dynamic module from Steve Muench jdbc connection credentials
    2 core application ADF Faces & BC

    In our Core ADF Faces application, we get the following structure:

    OurApplication
    -OurApplicationLib (common framework files)
    -OurApplicationModel (project BC)
    src/org/ourapp/module1
    -src/org/ourapp/module 2

    -OurApplicationView (project faces)
    OurApp/public_html/module1
    OurApp/public_html/module2

    SRC/org/ourapp/support/module1
    SRC/org/ourapp/support/module 2

    SRC/org/ourapp/pageDefs /.


    Total number of application Modules: 15 (including a RootApplicationModule that references the specific AMs module)
    Display of number objects total: 171
    Total number of entities: 58
    Total number of files BC: 1734
    Total number of JSP pages: 246
    Total number of pageDefs: 236
    Total number of cases of navigation in faces - config.xml: 127
    Total number of application files: 4183
    Application size total: 180megs

    Are there other ways to divide this application? IE: module specific projects with distinct faces-config files/databindings? If so, how can these files be "hooked" together? A couple of aces has recommended that we must separate all files of the entity in its own project that make sense. In addition, we look at maven builds that must remove the pesky model.jpr files that gets constantly "touched". I would love to hear how other groups organize their application and anything else, they would like to share as a best practice ADF.

    See you soon,.
    Wes

    After discussions in the summer/fall by members of the ADF methodology group, I have published a wiki page ADF Coding Standards that people may find useful:
    [http://wiki.oracle.com/page/ADF+Coding+Standards]

    It aims to ADF 11g and is intended to be a living document - if you have any comments or suggestions please post them to the ADF methodology ([http://groups.google.com/group/adf-methodology?hl=en]) google group.

  • JDeveloper gets slow with a lot of controlled beans declared in faces-config

    Hello


    I have an application with a large number of managed beans (actually, hundreds of supporting beans). When I open the Visual Designer, it takes a long time to render the page and after that it becomes very slow. Even the view source becomes slow. When I remove parts of these controlled beans, JDeveloper return to normality.
    The problem is that the JDeveloper is so slow I can't do anything in JSP pages.

    Someone has an idea?

    I'm very grateful for any help.

    Thank you.

    Published by: gutogarcia on 01/22/2010 09:33

    ThDn wrote:
    The problem with backing bean, it seems to be the bombers and the buyers which adds thousands of unnecessary lines in the code, there is a way to create only those necessary?

    Rule 1: Never use the option of exposing it, manually create your links;
    Rule 2: Rule 1 is always right;
    Rule 3: If in doubt, refer to rule 2.

    If you break the rule 1, remove the comment in the JSP page that identifies the backing bean, said JDeveloper for use Auto-linking. If you change the bean of backup, make sure that you remove the attribute of link on the affected component as mentioned by another poster.

    Kind regards

    ~ Simon

  • How to combine projects separated at a project in After effects

    HEY PEOPLE!... I HAVE SEVERAL PROJECTS TEMPLETES CREATED SEPARATE IN AFTER EFFECTS FILES... HOW CAN PLACE ALL PROJECTS IN PROJECT ONE IN AFFTER EFFECT PROJECT TO COMBINE ALL THE COMPS FOR CONTROL IN AFTER EFFECTS WITH THE PUT IN TO AVID. I KNOW MAO LINK BUT DO NOT KNOW IF THIS IS THE WAY TO GO.

    You can import projects in other projects.

    Mylenium

  • combining projects in first 13 items

    I created 2 short projects in software on a Mac.  Each project is recorded separately.  How can I combine them in a longer project?

    Mary Lou

    Mary Lou Frost

    Premiere Elements Mac 13...

    To import media in the project, in the Expert area, or export, you go to add media and select the appropriate choice for your situation.

    To export your timeline, in the Expert area or export content, you're going to the designated area Publish + share / and make your choices and sub-choices.

    What do you do? If you post a few details of your source and how you want to export (to file saved to disk on a disk or hard), I

    will post the information specific to your case.

    Have you explored lessons Expert guided or guided fast in the program? Otherwise, click Expert and guided and review some of the

    lessons to determine whether or not they are a help.

    Note: These screenshots are first elements 13 on Windows 7 64 bit. They should be the same for Mac 13 items first.

    Depending on what country you are in, eLive may not be included in the list of headers eLive, Quick Guide Expert.

    Please let us know if you're OK with the above information.

    Thank you.

    RTA

  • Advice needed - videos - of sports matches how to combine projects?

    I am trying to create a video highlight of my daughter's Soccer.  The goal is to be able to show his talents in a video and I hope engage college coaches.  I recorded the video of several games that are each about 80 minutes.  I'm guessing that I average about 2 minutes of electronic images of each game.  Once the video is finished, it will be posted on you tube and the link will be sent to college coaches appropriate.

    I currently work with each game separately as an individual project.  Once I have all the published games, I would like to combine all these individual game projects in a large project.  Once combined, I want then cut out much of the game clips and just keep the really good things for the final product.

    My big question is in what concerns together them each little project for the final project.  Can I 'release' of each project and then import the product "published" in first Prev 11 elements?  Is there an easy way?

    Any advice on how to do it easily would be much appreciated.

    (I use Prime Minister 11 elements (trial version) and standard video files in AVCHD format taken with a video camera.)  If I can get this figured out I will definitely buy the software.)

    The smarter way to work would be to put the workspace toolbar in each project so that you export only the segments of your videos, that you will use in your compilation. This will make you save a lot of editing later as well as save you have to work with big, huge you files use only short segments.

    The best way to do this depends on how you are going to publish your finished video. It goes to a DVD? BluRay? YouTube or another site online? Video to a portable device like an iPad?

    Each has its own workflow better.

  • Combine projects?

    I bought PE10 thinking recently Adobe would have resolved all the previous problems with break and short on memory system problems. What a mistake maybe? My projects tend to run 90 minutes or more, and I think it's which dislikes PE10. So, for example, I could split my project in project A, project, Project C B, etc. But if I do this how can I burn these projects on a DVD? Or is it just not possible?

    The problems of system resources is crashing and low are probably linked system. This ARTICLE is a list of control on getting before you run the best, then has links on the setting up of its computer and operating system. Finally, there are links on the troubleshooting, and several of the issues of memory/resources. Towards the end, there is a link on this info would be helpful to address the problems.

    Now, to change projects, just create a separate project for each segment. Once completed, the share of exports in DV - AVI. Next, create a new 'master' project, import is the DV - AVI, set up the Menu games and navigation and burn them on DVD.

    Good luck

    Hunt

  • ADFC-config navigation does not

    Hello
    I created the following navigation in the adfc - config.xml:
      <view id="partError">
        <page>/partError.jspx</page>
      </view>
      <view id="estimation-home">
        <page>/estimation-home.jspx</page>
      </view>
      <view id="estimation-chart">
        <page>/estimation-chart.jspx</page>
      </view>
      <control-flow-rule id="__9">
        <from-activity-id id="__10">estimation-home</from-activity-id>
        <control-flow-case id="__13">
          <from-outcome id="__14">fill-estimation</from-outcome>
          <to-activity-id id="__12">estimation-chart</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
    And I call the results as:
    <af:commandLink id="cl1" action="fill-estimation" partialSubmit="true" text="Test"/>
    But it does not work.
    If I set the navigation in the faces - config.xml:
      <navigation-rule>
        <from-view-id>/estimation-home.jspx</from-view-id>
        <navigation-case>
          <from-outcome>fill-estimation</from-outcome>
          <to-view-id>/estimation-chart.jspx</to-view-id>
          <redirect/>
        </navigation-case>
      </navigation-rule>
    This works. I can't find what I'm doing wrong. Any suggestions would be very helpful for me.

    Hello

    did you start the JSP file from the ADFc diagram or from the browser of the Application? The URL that launches should show the ADFc viewId not scoring '.jspx. If you see the JSPX document in the URL then you consume ADFc but JSF only

    Frank

  • Parameters to initialize context for a managed bean adfc-config file. XML

    Hello

    I posted a question on SO: http://stackoverflow.com/questions/14467013/context-initialization-parameters-for-managed-bean

    In fact, why the following works in faces - config.xml:

    < managed-bean >
    reportBean < managed-bean-name > < / managed-bean-name >
    ca.corp.report.view.OracleReportBean < managed-bean-class > < / managed-bean-class >
    application of < managed-bean-scope > < / managed-bean-scope >
    < managed property >
    > property name < reportServerProtocol < / property-name >
    java.lang.String < class property > < / class property >
    < value > #{initParam ['reporting.server.protocol']} < / value >
    < / the managed property >
    ...
    < / managed-bean >

    But does not work in adfc - config.xml?

    Thank you!

    Hello

    should work the same. If it isn't then it's a bug that should be filed against the latest version of the release of JDeveloper you use

    Frank

  • @EJB does not not for controlled in adfc-config beans

    using adf 11.1.1.3

    We have an application that uses the EJB (deployed on the WLS even our application). We notice that when we create beans controlled in the adfc-config and use the @EJB annotation to get an instance of the sessionbean, it does not work.

    The error we get is a simple nullPointerexception pointing to the EJB.

    When we register the bean in faces - config.xml, instead of the adfc - config.xml, we receive an instance of the EJB.
    I also have a nullpointerException when I add the bean managed a taskflow instead of the adfc-config.

    It is an example of the bean:
    public class HomeTest {
        
        @EJB
        MyService service;
        
        public HomeTest() {
        }
        
        public List getData(){
          return service.getSomedata();
        }
    }
    When I sign this adfc-config bean I get a nullpointer on service.
    When I join the bean in faces-config, it works.

    Hello

    I think that if the solution is then JSF supports this

    1. use @EJB in a managed bean added to a servlet (application session request) scope in faces-config. XML

    2. in the managed bean ADFc, use EL to resolve access to the bean managed in faces - config.xml and pass the handle of the EJB instance

    Frank

  • How to navigate a page (.jspx) to another (.jspx) using adfc-config. XML?

    Hi all

    I have a fundamental question on the use of adfc - config.Xml. Please clarify my doubt.

    In my application, I created 2 bouded ADF-task-flow, where each workflow contains one page fragments. Now, I created two pages (.jspx) and droped 1st task flow into the first page as a region and even I did in the 2nd page two.

    Now I navigate from page 1 to page two when I hit the next button in the fragment of the first page. The button's action method that returns the string "goNext. Please let me know how can I create the adfc-config.xml file navigation to navigate from the first page to the other. I could able to navigate without any isisue using the faces-config. XML via JSF Navigation box. But how do I do the same thing in adfc-config. XML? I tried like below, but he navigates to the next page when I hit the button.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="idm">
        <page>/app/idm.jspx</page>
      </view>
      <view id="userMgmt">
        <page>/app/userMgmt.jspx</page>
      </view>
      
      <control-flow-rule>
        <from-activity-id>idm</from-activity-id>
        <control-flow-case>
          <from-outcome>goNext</from-outcome>
          <to-activity-id>userMgmt</to-activity-id>
        </control-flow-case>
      </control-flow-rule>
    </adfc-config>
    Please correct my mistake. Also please clarify why not use the faces - config.xml for my navigation from page to page?

    Thank you
    KLN

    Although technically it might work, I find it always strange. Let go to the design Commission. What units functional (use case) do you have?

    -Find a user?
    -Manage a user (including the various option)

    If Yes, then, I would have 2 pages with 2 or 3 of the workflow
    -page1.jspx contains TF 1, pretty much like you, parent action allows you to navigate, although I would use to discover the url for browsing direct jspx;
    -page2.jspx contains 2 TF, yet once you have. Parent for the "previous" button action is ok, to change password, not so IMHO
    -Option 1: Put the change password in a workflow and call using a call to workflow (as dialogue or not)
    -Option 2: embed the logic of change of password in the user workflow management

    Kind regards

    ~ Simon

  • Can't redirect to another page when you use adfc-config. XML standalone WL

    Hi all
    I created an application very simple fusion, have only two pages jspx (View1 view2). I drag these two pages to the adfc-config file and created a flow control between these two pages (adfcView2).

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < adfc-config xmlns = "http://xmlns.oracle.com/adf/controller" version = "1.2" > +.
    + < id view 'View1' = > +.
    + < page > view1.jspx < / print this page > +.
    + < / view > +.
    + < id = "view2" view > +.
    + < page > view2.jspx < / print this page > +.
    + < / view > +.
    + <-flow-control rule > +.
    + View1 < of-activity-id > < / activity-ID-> +.
    < control-flow > box-+.
    + adfcView2 < from outcome > < / statement > +.
    + view2 < to-activity-id > < / activity-ID-> +.
    + < / control-flow-case > +.
    + < / flow control rule > +.
    + < / adfc-config > +.

    When I run the view1.jspx in the embeded WL, everything fine, can navigate between View1 and view2.

    But when I created an ear and deployed this ear to a standalone WL, View1 can be displayed correctly, but when I click a commandbutton control in View1, want navigator for view2, the page may not be redirected to view2 (always show view1.jspx). There is not an error msg in the WL Console.

    Have I missed anything for the taskflow application deployment? If I change the view controller of faces - config.xml not adfc - config.xml, all work fine.
    Any info is appreciated.

    Published by: harth on October 25, 2009 19:21

    Hi Harth,

    I suppose that you not run the jspx page view activity, check if your url contains .jspx page at the end. If so, execute the url without .jspx page at the end (which is the name of view id)

    For example:

    Give http://://faces/view1 instead of http://://faces/view1.jspx
    

    Jean Lou

    Published by: Marc Israel on October 25, 2009 20:00

Maybe you are looking for

  • If I restore my iPhone 6 s

    If I restore my iPhone 6 s, he removes my songs (not redeemed) I downloaded there? If so, is there a way to avoid that happening?

  • duplicates of iCloud and photo library

    Aloha! I activated iCloud only found out I have duplicates (X 4) of most of the images. Is there a way to remove duplicates and more go frame by frame? Mahalo!

  • Lock screen button

    How can I close my screen on hp 1302tx g6

  • face of unlocking not avilable in Xperia Neo V

    Hey Buddy, I am from INDIA, I update worm Android 4.0.3 (4.1.A.0.562) in my Xperia Neo V, but face unlock is not installed. PL help me how to install this application, Kind regards Suresh

  • HP probook 4310 s battery not charging

    I've been parchased HP probook battery before 4 months. But now he replied me that it does not load. The battery is not damaged. What are the alternatives?