ADF InputCompoBoxListOfValues without model

Hello

I want to use a combo box simple as part of my request for a list of the tasks of soa.

Is it possible to create a list of strings in simple table in a managed bean and synchronize the item values corresponding with the ADF drop-down list box?

All the solutions I found so far provide many options for configurations of the drop-down list by using a model box highly effort in the background.

However, I want to just view simple string values and manage these values in a list of my managed bean.

Someone know a more simple solution for this?

Thank you!

BR, Gustav

List optionList = new ArrayList();

Point SelectItem is new SelectItem ("code1", "Label 1");.

optionList.add (item);

Item = new SelectItem ("code2', 'label 2'");

optionList.add (item);

Item = new SelectItem ("code 3", 'label 3');

optionList.add (item);

...

Create a getter for optionList.

In your jsf page, use f: selectItem whith value attribute that points to this list.

Tags: Java

Similar Questions

  • Is it possible to install weblogic 12 c with ADF runtime without using the utility schema RCU?

    Hello

    I am currently developing 'Fusion ADF Web Application' in JDev 12.1.3 and I want to install standalone WLS 12.1.3 to run this application.

    The installer asked me to configure RCU when I select Oracle JRF. Is it possible to install WLS 12.1.3 with Oracle JRF/ADF Runtime without repository?

    -Arni Thor

    Duncan Mills bloged zbout how to install a stand-alone wls without running rcu here https://blogs.oracle.com/groundside/entry/setting_up_a_standalone_weblogic

    Timo

  • Where can I find the oracle.adf.view.faces.model.UploadedFile

    Using JDeveloper 11.1.1.4.0

    Where can I find the jar containing the oracle.adf.view.faces.model.UploadedFile, or has she been depricated? The trinidad version changes the name of file, eliminating the way she. I hope that the version of Oracle does not. If the Oracle version is not available, is there a way to keep the full path in the version of the Trinity?

    Thank you
    Troy

    I've written a series of blog on file handles lately. Part 2 http://wp.me/pcBZk-bi has a working example.

    Timo

  • ADF popup without closing the

    Hello
    I'm working on Oracle Jdeveloper 11 g Release 1.

    I've included a popup beside my page jspx parent for help:
    <jsp:include page="/core/gccompliance/library/packages/complianceStandards/AddStandardToPackage.jspx"/>
    Jspx code is as below:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:c="http://java.sun.com/jsp/jstl/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <c:set var="coregccomplianceuiBundle"
             value="#{adfBundle['oracle.sysman.core.gccompliance.view.CoreGccomplianceUiMsg']}"/>
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <af:resource type="javascript">
        /** * Shows the popup dialog **/
        function showAddCSDialog()
        {
            var popup = AdfPage.PAGE.findComponent("addCsDialog");
            popup.show();
        }
    
        function folderBtnListener()
        {
            var popup = AdfPage.PAGE.findComponent("addCsDialog");
            popup.hide();
        }
      </af:resource>
      <af:popup id="addCsDialog" contentDelivery="lazyUncached">
        <af:dialog modal="true"
                   title="#{coregccomplianceuiBundle.INCLUDE_COMPLIANCE_STANDARD}"
                   id="addCS1" closeIconVisible="false" styleClass="AFStretchWidth"
                   dialogListener="#{pageFlowScope.packages_libraryBean.handleAddStandardToPackage}"
                   contentWidth="900" contentHeight="350" type="cancel">
          <af:panelGroupLayout id="includeCS2" layout="vertical">
              <af:query id="addcss"
                          headerText="#{coregccomplianceuiBundle.COMPLIANCE_SEARCH}"
                          value="#{bindings.CSSelectorForPackageVOCriteriaQuery.queryDescriptor}"
                          model="#{bindings.CSSelectorForPackageVOCriteriaQuery.queryModel}"
                          queryListener="#{bindings.CSSelectorForPackageVOCriteriaQuery.processQuery}"
                          queryOperationListener="#{bindings.CSSelectorForPackageVOCriteriaQuery.processQueryOperation}"
                          resultComponentId="::cst1" rows="3" maxColumns="2"
                          saveQueryMode="hidden" disclosed="false"/>
              <af:table value="#{bindings.CSSelectorForPackage1.collectionModel}"
                        var="row" rows="#{bindings.CSSelectorForPackage1.rangeSize}"
                        emptyText="#{bindings.CSSelectorForPackage1.viewable ? coregccomplianceuiBundle.MSG_NO_DATA_DISPLAY : coregccomplianceuiBundle.MSG_ACCESS_DENIED}"
                        fetchSize="#{bindings.CSSelectorForPackage1.rangeSize}"
                        styleClass="AFStretchWidth"
                        binding="#{pageFlowScope.packages_libraryBean.includeCsTable}"
                        selectionListener="#{bindings.CSSelectorForPackage1.collectionModel.makeCurrent}"
                        rowBandingInterval="0"
                        rowSelection="multiple" id="cst1"
                        columnStretching="column:resId1c2"
                        summary="#{coregccomplianceuiBundle.PACKAGE_INCLUDE_CS_SUMMARY}"
                        contentDelivery="immediate">
                <af:column id="csSelehdr" width="10" rowHeader="true"/>
                <af:column sortProperty="CsDname" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.CsDname.label}"
                           id="resId1c1" rowHeader="true" align="left">
                  <af:outputText value="#{row.CsDname}" id="ot1"/>
                </af:column>
                <af:column sortProperty="Description" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.Description.label}"
                           id="resId1c2">
                  <af:outputText value="#{row.Description}" id="ot6"/>
                </af:column>
                <af:column sortProperty="TargetType" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.TargetType.label}"
                           id="resId1c3">
                  <af:outputText value="#{row.TargetType}" id="ot5"/>
                </af:column>
                <af:column sortProperty="LifecycleStatus" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.LifecycleStatus.label}"
                           id="resId1c4">
                  <af:outputText value="#{row.LifecycleStatus}" id="ot4">
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.CSSelectorForPackage1.hints.LifecycleStatus.format}"/>
                  </af:outputText>
                </af:column>
                <af:column sortProperty="Author" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.Author.label}"
                           id="resId1c5">
                  <af:outputText value="#{row.Author}" id="ot3"/>
                </af:column>
                <af:column sortProperty="CsType" sortable="false"
                           headerText="#{bindings.CSSelectorForPackage1.hints.CsType.label}"
                           id="resId1c6">
                  <af:outputText value="#{row.CsType}" id="ot2">
                    <af:convertNumber groupingUsed="false"
                                      pattern="#{bindings.CSSelectorForPackage1.hints.CsType.format}"/>
                  </af:outputText>
                </af:column>
              </af:table>
            </af:panelGroupLayout>
          <f:facet name="buttonBar">
            <af:group id="g15b">
              <af:commandButton text="#{coregccomplianceuiBundle.OK}" id="addcsokb"
                                partialTriggers="cst1"
                                actionListener="#{pageFlowScope.packages_libraryBean.handleAddStandardToPackage}"
                                partialSubmit="true"/>
            </af:group>
          </f:facet>
        </af:dialog>
      </af:popup>
    </jsp:root>
    When I click on the ok button the listener action {pageFlowScope.packages_libraryBean.handleAddStandardToPackage} is called running a bussiness logic and then call the script method java folderBtnListener() you jspx.
    The action listener code is:
        public void handleAddStandardToPackage(ActionEvent ae)
        {
            handleAddStandardToPackage();
            addScript("folderBtnListener();");
        }
    
        public void addScript(String script)
        {
            FacesContext fcxt = FacesContext.getCurrentInstance();
            Service.getRenderKitService(fcxt,
                                        ExtendedRenderKitService.class).addScript(fcxt,
                                                                                  script);
        }
    But when I click on ok the bussiness logic is well executed but the popup does not get closed. I have to click the Cancel button to close.

    Can anyone suggest what Miss me in my code?

    Hello
    Have you tried with autoCancel property of popup
    See

    http://docs.Oracle.com/CD/E23943_01/apirefs.1111/e12419/tagdoc/af_popup.html

    Or you must link the popup to Bean and then use
    RichPopup.hide ();
    See

    How to close a popup

  • ADF: Creating DataControl model POJO

    Hello
    I'm new ADF, I created the simple java code model ADF (Jdeveloper 11.1.1.1) and exposed as a DataContol (javafile right-click-> create a Data control). JDeveloper creates Datacontrol and XML file (HelloWorld.xml).

    for the same code I did in Jdeveloper 11.1.2.1 but it create DataContol but not HelloWorld.XML, why is this?
    due to this i clould not add the suspicion and the ToolTip...

    Can anyone tell what's wrong with that?

    Here is the code

    public class HelloWorld {}
    public String hello (String name) {}

    Return "Hello" + name;
    }
    }

    Thank you
    Nidhi

    exactly, I want to use the property as indicators of control and validation and all, but here, the document having not details like "how choose Create a bean xml file.

    You can open the DataControls.dcx file, expand the nodes and click Change (pencil) icon to generate it too.

    Arun-

  • Print without model

    Andy,

    Continue on my question on thread: creating a free form report, the problem with the impression that the browser is the model will appear. I have 15 theme and two-legged level. All my readings seem to tell me that I need to install BI publisher or XSL - FO for printing the form formally. If this is not the case, what I do to print without the model showing?

    Thank you
    Yivon

    Hi Yivon,

    If you go to the components shared, themes and click on change the theme (in the task list on the right) and choose your theme, you will see a section called "component Defaults. In there, offers a framework for printer Printable Page. The model shown it is one that will be used when you add the YES at the end of the URL parameter. This is usually simply called 'Printable Version '.

    If you want, you can create your own Printable Version page, but the default should normally be ok with a slight adjustment. If you go to this page template, you will see that things like the tabs are not defined but is add a #NAVIGATION_BAR # setting somewhere (see below).

    Now for the printing options and back.

    Very often, the impression is a Navigation list item. Access shared components, the Navigation bar entries. Click on create. Give the new element, a number sequence and a value to print text, and then click Next. Let the Type of target as a "Page in this application. Set the value Page at & APP_PAGE_ID. (which is the current page) and check the box print version. Click Next, and then create. You can create the option Back in exactly the same way, except that you leave the box checked.

    Each item in the navigation bar can be displayed conditionally based on the value of an element of PRINTER_FRIENDLY application that maintains the Apex for you. The value of this will be YES or no. Just use the "value of element in the Expression 1 Expression 2 =' condition and put PRINTER_FRIENDLY in 1 Expression and either YES or NO in Expression 2. No parameters should use quotes.

    Now you must make sure that the navigation list is displayed on the page Printable Version template. It must be done at a location near the upper part of the body on the model setting. How depends on your theme. For example, using the theme 3, I changed the start of the body of:

    <table summary="" cellpadding="0" width="100%" cellspacing="0" border="0">
    <tr>
    <td valign="top">#LOGO##REGION_POSITION_06#</td>
    ... etc ...
    

    TO:

    <table summary="" cellpadding="0" width="100%" cellspacing="0" border="0">
    <tr class="navrow"><td colspan="3" valign="top" align="right" class="t3NavBar">#NAVIGATION_BAR#</td></tr>
    <tr>
    <td valign="top">#LOGO##REGION_POSITION_06#</td>
    ... etc ...
    

    This adds a new line to the top of the TABLE of the body tag. Note that I gave you this line a class name of "navrow.

    Now, we can use a special feature of CSS styles. All styles can be created to be used only when the object is called is displayed on screen or sent to the printer, or both (which is the default, of course).

    As part of header, after the string of #HEAD #, we can add to the hairstyle only printer to the class 'navrow:

    ... everything above #HEAD# ...
    #HEAD#
    <style type="text/css" media="print">
    .navrow {display:none}
    </style>
    </head>
    ... everything after </head>
    

    Now, when the page is being printed, all on the shipping line is hidden.

    I did it on this page: [http://apex.oracle.com/pls/otn/f?p=41075:1]

    Andy

  • How to make PanelPage ADF as a model

    Hello


    IM Harry this is my first post.

    I want to know how to be model PanelPage.

    So when I drag the component PanelPage, they already have my company logo as a header, the name of the application as the title. etc...

    How can I do?

    Was the answer that Frank and I provided unclear?
    Read this: http://biemond.blogspot.com/2008/06/adf-faces-templating-in-1013.html

    Maybe you should ask your friend why he thinks that CSS will solve your problem?

  • ADF Custom without extending skin

    Hi all

    JDeveloper 11.1.2.4.0

    We have a chart & UX designer looking at our ADF applications.

    He wondered if it is possible to create a new skin of the ADF, but not based on any existing skin.

    He is wasting a lot of time to the substitution of existing parameters, it uses simple as skin < extends > for now.

    Remove extends it tag, folds on the default skin (= Simple), adding an empty < extends / > tag, also falls to the default.

    How can we create a skin that starts from scratch?

    THX.

    Filip Huysmans

    Hello

    the absolute basics that you always - use as you acknowledged - is simple skin. We cannot change what is coded in setting Apache MyFaces Trinidad, which is the basis of ADF Faces. If you can not change anything

    Frank

  • Select the value in the drop-down list ADF/JSF without command button

    Hello

    My request is constructed using ADF and JSF (and JDev 10.1.3) and the form of a table with 2 drop downs. When the user selects a value in the first descent down, the program should go to the database and extraction of valid values for the second drop-down list. This is the case on the selection of the value in the drop-down and the user should not be required to click on any button command like 'Go' or ' Submit'

    I'm new to JSF/ADF. How to get there? Any body there the code examples for this?

    Thank you

    http://tinyurl.com/ygnvl87 :D

    John

  • How to use MDS without activating the safety of the ADF?

    Hi all

    1. I want to apply MDS in my ADF application without implementation of the safety of the ADF.
    2. I have two users (User1 and User2) and their password (eu1 and welcome2) in the database table.
    3. I have a table surrounded by panelCollection, where I'm going to change the positions of the column.
    4. When User1 login, it changes the order of the columns, then he logout. Next time when User1 connection once again, it should be able to see the changes that he done it before at a previous session.
    5. However, the changes should not be there when User2 login.

    Please suggest how I can get this feature.

    Thank you and best regards,

    Susanto Paul

    Hello

    Try to check this URL

    http://Sameh-Nassar.blogspot.IE/2012/03/apply-MDS-to-Oracle-ADF-application.html

  • API to create a Virtual Machine without using a model

    I see the GUI documentation how to create a virtual machine without a model, but I can't find the actions of the API how to build the virtual machine based on custom settings (CPU, memory, OS, etc.), there are a only of the shares how instantiate OVF or vAppTemplate. Could you please tell is possible to generate/create the VM without model or OVF by API?

    I see. Thanks for the background.

    Based on my notes there is no such API. Other applications were similar to this one and the solution suggested in this case is to programmatically create an OVF (describing the configuration of the VM to instantiate) and import it into the vDC. The end result is the same (i.e. an empty VM configured by entries) the difference is how it gets instantiate (created from zero Vs described in the OVF and imported).

  • Basic ADF without any IDE application

    Hello

    I want to create a very simple page with ADF but without JDeveloper or any other IDE (eclipse even no).
    Later, I want the same deployment on tomcat server. As we do so using servlets or JSF.

    Is it possible to create all the structures of directories and files manually using simple Notepad and then run this application ADF of the tomcat server?

    Sushant-

    It's pretty simple at the end of the day:
    You have an XML file that describes a data control (now optional in 11g R2)
    An XML file that describes all the data controls (datacontrols.dcx)
    An XML file that describes the data controls are used in a JSF (xxxxpagedef.xml) page
    An XML file that lists all the data controls, pagedefs and the pages in your web application (databinding.cpx)

    Play with a simple POJO and exposed as a data control might give you a better understanding also.
    Something like this:
    https://blogs.Oracle.com/Shay/entry/java_class_data_control_and_ad

  • ADF - Ebusiness suite integration

    Hi Experts,

    I followed Note 974949.1 for the integration of my request for 11 g ADF with Oracle Ebusiness suite 12.1.3:

    1 AppsDataSource, has created and able to access the database data.

    2 the security field created with ExtAuthenticator

    3. has created custom roles UMX and assigned to users / responsibilities.

    4. set the external profile ADF URL option.

    5. configure the ADF with ADF security enforcement, create business for UMX roles roles.

    Now I am able to join the ADF page with a function ADFX to a menu with responsibility for E-business suite. When I click on this function, it takes me to my page ADF, but he asked me to name new user password (I tried all types of ADF security - basic, Digest, etc.). If I give a password valid ebusiness suite user name, it shows me my page else not. So it of using eBusiness suite as authenticator, but do not provide no not me alone signed.

    Can you please suggest how to achieve? Just to inform, we do not have license for Oracle Access manager etc... so please notify, if possible using the ADF, Ebiz SDK for Java or with a coding security?

    Kind regards

    Ricky

    Hi Ricky,.

    If the condition is to have a seamless integration between EBS and ADF application (without inviting the user to enter the credentials again), you can get the use of the "integration of shared Session.
    You will need to implement your ADF phaselistener that interacts with the module of the Application root to set the session of the ADF.
    You can find more details in "http://www.oracle.com/technetwork/tutorials/ebs-sdk-best-practices-1887169.pdf".

    Thank you

  • Caching of javascript ADF libraries

    Hey,.

    Currently we are cached our files css and js custom Apache (for X hours) level.

    We do this based on the path (which is < path > /style/ < other directories >) and it works fine.

    Now my question is can we do for specific js libraries 'internal' ADF (located in adf/jsLibs /) without breaking all the features?

    JDev 11.1.2.3.0 (which runs from 11.1.2.4.0 at the end of the year)

    Instead of ADF faces using myFaces

    You don't need to do anything, ADF implements cache internal javascript and CSS styles automatically during about a year.

  • [ADF, JDev12.1.3] Method in AM that returns a ViewRowImpl object. How...?

    Hallo,

    I need to create a method in the Module of the Application that returns a ViewRowImpl object.

    I want to call this method to a bean that will consume the returned line.

    I ask if this is possible, since in the AM configuration I don't see my method to expose it to the customer.

    What's wrong?

    Thank you

    Federico

    What's wrong?

    Documentation: https://docs.oracle.com/middleware/1213/adf/api-reference-model/oracle/jbo/server/ViewRowImpl.html

    "Client applications should not access this class on the client tier of an application. Instead, the Row interface must be used for access to the client tier. »

    In general, if you can use the class interface or application in a certain part of the code, always use interface.

    Dario

Maybe you are looking for

  • 2nd AppleTv same problem...

    OK gang, so wife buy me an AppleTV for our anniversary 06/06/16 Yesterday, I'll install (28/06/16) and it connects to my wifi, says that my wifi is not connected to the Internet. The * you say... so... I try again, and this time keeps spinning, spinn

  • Instant Messaging help

    The text of my instant messaging does not completely show. The words are cut off from the left and the lower half of the letters do not arise. I tried uninstalling and reinstalling, but it did not help. Any suggestions? I have Windows 7.

  • Podcast shows no changes. .

    Hello I completely redid my rss.xml file after learning the 'Feed Validator"thanks to a previous post, that I ran. After establishing a large NUMBER of errors and adding things like "Description" & "titles" (how the old XML already worked I'll never

  • error 1003 crio 9114

    Hello IM runninng a LV recently installed 14, on a Windows 7, 64-bit, with a crio 9114, RT and FPGA. I migrated a project from another computer with a similar system, installed moudles Lv and RT and FPGA, andDevice pilots.All elements of project in t

  • I'm locked out of windows

    When you turn on the computer, what don't need me name of user and password I have no idea what it could be, I think one of my kids maybe did it unknowingly. What can I do? so confused