SelectOneChoice element.

Hi! I have selectOneChoice element in my form. When I choose value, I can see option "More...", please see: http://my.jetscreenshot.com/2677/20110829-w7fv-12kb
How can I remove it?
Best regards, Debuger!

i guess its posible using skinning.. chk
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/skinningKeys/inputComboboxListOfValues.jspx
chk this
af|inputComboboxListOfValues::search http://jdevadf.oracle.com/adf-richclient-demo/docs/skin-selectors.html
jsut chk how to create skinning here
Re: How to make panelHeader title to be in Red color.

Similar Messages

  • Update a text field based on a SelectOneChoice field

    Hi,
    I have a set of Create, Confirm and Thankyou screens. These screens are bound to a global view object. The create screen has a SelectOneChoice element which allows the user to pick an employee. When the selection is made, I need to display the employee's department in a read only text field below the dropdown. The Employees list(SelectOneChoice) is associated to the read only view object and this view object also has the employee's department information. Im dont know how to set the department name in the text field and refresh the screen. Any help is appreciated. Thank You.

    Frank, thanks for you time. Please see my answers below.
    Hi,
    can you help me creating a reproducable testcase
    based on the HR schema where we have a Departments
    and Employees tables. To understand your usecase I
    have some questions:
    Im not too familiar with HR Schema.
    >
    First of all however, what is a "global view object",
    and is it safe to assume you are using ADF Business
    Components?
    Its the "Globals View Object" as described in the SRDemo for creating a new Service Request and yes I am using ADF Business Components.
    >
    Which version of Oracle JDeveloper do you use ?
    10.1.3
    >
    The usecase I understand is that you have a
    selectOneChoiceList that whenever you select a new
    name should update a read-only text field with the
    department name. Is this correct ? Or is there more
    in it ?
    Heres the complete description. There are 4 fields on the screen
    1. Program Name (text input field, - required field)
    2. Program Category (SelectOneChoice field - required field)
    3. Employee Name (SelectOneChoice field - required field)
    4. Employee Department (Text output field - based on 3 above)
    What you have described above is working for me now, but everytime I select a value for 3, it does the required fields check and gives a message like "1 & 2 are required and a value must be entered", this validation should only occur when my continue button is clicked.
    >
    The department name should be displayed only (read
    only), or is it also bound to what you call "global
    view"?
    Yes its read only but I need to bind to the Globals view as I need to display it in the confirmation screen.
    >
    Also, just to be sure, is the department name part of
    the VO or is it the departmentId?
    The screen is bound to the Globals View, the selectOneChoice values are displayed from another view(EmployeeList view) which has the department name.
    >
    Frank

  • Two SelectOneChoice problem

    Hi
    I am using TopLink for a web application-
    I have a page wich contains two selectOneChoice elements. The items for both are from the same table, but with some diferential criteria.
    For each selectOneChoice i have its own methodAction, methodIterator and list of values, but both methodAction calls the same finder in the SessionFacade with differente criteria.
    I have checked the values that are returned from the query execution and they are ok, so i asume that both lists are filled with the correct data.
    The problem is that when the page is displayed, both selectOneChoice have the same items. I have noticed that the items that are displayed are those from the methodIterator that is placed last in the pageDefinition
    How can i fix this ?
    Thanks

    Hi,
    I assume that both select one choices are bound to teh same iterator (see the pageDef file that contains the methodIterator entry). This means that though you call the method independently and you have separate bindings, they share the same collection.
    Create a second iterator manually and point the source of it to the session method you want to execute. Edit one of the select one bindings to use the new iterator (see the properties for this).
    This should solve the issue. Let me know if not
    Frank

  • SelectOneChoice display label

    Hi,
    Can anyone tell me how to influence which attributes are used to create the display text for a selectOneChoice element?
    I have a dropdown box to choose the gender of a person (the forum censors the word Sex?!). My page source looks like:
    <af:selectOneChoice value="#{bindings.Gender.inputValue}"
                        label="#{bindings.Gender.label}"
                        required="#{bindings.Gender.hints.mandatory}"
                        shortDesc="#{bindings.Gender.hints.tooltip}"
                        id="soc1">
        <f:selectItems value="#{bindings.Gender.items}" id="si1"/>
    </af:selectOneChoice>with page binding:
    <list IterBinding="MyIterator" StaticList="false" Uses="LOV_Gender" id="Gender" DTSupportsMRU="true"/>At present, because I have two attributes on the LOV, i get labels like:
    M Male
    F Female
    When I actually just want to show one of these (not really bothered which).
    I've tried both of the methods described here:
    http://java2go.blogspot.com/2007/08/mastering-adf-faces-component.html
    But the first has no effect (adding AttrNames child element in binding and specifying only one of the attributes) and the second doesn't seem to be possible any more (af:forEach tag is not allowed as a child of selectOneChoice).
    I've tried the UI Hints on the GengerLOV object but they also seem to have no effect. What's the recommended way to do this?
    Cheers

    Hi,
    It should work fine, if you have selected only one attribute in UI hints for GenderLOV. Please re-check if you have multiple attributes selected or only one attribute selected.
    Also, In the source view of the view object, check the ListBinding and its display attributes to make sure the view object source is updated correctly.
    ListBinding for LOV_Gender should be something like:
    <ListBinding
    Name="LOV_Gender" .. >
    <AttrArray Name="ListDisplayAttrNames">
    <Item Value="Gender"/> <!-- make sure only one item is available-->
    </AttrArray>
    </ListBinding>
    Sireesha

  • Programmatically Built selectOneChoice

    Hiiii,
    I have a selectOneChoice element which is filled up programmatically with values not based on View Objects, I am trying to get the selected value also programmatically, but I am facing a problem. Can anyone help?
    Message was edited by:
    RJundi
    Message was edited by:
    RJundi

    I think statlist stands for static list, which contains all the values visible in the selectonechoice, defined in a bean.
    I made a small example, this really should work:
    1. I created a bean which stores:
    - the static values
    - the selected/submitted item
    import java.util.ArrayList;
    import java.util.List;
    public class MyBean {
    private String myAttribute;
    private List myList;
    public MyBean() {
    myList = new ArrayList();
    this.myList.add("EJB");
    this.myList.add("ADF BC");
    this.myList.add("TOPLINK");
    public void setMyAttribute(String myAttribute) {
    System.out.println("setMyAttribute: " + myAttribute);
    this.myAttribute = myAttribute;
    public String getMyAttribute() {
    System.out.println("getMyAttribute");
    return myAttribute;
    public void setMyList(List myList) {
    this.myList = myList;
    public List getMyList() {
    return myList;
    2. On the jspx page I iterate over the list and set the current string as label and as value:
    <af:selectOneChoice value="#{myBean.myAttribute}"
    label="Technologies" autoSubmit="true">
    <af:forEach items="#{myBean.myList}" var="li">
    <af:selectItem label="#{li}" value="#{li}"/>
    </af:forEach>
    </af:selectOneChoice>
    autoSubmit is set to true and the value of the submitted choice is stored in the myAttribute variable from the myBean bean.
    I hope you succeed implementing this example, if not, feel free to ask.
    Regards,
    Koen
    ps: what's the ubb code to show colors in my java,sql, .. example code?

  • Search on DateFields

    There seems to be a problem on searching on date fields.
    I have a dropdown list which selects dates from a table. Both the lookup and the field that the value is returned into are both of type Date set on the VOs.
    When the date dropdown is selected in the search the following problem happens.
    Always returns no rows as there appears to be an error when the query string is attempting to be processed.
    Class= QueryCondition.java
    Method = getQueryValue
    queryValue = value;
    if (isDate())
    DateFormat df = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
    queryValue = df.format((java.util.Date)value); --causes exception
    return queryValue;
    12:48:41 DEBUG (JhsApplicationModuleImpl) -executing advancedSearch for XXSessionPaperQuestionsVO
    Source breakpoint occurred at line 219 of QueryCondition.java.
    12:49:25 ERROR (JhsApplicationModuleImpl) -oracle.jbo.domain.Date
    Please can someone advise if this is a bug or if im missing something.
    Here is the query that get built up as a result of the error being raised
    LECT * FROM (SELECT XXSessionPaperQuestionEO.XS_SESSION_DATE,
    XXSessionPaperQuestionEO.PPV_ID,
    XXSessionPaperQuestionEO.QUESTION_NUMBER,
    XXSessionPaperQuestionEO.VAR_ID,
    XXSessionPaperQuestionEO.MCQ,
    XXSessionPaperQuestionEO.ALLOWABLE_MARK,
    XXSessionPaperQuestionEO.MCQ_CORRECT_ANSWER,
    XXSessionPaperQuestionEO.COMPULSORY,
    XXVariantEO.ID AS VARIANT_ID,
    XXVariantEO.VARIANT_CODE,
    XXVariantEO.VARIANT_TYPE
    FROM XX_SESSION_PAPER_QUESTIONS XXSessionPaperQuestionEO, XX_VARIANTS XXVariantEO
    WHERE XXSessionPaperQuestionEO.VAR_ID = XXVariantEO.ID
    ORDER BY XXSessionPaperQuestionEO.XS_SESSION_DATE,
    XXSessionPaperQuestionEO.QUESTION_NUMBER) QRSLT WHERE ( ( (TO_CHAR( XS_SESSION_DATE, 'yyyy-mm-dd') = 'null') ) ) AND PPV_ID = :Bind_Id
    Message was edited by:
    mclaucm

    Can you try adding the following element as a child of your af:selectOneChoice element used to display the dates:
    <af:convertDateTime pattern="#{nls.datepattern}"/>
    If that works, you can create a custom template for your dates drop down list to keep your page generatable.
    Steven Davelaar,
    JHeadstart Team.

  • How to intercept clickToEdit action in af table?

    Hello,
    I am using EditingMode: clickToEdit in af table.
    The functionality i am trying to achieve is when user clicks on table row then he can change some values. It is straight forward.
    What is tricky is that i am looking to show LOV (af:selectOneChoice) in one of the attribute and the selection should depend on other attribute's value.
    For example I have columns A and B.
    if A value equals to 1 then B should show LOV only with selection of values 10,11,12
    if A value equals to 2 then B should show LOV only with selection of values 21.22.23 etc. (this is simplify example in real it is more complected and LOV is depend on different parameters so harcoding different af:selectOneChoice elements and rendering only one is not the option - only dynamic LOV)
    So depending on what row user clicks column B should show different list of values.
    I am dancing around to find how to intercept clickToEdit action so i can dynamically change list of values - meanwhile unsuccessfully. The option is to create special popup for editing a row - but somehow i want to avoid this.
    Any suggestions?

    Hi,
    I think the problem is talking about cascading LOV. You don't need to intercept clickToEdit action.
    You can search by google : "cascading LOV ADF"
    It will solve your problem.
    Thanks.
    - LSR

  • [SOLVED] Autosubmit, ValueChangeListener & DB PKs

    Hi there,
    I have a creation page, with some components having their (Autosubmit) property to (True), applying some actions with (ValueChangeListener) property. The problem is that when autosubmit fires, it looks like it reserves a row in the DB (without) commit, so when I finish entering all data and trying to save record, i face an error that the primary key is already defined (too many objects for the primary key), and if I try to modify its value to another one, then I errors dissappear, but with two records saved in the DB.
    So?
    Message was edited by:
    RJundi

    Ok, i have already compared the inserted values with the DB, and there is no problem.
    The page contains a set of dependent selectOneChoice elements with autosubmit euals to true and valueChangeListener retrieves Parameters (values) of each to re-populate the below selectOneChoice elements.
    I figured out to stop the Validation messages for required fields, but the problem is that when trying to save, it raises an error that there are too many objects for the primary key field, and if I try to alter its value only and then save again, I find that two records are saved, one for the first value and another one for the second value.
    Thanks in prior
    RJundi

  • Nonselectable element in selectOneChoice

    Hi Experts,
    Any idea how to create a selectOneChoice component with one of the items as not Selectable and of diff style in Jdev 11.1.1.5
    for Eg : lets assume this is the list to be displayed in the list
    Country
    Asia
    India
    Pakistan
    SriLanka
    Middle East
    UAE
    KSA
    Qatar
    Africa
    Algeria
    Angola
    Benin
    In this case what ever is in BOLD should not be selectable and should be bold in the list when displayed. As of now i have not decided how the list will be populated as i am depending on the answer.
    please advise.
    thnks

    some solution i use a location treemodel bindings
    and location id in department vo
    <af:selectOneChoice value="#{bindings.LocationId.inputValue}" label="#{bindings.LocationId.label}"
    required="#{bindings.LocationId.hints.mandatory}"
    shortDesc="#{bindings.LocationId.hints.tooltip}" id="soc1">
    <af:forEach items="#{bindings.CountriesView1.children}" var="departments">
    <af:selectItem label="#{departments.CountryName}" disabled="+your condition+"/>
    </af:forEach>
    </af:selectOneChoice>

  • Bind the output data (Xml) from BPEL process to ADF SelectOneChoice Control

    Hello,
    My requirement is to invoke a BPEL process from ADF page and display returned results in a select one choice (drop down box).
    I have created a Data Control for the BPEL process through Web service data control and tried to invoke the BPEL process. I could see from the BPEL console that BPEL process is getting invoked. But the ADF doesn't bind any of the output to Select one choice.
    It doesn't even show any error.
    Can you plz help me how to bind the output of the BPEL process to ADF SelectOneChoice control.
    The Xml Which I recieve from BPEL process is
    <outputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><DBConnectDemoProcessResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/DBConnectDemo">
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>1</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Assigned</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>2</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Pending</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>3</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Closed</toStatus>
    </StatusTrans>
    <StatusTrans xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/DBSelect">
    <transId>4</transId>
    <fromStatus>Open</fromStatus>
    <toStatus>Cancelled</toStatus>
    </StatusTrans>
    </DBConnectDemoProcessResponse>
    </part></outputVariable>
    And the toStatus node values viz, Assigned, Pending, Closed, Cancelled should get binded to the SelectOneChoice control
    Waiting for your valuable inputs,
    Regards,
    babloo.

    I have been still trying for the solution. I have modified the XSD created by the jdeveloper to,
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/StateTransitions"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="StateTransitionsProcessRequest">
              <complexType>
                   <sequence>
                   <element name="input" type="string"/>
                   </sequence>
              </complexType>
         </element>
         <element name="StateTransitionsProcessResponse">
              <complexType>
                   <sequence maxOccurs="unbounded">
    <element name="stateChanges">
    <complexType>
    <sequence>
    <element name="fromState" type="string" />
    <element name="toState" type = "string" />
    </sequence>
    </complexType>
    </element>
    </sequence>
              </complexType>
         </element>
    </schema>
    And I have given this XSD url while creating the Web Service Data Control by deploying it into the Oracle App server.
    So, I can see the tree structure of "Return" as "StateTransitionsProcessResponse->StateChanges->toState,fromState"
    I have binded the toState field of the Data Control to the SelectOneChoice ADF control in a jspx page by using List binding editor.
    I have selected,
    Base data source as "Variables" (Currently I don't need to update any table),
    List Data source as "process: getStateTransitions.process.StateTransitionsProcessResponse.stateChanges" (Web Service Data Control)
    Base Data source attribute as "process_input"
    List Data Source Attribute as "toState"
    I can initiate the web service (BPEL process) by providing the necessary input value like 'Open' or 'Pending' or 'Assigned' but the SelectOneChoice control doesn't populate with any values.
    Waiting for valuable inputs!
    Thanks and Regards,
    babloo.

  • OutputLabes, values in selectOneChoice are appearing twice in the jspx page

    Hi All,
    In a Jspx Page, there are two menu tabs. Each Tab has a PanelForm and each panelform has certain components.
    By default the first panelform in the first tab will be shown on page load and while clicking on second tab, the second panelform will be shown.
    The first panelform has three selectonechoices and three command buttons.
    If i click on reset button, these 3 selectonechoices are set to null by backing bean.
    Here comes the problem, after clicking on reset, if you click on second tab where the second panel form available, certain components like outputLabel and the values in selectOnechoice, are appearing twice on the page.
    Can anyone suggest me how to get rid of this problem..
    Here is my Jspx Page..
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:loadBundle basename="GeneralAdmin" var="gadmin"/>
    <f:loadBundle basename="HoldCapabilites" var="holdc"/>
    <f:view>
    <afh:html>
    <afh:head title="editManualProfileAttributes">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <script type="text/javascript">
    function cancel() {
    var flag = false;
    flag=window.confirm('You want to discard the entered data');
    return flag;
    </script>
    </afh:head>
    <afh:body>
    <af:messages/>
    <h:form>
    <afh:tableLayout>
    <afh:rowLayout width="100%">
    <jsp:include page="/jsps/webutils/template/header.jsp"/>
    </afh:rowLayout>
    <afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:menuPath>
    <af:commandMenuItem text="#{gadmin.admin}" action="adminHome"/>
    <af:commandMenuItem text="#{gadmin.epaAttr}" selected="true"/>
    </af:menuPath>
    </afh:rowLayout>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="20"/>
    </afh:rowLayout>
    <afh:rowLayout halign="center" valign="bottom">
    <afh:cellFormat width="20%" height="20px" valign="bottom">
    <af:menuTabs>
    <af:commandMenuItem text="#{gadmin.epAttr}"
    action="#{EditManualProfileAttributes.firstTab}"
    binding="#{EditManualProfileAttributes.commandMenuItem2}"
    id="commandMenuItem2"/>
    <af:commandMenuItem text="#{gadmin.auditHistory}"
    action="#{EditManualProfileAttributes.secondTab}"
    binding="#{EditManualProfileAttributes.commandMenuItem1}"
    id="commandMenuItem1"/>
    </af:menuTabs>
    </afh:cellFormat>
    <afh:cellFormat styleClass="bottomLine" width="80%"
    height="20px" valign="bottom">
    <af:objectSpacer height="1" width="1"/>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="100%" height="10"/>
    </afh:rowLayout>
    <af:panelForm id="panelForm1" width="100%"
    binding="#{EditManualProfileAttributes.panelForm1}">
    <afh:rowLayout width="100%">
    <afh:cellFormat width="15%">
    <af:outputText value="#{gadmin.mpAttr}"
    inlineStyle="font-family:Arial; font-size:9.0pt; font-weight:bold;"/>
    </afh:cellFormat>
    <afh:cellFormat width="85%">
    <f:verbatim>
    <hr align="left"
    style="border-width:2.0px; color:rgb(219,238,243);"/>
    </f:verbatim>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="20"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="5%"/>
    <afh:cellFormat width="15%">
    <af:outputText value="#{gadmin.refName}"
    styleClass="outputText"/>
    <af:outputText value=" * "
    inlineStyle="font-size:10.0pt; font-family:Arial; color:rgb(255,0,0);"/>
    </afh:cellFormat>
    <afh:cellFormat width="80%">
    <af:selectOneChoice id="navList1" autoSubmit="true" partialTriggers="commandButton2"
    valuePassThru="true" unselectedLabel="Select"
    binding="#{EditManualProfileAttributes.navList1}"
    valueChangeListener="#{EditManualProfileAttributes.getDetails}">
    <af:forEach var="li"
    items="#{bindings.GetRefNamesVO1.rangeSet}">
    <af:selectItem label="#{li.ReferenceName}"
    value="#{li.Id}"/>
    </af:forEach>
    </af:selectOneChoice>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="10"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="5%"/>
    <afh:cellFormat width="15%">
    <af:outputText value="#{gadmin.refId}"
    styleClass="outputText"/>
    <af:outputText value=" * "
    inlineStyle="font-size:10.0pt; font-family:Arial; color:rgb(255,0,0);"/>
    </afh:cellFormat>
    <afh:cellFormat width="15%">
    <af:selectOneChoice id="navList2" autoSubmit="true"
    partialTriggers="navList1 commandButton2"
    binding="#{EditManualProfileAttributes.navList2}"
    valueChangeListener="#{EditManualProfileAttributes.getColumns}">
    <af:forEach var="li"
    items="#{bindings.LookupRefTableVO1.rangeSet}">
    <af:selectItem label="#{li.LookupDesc}"
    value="#{li.LookupId}"/>
    </af:forEach>
    </af:selectOneChoice>
    </afh:cellFormat>
    <afh:cellFormat width="15%">
    <af:selectOneChoice id="navList3"
    binding="#{EditManualProfileAttributes.navList3}"
    partialTriggers="navList1 navList2 commandButton2">
    <af:forEach var="li"
    items="#{bindings.EditRefColumnVO1.rangeSet}">
    <af:selectItem label="#{li.DetailDesc}"
    value="#{li.DetailsId}"/>
    </af:forEach>
    </af:selectOneChoice>
    </afh:cellFormat>
    <afh:cellFormat width="50%"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="10"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="5%"/>
    <afh:cellFormat width="6%">
    <af:outputText value="#{gadmin.stDt}"
    styleClass="outputText" id="outputText1"
    binding="#{EditManualProfileAttributes.outputText1}"/>
    </afh:cellFormat>
    <afh:cellFormat halign="left">
    <af:outputText value=" * " id="outputText2"
    binding="#{EditManualProfileAttributes.outputText2}"
    inlineStyle="font-size:10.0pt; font-family:Arial; color:rgb(255,0,0);"/>
    </afh:cellFormat>
    <afh:cellFormat width="4%"/>
    <afh:cellFormat width="80%">
    <af:selectInputDate id="startDate"
    binding="#{EditManualProfileAttributes.startDate}"
    partialTriggers="navList1 commandButton1 commandButton2">
    <af:convertDateTime pattern="dd/MMM/yy"/>
    </af:selectInputDate>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="10"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="5%"/>
    <afh:cellFormat width="15%">
    <af:outputText value="#{gadmin.edDt}"
    styleClass="outputText" id="outputText3"
    binding="#{EditManualProfileAttributes.outputText3}"/>
    </afh:cellFormat>
    <afh:cellFormat width="80%">
    <af:selectInputDate id="endDate"
    binding="#{EditManualProfileAttributes.endDate}"
    partialTriggers="navList1 commandButton1 commandButton2">
    <af:convertDateTime pattern="dd/MMM/yy"/>
    </af:selectInputDate>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="10"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="20%"/>
    <afh:cellFormat width="7%">
    <af:commandButton text="#{gadmin.save}"
    action="#{EditManualProfileAttributes.save}"
    id="commandButton1"
    binding="#{EditManualProfileAttributes.commandButton1}"/>
    </afh:cellFormat>
    <afh:cellFormat width="7%">
    <af:commandButton text="#{gadmin.reset}"
    action="#{EditManualProfileAttributes.reset}"
    id="commandButton2"
    binding="#{EditManualProfileAttributes.commandButton2}"/>
    </afh:cellFormat>
    <afh:cellFormat width="7%">
    <af:commandButton text="#{gadmin.cancel}"
    id="commandButton3"
    binding="#{EditManualProfileAttributes.commandButton3}"
    action="adminHome"
    onclick="return cancel()"/>
    </afh:cellFormat>
    <afh:cellFormat width="59%"/>
    </afh:rowLayout>
    </af:panelForm>
    <af:panelForm id="panelForm2" rendered="false" width="100%"
    binding="#{EditManualProfileAttributes.panelForm2}">
    <afh:rowLayout width="100%">
    <afh:cellFormat width="15%">
    <af:outputLabel value="#{holdc.mpaAttr}" id="abc"
    inlineStyle="font-family:Arial; font-size:9.0pt; font-weight:bold;"/>
    </afh:cellFormat>
    <afh:cellFormat width="85%">
    <f:verbatim>
    <hr align="left"
    style="border-width:2.0px; color:rgb(219,238,243);"/>
    </f:verbatim>
    </afh:cellFormat>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <af:objectSpacer width="10" height="20"/>
    </afh:rowLayout>
    <afh:rowLayout width="100%">
    <afh:cellFormat width="15%">
    <af:outputLabel value="#{holdc.refeName}"
    styleClass="outputText"/>
    <af:outputLabel value=" * "
    inlineStyle="font-size:10.0pt; font-family:Arial; color:rgb(255,0,0);"/>
    </afh:cellFormat>
    <afh:cellFormat width="85%">
    <af:selectOneChoice id="navList4" autoSubmit="true"
    unselectedLabel="Select"
    valuePassThru="true"
    binding="#{EditManualProfileAttributes.navList4}"
    valueChangeListener="#{EditManualProfileAttributes.getVersions}">
    <af:forEach var="li"
    items="#{bindings.AuditRefNamesVO1.rangeSet}">
    <af:selectItem label="#{li.ReferenceName}"
    value="#{li.Id}"/>
    </af:forEach>
    </af:selectOneChoice>
    </afh:cellFormat>
    </afh:rowLayout>
    </af:panelForm>
    </afh:tableLayout>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>

    Hi Puthanampatti,
    Thanks a lot for your reply, but i am using JDev 10.1.3.3. There is no panelFormLayout component and i am not using that component.
    Even i am strange this duplicating of components and values in selectoneChoice occuring from past 2 days in the old file. I am wondering whether my file got corrupted by any sort.
    Regards,
    R N V Prasad

  • ADF Faces: Making a selectOneChoice in java code?

    I need to make a selectOneChoice to reuse in my pages (country selection) but can't seem to find how to do it on the web?
    here is what i've attempted with the error output...
    -------------------- the java code:
    public void contextInitialized(ServletContextEvent event)
    ServletContext servletContext = event.getServletContext();
    Utils.log(servletContext, "Initializing Supply Chain Management System...");
    // intitilize selectOne component
    CoreSelectOneChoice countrySelectOne = new CoreSelectOneChoice();
    List countrySelectItems = new ArrayList();
    CountryCoordinator countryCoordinator = new CountryCoordinator();
    try
    List all = countryCoordinator.getAllCountries();
    Iterator i = all.iterator();
    for(;i.hasNext();)
    Object object = i.next();
    CoreSelectItem item = new CoreSelectItem();
    item.setValue((Country)object);
    item.setLabel(((Country)object).getCountry_name());
    countrySelectItems.add(item);
    // place the list of select items into the selectOne component
    countrySelectOne.setValue(countrySelectItems);
    servletContext.setAttribute("countrySelectOne", countrySelectOne);
    Utils.log(servletContext, "Initializing Countries [SUCCESS]");
    } catch(Exception e)
    Utils.log(servletContext, "Initializing Countries [FAILED]");
    Utils.log(servletContext, "Initialization complete...");
    ------------------------------ the JSP:
    <af:selectOneChoice label="#{bundle.ADDRESS_COUNTRY}:" required="#{region_entity_address.required_entity_address_country}" binding="#{applicationScope.countrySelectOne}"/>
    ------------------------------ the error:
    15:36:48,984 INFO [STDOUT] Sep 16, 2005 3:36:48 PM oracle.adfinternal.view.face
    s.renderkit.core.xhtml.SimpleSelectOneRenderer _getSelectedIndex
    WARNING: Could not find selected item matching value "CoreSelectItem[UINodeFaces
    Bean, id=null]" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id30]
    ....

    That's right. JSF produces such IDs. They are causing problems with JAAS login forms, so we should use plain JSPs for login, but for the rest of the tasks such IDs are okay.
    What I meant is that currenty the buttons are not rendered as
    <input type="button" ... />but as pictures embedded in hyperlinks (&lt;a>).
    It's possible, though not likely, that in some future version of ADF Faces some component will be rendered as an HTML element that doesn't support tab ordering (although I haven't really considered if there are such elements). Then the trick with manually setting the tabIndex of the parent HTML element won't work.
    Of course, I deeply appreciate the fact that you take the time to help us on this forum. In fact, I will go ahead and do just that -- I will dynamically set the tabIndex via JavaScript. I was simply wanting to make sure that I wasn't taking such a hack-like approach, if there was a better method.
    Thank you again.
    Best regards,
    Bisser

  • How to select value of selectOneChoice

    Hello,
    First of all I want to describe what I want to do and then the preconditions for my case.
    What I want to do:
    I simply want a <selectOneChoice> Component which represents an enumeration of values.
    In database there is a column which has the value 'A' or 'P'.
    In the DataTransferObject´s mentioned below these values are represented with Character objects.
    If the DataTransferStructure mentioned below is loaded I want the <selectOneChoice> to display the current value originate from database.
    If I submit the DataTransferStructure (or DataTransferObject --> see below) I want that the selected value (of <selectOneChoice>) will be written to database.
    Preconditions:
    ADF BusinessComponenets are not used.
    Only ADF Faces and Bindings are used.
    I have defined a Bean wich executes functions over RMI on EJBs.
    This bean is used as DataControl to bind their return values to pages.
    It looks nearly like following class:
    public class FunctionalObjectServiceBean{
         public FunctionalObjectServiceBean() {
    public DataTransferStructure readObjectWithId(Long Id)
    throws Exception{
    DataTransferStructure has link to> DataTransferObject
    DataTransferObject has attribute> Character attributeA (with either value 'A' or 'P')
    I have defined a selectOneChoice in the jspx.
    DataTransferObjectAttr1 is an Iterator-Binding to the matching attribute in DataTransferObject.
    value="#{bindings.DataTransferObjectAttr1.inputValue}" should select the appropriate value originating from database on load.
    <af:selectOneChoice value="#{bindings.DataTransferObjectAttr1.inputValue}"
    label="#{bindings.DataTransferObjectAttr1.label}"
    required="#{bindings.DataTransferObjectAttr1.hints.mandatory}"
    shortDesc="#{bindings.DataTransferObjectAttr1.hints.tooltip}"
    id="soc1"
                                       valuePassThru="true">
    <af:selectItem label="Active" value="A" id="si1"/>
    <af:selectItem label="Passive" value="P" id="si2"/>
    </af:selectOneChoice>
    When I try to execute this example following errors occur:
    <FacesCtrlListBinding> <getInputValue> ADFv: In der Werteliste wurden keine gewählten Elemente gefunden, die mit dem Wert A des Typs java.lang.Character übereinstimmen.
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Erstellen eines Objekts vom Typ java.lang.Character aus Typ java.lang.String mit dem Wert A nicht möglich
    oracle.jbo.domain.DataCreationException: JBO-25009: Erstellen eines Objekts vom Typ java.lang.Character aus Typ java.lang.String mit dem Wert A nicht möglich
    Using converters has also no effect here.
    thanking you in anticipation

    I try to translate it in my words:
    <FacesCtrlListBinding> <getInputValue> In the value list no elements were found which match the value A with datatype java.lang.Character.
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Creating object of type java.lang.Character from source type java.lang.String not possible.
    oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object of type:java.lang.Character from type:java.lang.String with value: A.

  • Where I can define the order by for a dynamic SelectOneChoice list

    Hi
    I am using JDeveloper 10.1.3.1-Toplink/POJO for the DataModel and ADF JSF for disigned the web pages.
    My problem is that I can not find the way to order the element of a dynamic SelectOneChoice.
    Can anyone help me please?
    Thanasi

    Hi,
    Not tested yet, but the order should be define in the method that retrieves the list values. You can specify an argument on this method and pass it in e.g. via a EL reference
    Frank

  • Hide elements depending on other elements value

    how can I hide elements (for example af:commandButton) when I change the value of another element (for example af:selectOneChoice)

    <af:selectonechoice id="soc1" autoSubmit="true">
    <af:commandButton id="cm1" partialTriggers="soc1" visible="#{bean.value}">in the valuechangevent of the selectonechoice.. set the value to false. so that the visible property will become false.. and the autosubmit will trigger the commandbutton to hide

Maybe you are looking for

  • Data in cube is different from psa in the production system

    hi friends this is very urjent ,the data is fine and  same as r/3 in psa.for example i have sales for one article ie billing 2lis_13_vditm . which picked the data from r/3 when i see the records in the psa they r good when tried to see the same recor

  • Re: canect to hp printer

    I have trouble connecting thru eprint when I try to print from a web page.

  • Difference between parent currency and parent in value dimension

    Hi Dear friends please tell me about following: 1.Difference between <Parent Currency> and <Parent> in value dimension and its significance. 2.Difference between <Parent Currency Adjs.> and <Parent Adjs.> in value dimension and its significance. Than

  • Exporting to AOL pictures problem

    Hi All, When I first downloaded aol pictures, there is an option to install a plugin to export from iphoto 08. This used to work until i purchased an hp all in one c4280 and I installed the software from the hp website. Now when I go to file->export

  • In Fill Photo frame and Trees greyed out

    Adobe CC in the Fill Menu Photo Frame and Trees greyed out