ADF selectOneChoice

Hi,
In ADF, how do I pass a value selected from a choice list to a bind variable of a query?
I have a query that has 2 bind variables and the value for these bind variables are to be populated when user selects something from the choice lists
Thnx

Thanks Kiran for your reply.
I followed all the steps give by you but when I select a value from the choice list and click the submit button, the UI table has the message 'No data to display'.
I can see the following exception in the log
Exception in thread "Timer-14" java.lang.ClassCastException: weblogic.utils.classloaders.ChangeAwareClassLoader cannot be cast to oracle.adf.share.ADFContext
     at oracle.jbo.pool.ResourcePoolMonitor.resetThreadContext(ResourcePoolMonitor.java:155)
     at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:139)
     at java.util.TimerThread.mainLoop(Timer.java:512)
     at java.util.TimerThread.run(Timer.java:462)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
     at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:1483)
     at oracle.jbo.pool.ResourcePoolMonitor.initializeThreadContext(ResourcePoolMonitor.java:150)
     at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:113)
     at java.util.TimerThread.mainLoop(Timer.java:512)
     at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.reflect.InvocationTargetException
     at sun.reflect.GeneratedMethodAccessor525.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at oracle.adf.share.ADFContext.initADFContext(ADFContext.java:1449)
     ... 4 more
Caused by: java.lang.NullPointerException
     at oracle.adf.share.http.ServletADFContext.initialize(ServletADFContext.java:423)
     at oracle.adf.share.http.ServletADFContext.initThreadContext(ServletADFContext.java:351)
     at oracle.adf.share.http.ServletADFContext.initThreadContextIfNeeded(ServletADFContext.java:284)

Similar Messages

  • 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.

  • ADF selectonechoice valuebinding called twice

    Does anyone have any idea why the valuebinding method of an ADF SelectOneChoice component would be called twice? I have one drop down with values and when I select something in that drop down the valuebinding for the second drop down is called twice, when it should only be called once. Any help would be appreciated.

    Hi,
    what is the refresh setting of the region binding in the page's PageDef file? Put a print statement to the task flow initializer to verify the region is executed twice
    Frank

  • ADF selectOneChoice filtering - Oracle ADF mystics

    Hi clever guys,
    I wanna filter a selectOneChoice component based on the value of another component using JUCtrlListBinding.filterList(..) in the managed bean (onValueChange)
    based on Frank Nimphius' article
    [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/90-filter-adf-bound-lists-508190.pdf]
    Say my selectOneChoice contains 10 rows with different pointId attribute - POINTA, POINTB, POINTC.
    If we filter on pointID, which is contained only in 1 row, then the filter returns all the rows - filtering is not applied. As soon as a specific pointID is contained at least in 2 rows, the filtering works and only these rows are returned.
    Say we display selectOneChoice with attributes productId and pointId. Rows, before filtering, are like this
    - PRODUCT1, POINTB,
    - PRODUCT2, POINTA,
    - PRODUCT3, POINTB,
    - PRODUCT4, POINTC,
    - PRODUCT5, POINTC,
    - PRODUCT6, POINTB,
    - PRODUCT7, POINTC,
    If we tell JUCtrlListBinding.filterList() to select only rows with POINTB or POINTC, it works fine (returns 2 resp. 3 rows), because they are contained in 2 or 3 rows. If I filter on POINTA, all rows (7) are returned (filtering is not applied). As soon as I insert 1 more row for POINTA, it works.
    My code snippet>
    JUCtrlListBinding listBinding = (JUCtrlListBinding) bindings.get("productId1");
    listBinding.getDCIteratorBinding().getViewCriteria().clear();
    HashMap m = new HashMap();
    m.put("pointId", selectedPointId);
    listBinding.filterList(m);
    I write out the contents of listBinding values with System.out... just before and just after the filterList method, that's how I can see that this method behaves like that.
    Guys, do you have any idea on what could go wrong and how to workaround it?
    Thanks a lot.
    Using JDeveloper 11.1.1.3.0

    Thanks for the quick response!
    Using the department / employee example... I'm trying to create a form that allows a user to create a new department. I have dragged the "Department" object (located under queryDepartmentFindAll()) over to my jspx form. A form with corresponding fields is created.
    I notice that no field was created for employeeId. I expand the "Department" object (again, under queryDepartmentFindAll()) and observe that "Employee" is present, as a list (expanding Employee provides access to employee object attributes along with another list entitled departmentList).
    I know that it's unlikely that only one employee would be selected in the creation of a department... but I'm sticking to the example...
    So, I drag the "Employee" (again, under queryDepartmentFindAll()) object over to the newly created form and from the pop-up menu I choose selectOneChoice as the desired component. I run the jspx page, Internet Explorer 7 browser pops up and all labels display on the page, all fields but no selectOneChoice component appears on the screen... the space is there for it but it appears to be invisible. I have checked the Employee table and there is data to be displayed... it's just that I must be missing something...

  • ADF selectOneChoice and af:forEach

    Hi,
    I'm atempting to create a data-bound selectOneChoice that displays DepartmentName and selects the corresponding DepartmentId as its value. I've tried using an af:forEach on an f:selectItem with the selectOneChoice, but I'm getting an error with the EL refernces that the the row refernces aren't valid.
    Could anyone provide some insight?
    Thanks,
    Debojit

    Thanks for the prompt reponses.
    Hi Suresh, Rodrigues and Vinod,
    I'm attempting to build my selectOneChoice from the Department table table directly, without code in between AND get back real values for the selections I make, so I'm afraid I can't use any beans, at least not for pouplating the drop-down list.
    Hi Navaneetha,
    I tried your approach, but I'm still getting a "Refrence not Found" error for the EL refernce "#{row.DepartmentName}" , and the drop down is coming up as empty when i run the page.
    Here's the code for the page and the corresponding page def.
    <?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:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:selectOneChoice label="Departments" id="soc1">
    <af:forEach items="#{bindings.DepartmentsView.items}" var="row">
    <af:selectItem label="#{row.DepartmentName}" id="si1"
    value="#{row.DepartmentId}"/>
    </af:forEach>
    </af:selectOneChoice>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.60.13" id="DepartmentsViewPageDef"
    Package="view.pageDefs">
    <parameters/>
    <executables>
    <variableIterator id="variables"/>
    <iterator Binds="DepartmentsView" RangeSize="10"
    DataControl="HrAppModuleDataControl"
    id="DepartmentsViewIterator"/>
    </executables>
    <bindings>
    <tree IterBinding="DepartmentsViewIterator" id="DepartmentsView">
    <nodeDefinition DefName="model.views.DepartmentsView"
    Name="DepartmentsView0">
    <AttrNames>
    <Item Value="DepartmentId"/>
    <Item Value="DepartmentName"/>
    </AttrNames>
    </nodeDefinition>
    </tree>
    </bindings>
    </pageDefinition>

  • ADF SelectOneChoice List Question

    I posted the following message in the Toplink forum and they have suggested I try over here:
    Toplink Essentials List Question
    ==================
    I am new to Toplink Essentials. I am using Toplink Essentials inside of JDeveloper 11g, against Oracle Express and ADF/Trinidad and have used JDeveloper's "Entities from Tables" wizard to reverse engineer my database into Toplink pojo objects. After this I used JDeveloper's wizard to create a JavaServiceFacade and then generate a Data Control.
    After expanding the DataControl (which is mapped to the JavaServiceFacade) I have a method queryEntityFindAll(). Under this method I have serval attributes and then a list which represents a "many-side" of this entitie's relationship with another entity. How do I create a selectOneChoice using this list?
    I've tried expanding queryEntityFindAll() and then dragging the list to a jspx page, setting the Base Data Source to "JavaServiceFacade.queryEntityFindAll.listName and then setting the List Data Source to "ListName : JavaServiceFacade.queryRelatedEntityFindAll". However, when I run the page the only thing that appears on the page is the selectOneChoice label... no drop down component appears on the page... no errors are generated to give any clue as to what my problem may be...
    Although I'm working in JDeveloper, I really believe this is a Toplink Essentials question...
    Please help!

    Thanks for the quick response!
    Using the department / employee example... I'm trying to create a form that allows a user to create a new department. I have dragged the "Department" object (located under queryDepartmentFindAll()) over to my jspx form. A form with corresponding fields is created.
    I notice that no field was created for employeeId. I expand the "Department" object (again, under queryDepartmentFindAll()) and observe that "Employee" is present, as a list (expanding Employee provides access to employee object attributes along with another list entitled departmentList).
    I know that it's unlikely that only one employee would be selected in the creation of a department... but I'm sticking to the example...
    So, I drag the "Employee" (again, under queryDepartmentFindAll()) object over to the newly created form and from the pop-up menu I choose selectOneChoice as the desired component. I run the jspx page, Internet Explorer 7 browser pops up and all labels display on the page, all fields but no selectOneChoice component appears on the screen... the space is there for it but it appears to be invisible. I have checked the Employee table and there is data to be displayed... it's just that I must be missing something...

  • ADF SelectOneChoice Refresh

    Hi all,
    I want to know how to refresh a combobox (id=c2) and syncronize it with databindings.
    When i change the value of my other combo (id=c1) (with autosubmit=true) i have in my bean this to try to refresh my combo (id=c2)
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    bindings.getOperationBinding("ExecuteWithParams"); //over viewobject that is used by c2
    Object result = operationBinding.execute();
    AdfFacesContext adfContext = AdfFacesContext.getCurrentInstance();
    adfContext.addPartialTarget(c2);
    I also have in my pagedef this
    <invokeAction id="invokeCombo2" Binds="ExecuteWithParams"
    Refresh="always"/>
    The thing is that combo data is filtred and it looks like as i wish ....
    but i realize the data is out of sync with my values.
    Imagine that i have in my c2 this pairs value/text:
    value1/text1
    value2/text2
    If my combo c1 filters c2 to just show text2 what happens is that text2 cames with value1. wrongly.
    What is not syncronizing?

    I went thru the same issue about 2 months ago.
    Short version is if your calling this in the backing bean then the value you are using the previous value of c1. You don't need to do this if you have the partialTriggers property of c2 set to c1. It will automatically refresh c2. But there's a catch if the value of c1 is not sequential 0,1,2,3,4... then you need to place the field used by c1 on the page again and set the renderd propert to false (usually will gets the name <field_name>1). Now in your ExecuteWithParms set the param value to <field_name>1. This is because if you look at the values returned by the SelectOneChoice it's the index value (0,1,2,3..) not the actual value.
    For more deatil on this you can look at a blog by Duncan Mills
    http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/2006/03/22/ADF-The-List-Binding-Value-Problem.html?page=comments
    I hope this helps

  • ADF selectOneChoice - concurrent access

    Hello,
    I have an ADF aplication (i use jdev 11.1.1.2.0) that has a page with a richTable and a form that populate its fields when a row for the table is selected. The form can be also submited when a user complete its own details.
    My problem apears when are more users accessing the page.
    The selected index of the af:selectedOneChoice shared its value between the users sessions?
    Thank you

    Hi,
    That cannot be the problem, each selectOneChoice is a separate object with separate values.
    Is the data you display based on a table? This data however is shared so concurrent updates etc are a more likely cause I think.
    But really, some more info about the actual problem would be helpful
    -Anton

  • ADF selectOneChoice in a jspx, outside of the table

    Hi,
    I want to use a selectOneChoice outside a table in a jspx, but my code is not working.
    I have a table in a database with 3 columns (id, name and lastname). I want a list of my id attribute, but outside of the table that is automatically generated.
    Here is my code:
    <af:selectOneChoice label="#{bindings.Example.collectionModel.bindings.id.label}" id="soc1"
    value="#{bindings.Example.collectionModel.bindings.id.inputValue}">
    <f:selectItems value="#{bindings.Example.collectionModel.bindings.id.items}" id="si3"/>
    </af:selectOneChoice>
    This is the error:
    javax.el.PropertyNotFoundException: The class 'oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel' does not have the property 'bindings'.
    My code is correct?
    Thanks!

    the problem is with
    ....label="#{bindings.Example.collectionModel.bindings.id.label}" id="soc1"can u try to use it directly like
    #{bindings.Example.collectionModel.id.label}instead of
    #{bindings.Example.collectionModel.bindings.id.label}
    <af:selectOneChoice label="#{bindings.Example.collectionModel.id.label}" id="soc1"
    value="#{bindings.Example.collectionModel.bindings.id.inputValue}">
    <f:selectItems value="#{bindings.Example.collectionModel.id.items}" id="si3"/>
    </af:selectOneChoice>

  • ADF valuechangeListener Problem

    Hi,
    I am facing problem with ADF selectonechoice valuechangeListener.
    Problem is i have four valuechangeListeners. those are dependent List Boxes. If i perform action on one valuechangeListener all other VC 's also calling. due to this i am facing problems. how to prevent calling other VCs. why it is calling other VCS also. please reply me very urgent
    Thanks
    Jyothi

    Hi,
    a value change listener fires for any value that has been changed in a form (assuming the component has a ValueChangeListener applied). So obviously in your case more than one field has been changed, which shouldn't be the case if autosubmit=true is used
    Frank

  • Error selectOneChoice component

    HI All,
    My intention is to populate a selectOneChoice component with some selection items
    I have posted couple of messages on the same topic, but could not find the solution..
    Here is the content that i have got from a blog... i have followed all the steps but am getting an error....
    also i could not find what is value="#{ModelData.department}" for <af:selectOneChoice> tag... here in the complete example we dont have any class called ModelData.. what that binding means......
    CODE
    ======
    Add the following code in the ADF page.
    <af:selectOneChoice label="Department" value="#{ModelData.department}">
    <f:selectItems value="#{DepartmentOptions.departments}"/>
    </af:selectOneChoice>
    In ADF, selectOneChoice is used for drop down list.
    selectOneChoice picks the list of values from 'selectItems' tag.
    You can define a managed bean to bind an ArrayList of SelectItem objects to 'selectItems'. or can define a view object and bindings. In this example I have defined a managed bean which provides an ArrayList of SelectItem objects.
    Department list Backing bean code.
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class DepartmentOptions {
    private List departments;
    public DepartmentOptions() {
    departments = new ArrayList();
    SelectItem department = new SelectItem("10", "Electric");
    departments.add(department);
    department = new SelectItem("20", "Mechanic");
    departments.add(department);
    department = new SelectItem("30", "Computer");
    departments.add(department);
    public void setDepartments(List departments) {
    this.departments = departments;
    public List getDepartments() {
    return departments;
    In the above code it is clear that value attribute for <f:selectItems\> tag referring to the bean written above...
    but what is value="#{ModelData.department}"> for <af:selectOneChoice\> where we do not have ModelData class itself
    please Give me some pointers on this ...
    Thanks in advance,
    Naveen
    Message was edited by:
    Naveen Kumar Borra

    Naveen Kumar Bora,
    I agree with you - I've read that blog entry, and it seems to be missing some critical bits of information. I suggest you have a look at either the Oracle ADF Developer's Guide for Forms/4GL Developers section 19.7 (if you're using ADF BC) or Oracle ADF Developer's Guide section 11.7.
    Note for the future: if you're asking a question about a blog post, it really helps if you put a link to the post you're asking about, wouldn't you agree?
    Hope this helps,
    john

  • Sessions.xml data source not working using toplink

    I'm having some difficulty getting a data source to work. I have an ADF selectOneChoice component and I want the list of values available to be bound to a database given by the JNDI name and controlled at the j2ee container level.
    I have created a sessions.xml file
    <toplink-configuration>
    <session>
    <name>PIMSSession</name>
    <project-xml>META-INF/PIMS_ADF_TLMap.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <connection-pool>
    <is-read-connection-pool>true</is-read-connection-pool>
    <name>default</name>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <platform-class>Oracle10g</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    </connection-pool>
    </session>
    </toplink-configuration>
    The sessions.xml points to the toplink mapping file PIMS_ADF_TLMap.xml, which contains information about the database view that is used to populate the drop down list. It also contains a deployment connection:
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>pimsdev</toplink:user-name>
    <toplink:password>BB742416276274A494F7008B3AE0FB10</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@yvworad01:1521:PIMSD</toplink:connection-url>
    </toplink:login>
    The problem I'm having is that my ADF application always binds the selectOneChoice to the connection-url in the toplink mapping file instead of the datasource in the sessions.xml.
    If I remove the deployment connection from the mwp file, recompile and deploy I get a JBO-29000 error about not having a suitable driver.
    Does anyone know how to get the selectOneChoice to bind to a datasource instead of the toplink mapping connection-url?

    Hi Aaakar,
    From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
    Go to the Data Sources properties page.
    For the Connect Using option, select Credentials stored securely in the report server.
    In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
    the report.
    If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
    If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
    For more details about Configure Data Source Properties, please see:
    http://technet.microsoft.com/en-us/library/ms155882.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • ValueChangeListener does not work if BackingBean is in request scope

    I am using ADF selectOneChoice and populating textfields etc. based on the selection in the SelectOneChoice.
    I implement this thru a ValueChangeListener method in my BackingBean,and it works perfectly if the bean is in session scope. But if I put it in request scope getOldValue() always gives the first value in the combo. So if user selects some other value and then goes back to first value, it does not generate an event since oldvalue=newvalue.
    It is not possible for me to create my BackingBean in session - it needs to be request scope. Is there any way of doing this? Pls help.

    Hi,
    it depends on your implementation, but keep in mind that a bean in request scope is reset to its default values after each request. So if you keep the list value data in the same bean then the value is set back to the default selection when the request ends because the managed bean is released and re-created for the next request. A work around is to store the value in a long lived scope memory attribute and read it from there when the managed bean is requested
    Frank

  • UI Component SelectManyChoice is showing some selected values by default

    Hi,
    I am working on JDeveloper 11.1.1.4.
    I created a viewObject DepartmentVO which fetches the distinct department values in a table.
    I created a Department.jsff fragment and its backing bean Department.java. And created a RichSelectManyChoice smc1 component in Department.jsff.
    DepartmentVO is binded to smc1 so that when the fragment loads smc1 component fetches the all department values. And the user can select many depatments.
    I am calling this fragment in Home.jspx page using bounded taskflow. The taskflow behaviour is set as "Always begin with new transaction" and "Share data control with calling taskflow" is checked because I am calling another taskflow which requires the data in this fragment. It is working and I am able to select multiple departments.
    Suppose I selected two departments Finance and HR. But the problem is that when I come to this page again (I mean when departments.jsff loads again) it is showing Finance and HR as selected. But it shoud show the list of vallues as none selected.
    Please suggest how can I achieve this.
    Thanks
    Edited by: 976777 on Dec 13, 2012 8:30 AM

    Hi,
    Check
    How to reset ADF SelectOneChoice?

  • Issue with SelectOneChoice in ADF Table

    Hi,
    I am trying to create ADF table with a editable columns, one with InputBox and another with SelectionOneChoice. InputBox is working fine but for SelectOneChoice its not populating the value passed to it.
    The values of SelectOneChoice are coming from JavaClass. Accesing the list through pageFlowScope.
    Code:
    *<af:column sortProperty="sponsorPercentage" sortable="false"*
    *headerText="#{bindings.sponsor1.hints.sponsorPercentage.label}"*
    *id="c11">*
    *<af:inputText label="Label 1" id="it5"*
    *value="#{row1.sponsorPercentage}"/>*
    *</af:column>*
    *<af:column id="c1" headerText="Sponsor Status">*
    *<af:selectOneChoice label="Label 2" id="sStatus" value="#{row1.sponsorStatusDesc}"*
    *validator="#{backingBeanScope.EditSponsorDetails.OnSponsorStatusChange}">*
    *<f:selectItems value="#{pageFlowScope.confLists.spStatus}"*
    *id="si1"/>*
    *</af:selectOneChoice>*
    *</af:column>*
    In the first column i can see the date in InputBox. But in second column where i am using SelectOneChoice i cannot see data. I can see list of values in SelectOneChoice but unable to populate the data passed to it.
    Any idea what i am missing over here?
    Thanks in Advance
    Regards
    Thoom.

    This is my code:
    <af:column id="c1" headerText="Sponsor Status">
    <af:selectOneChoice label="Label 2" id="soc1" value="#{row1.sponsorStatusDesc}"
    validator="#{backingBeanScope.EditSponsorDetails.OnSponsorStatusChange}"
    valuePassThru="true">
    <f:selectItems value="#{pageFlowScope.confLists.spStatus}"
    id="si1"/>
    </af:selectOneChoice>
    </af:column>
    and this i what HTML code says..
    <select id="confSponsor:r2:0:tbIEEEsp:0:soc1::content" class="x2h" name="confSponsor:r2:0:tbIEEEsp:0:soc1">
    <option _adftmpopt="t" value="" title=""></option>
    <option value="4" title="Approved">Approved</option>
    <option value="3" title="Declined">Declined</option>
    <option value="6" title="New">New</option>
    <option value="2" title="Not Valid">Not Valid</option>
    <option value="5" title="On Hold">On Hold</option>
    <option value="1" title="Pending Approval">Pending Approval</option>
    <option value="7" title="Unidentified">Unidentified</option>
    </select>
    Stll i cannot see any value populated in SelectOneChoice

Maybe you are looking for

  • Adding manifests to Jar files using different  versions

    I have been using the following to add a manifest pointer to my main class called JTiming C:\jdk1.1.8\bin\jar cmfv MyMainClass.txt JTiming.jar * and it works a treat, when I unjar the jar and look at the manifest file it includes the pointer to JTimi

  • Reactivate pdf form

    Hi, We have credit note pdf form, and we made some changed to the form. After moving changes to test system, scripts in form do not work (like display patterns). Usually when changes are transported we activate form by generating it first time on scr

  • Cool preloader in as3 to as3

    Hi to everyone .... I use this preloader in several of my professional works and it's cool ... but in futures works i'll need't in AS23. ¿Is there a way to converted (or make it) in AS3?. Otherwise is there a web site where i can find cool flash prel

  • Instant messaging in leopard

    hi. im relatively new to os x and i was wondering if something was possible and if so, how is it done. I like the addition of the chat bubble in the top bar by the clock. however im not sure im liking iChat because i only have a few friends who use A

  • [SOLVED] Brother DCP-7065DN in a Network: Scanner works, Printer not.

    Hi all, I am aware of the fact that there is a similar thread, but the issue isn't really solved there. https://bbs.archlinux.org/viewtopic.php?id=109570 I've got a shiny new DCP-7065DN, which works ok in Ubuntu as a network printer and scanner. I wa