How to autoselect the selectmanychoice's "All" option

Hi ADF Experts,
I have a requirement on selection of a checkbox the below SelectManyCheckBox's "ALL" option is selected. How to handle the "ALL" option.
Best Regards,
Rahul

Hi Arun,
Thanks for the response . I have implemented as below. Also placed autosubmit and partial trigger inplace. But the selecteditems are not showing as selected in the UI. Instead getting below warnings.
Details:
package com.demo.view;
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectBooleanCheckbox;
import oracle.adf.view.rich.component.rich.input.RichSelectManyChoice;
public class StatusBean {
    private RichSelectBooleanCheckbox status;
    private RichSelectManyChoice choiceItem;
    private List<SelectItem> itemList;
    private List item;
    public StatusBean() {
        super();
        itemList = new ArrayList<SelectItem>();
        item = new ArrayList();
        itemList.add(new SelectItem("Mango","Mango"));
        itemList.add(new SelectItem("Guava","Guava"));
        itemList.add(new SelectItem("Orange","Orange"));
        itemList.add(new SelectItem("Banana","Banana"));
        itemList.add(new SelectItem("Pineapple","Pineapple"));
        itemList.add(new SelectItem("Apple","Apple"));
    public void setStatus(RichSelectBooleanCheckbox status) {
        this.status = status;
    public RichSelectBooleanCheckbox getStatus() {
        return status;
    public void statusValueChange(ValueChangeEvent valueChangeEvent) {
        // Add event code here...
        System.out.println("****************INSIDE STATUS CHANGE**************");
        String var = valueChangeEvent.getNewValue().toString();   
        if(var.equals("true")){
            //set the itemList as diabled and set All.
            for(int i = 0; i<itemList.size();i++){
                 System.out.println(itemList.get(i).getValue());
                 item.add(itemList.get(i).getValue());
        else{
            item.clear();
    public void setChoiceItem(RichSelectManyChoice choiceItem) {
        this.choiceItem = choiceItem;
    public RichSelectManyChoice getChoiceItem() {
        return choiceItem;
    public void setItemList(List<SelectItem> itemList) {
        this.itemList = itemList;
    public List<SelectItem> getItemList() {
        return itemList;
    public void setItem(List<SelectItem> item) { 
        this.item = item; 
    public List<SelectItem> getItem() {  
        return item;  
  <af:panelFormLayout id="pfl0">
  <af:selectBooleanCheckbox text="selectBooleanCheckbox 1" label="Label 1"
          valueChangeListener="#{viewScope.StatusBean.statusValueChange}"           autoSubmit="true"       id="sbc1" binding="#{viewScope.StatusBean.status}"/>
  <af:selectManyChoice label="Options" id="smc1"
                binding="#{viewScope.StatusBean.choiceItem}"
                       valueChangeListener="#{viewScope.StatusBean.itemListValueChangeListener}"
                       value="#{viewScope.StatusBean.item}"
                       partialTriggers="sbc1">
      <af:forEach items="#{viewScope.StatusBean.itemList}" var="item" >
      <af:selectItem value="{item.value}" id="si4"
                   label="#{item.label}"/>
       </af:forEach>           
  </af:selectManyChoice>   
  </af:panelFormLayout>
Warnings:
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Mango of type:java.lang.String among list of SelectItems
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Guava of type:java.lang.String among list of SelectItems
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Orange of type:java.lang.String among list of SelectItems
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Banana of type:java.lang.String among list of SelectItems
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Pineapple of type:java.lang.String among list of SelectItems
<SimpleSelectManyRenderer> <_getSelectedItems> Could not find value:Apple of type:java.lang.String among list of SelectItems
Thanks,
Rahul

Similar Messages

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • How to get the values of Select-options from the screen.

    The value of parameter can be obtained by function module 'DYNP_VALUES_READ' but How to get the values of Select-options from the screen? I want the F4 help values of select-options B depending on the values in Select-option A.So I want to read the Select-option A's value.

    Hi,
    Refer this following code..this will solve your problem...
    "Following code reads value entered in s_po select options and willprovide search
    "help for s_item depending upon s_po value.
    REPORT TEST.
    TABLES : ekpo.
    DATA: BEGIN OF itab OCCURS 0,
    ebelp LIKE ekpo-ebelp,
    END OF itab.
    SELECT-OPTIONS   s_po FOR ekpo-ebeln.
    SELECT-OPTIONS s_item FOR ekpo-ebelp.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_item-low.
      DATA:
      dyn_field TYPE dynpread,
      temp_fields TYPE TABLE OF dynpread,
      zlv_dynpro TYPE syst-repid.
      zlv_dynpro = syst-repid.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = zlv_dynpro
          dynumb     = syst-dynnr
          request    = 'A'
        TABLES
          dynpfields = temp_fields
        EXCEPTIONS
          OTHERS     = 0.
      LOOP AT temp_fields INTO dyn_field.
        IF dyn_field-fieldname EQ 'S_PO-LOW'.
            SELECT * INTO CORRESPONDING fields OF TABLE itab FROM ekpo
            WHERE ebeln EQ dyn_field-fieldvalue.
            EXIT.
        ENDIF.
      ENDLOOP.

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to change the header in all pages at once?

    I'm new to iWeb and can't figure out how to change the headers of all pages without having to go through and do it to every page. There should be a way, but is this a feature iWeb doesn't have?

    Hi,
    Refer following link which states how to change the Page Setup setting (just an addition to above poster's explanation):-
    http://docs.oracle.com/cd/E12825_01/epm.111/fr_user/frameset.htm?1900.html
    Regards,
    Edited by: 918547 on Dec 14, 2012 6:17 PM

  • Does Anyone Knows How To Disable The "Check For Updates" Option in Adobe Edge Code and Reflow?

    Does Anyone Knows How To Disable The "Check For Updates" Option in Adobe Edge Code and Reflow?
    Thanks in Advance

    I don't think there is a way for Edge Code. I'm not sure about Reflow.
    Why don't you just upgrade? That will stop the notifications.
    Randy

  • How to set the Mail and Fax options  for the Smartforms ???

    How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .

    >
    veera Karthik wrote:
    > How to set the Mail and Fax options  for the Smartforms ??? Please reply me very soon. Its a life deciding question now for me. Please .
    Hi
    Check this Link:
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/frameset.htm
    P.S: Never say reply me soon....people answer you here voluntarily and as everyone has their own desk to manage...sp replies may late or early..depending upon the availabality of the members.
    Vishwa.

  • How to use the variable value "ALL"

    Hello all,
    I'm trying to use the value "all" for a selection variable in a Web Interface so that to have no restrictions for that specific variable and that all the rows are shown on the interface.
    Unfortunately it does not seem to be working because when I select the value "all" the system seems to go back to the latest rows saved under a specific value for that variable and does not show all the rows saved under any variable's value.
    Anyone knows how to make this work? One option is to remove the variable from the web interface altogether, but that's my last option.
    Thanks in advance.
    Best regards,
    Francesco

    Hi Francesco,
    why is leaving out the variable your last option? If you want to select "all" then you don´t need a variable.
    Cornelia

  • How to change the location of all fotos in the iPhoto library?

    my iPhoto 11 library is stored locally on my macbook.
    however, my fotos (the actualy bits) are stored externally on a NAS box.
    (or in other words: option "Importing: [ ] Copy items to the iPhoto Library" is not checked)
    recently i purchased a timecapsule and i now want to move all fotos from the NAS box to the timecapsule.
    i am looking for a way to batch-change the location of all fotos from let's say "/Volumes/MyNas/..." to "/Volumes/MyTimecapsule/...".
    can this be done? any ideas?
    thank you.
    ps: i know how to deal with xml and .db/.apdb files. so don't be gentle on me ;-)

    Not really unless you search the forums and find the older post describing how to hack the SQLite database to accomplish this
    Or use Aperture which can do this easily
    However if you are using your Time Capsule as a Time Machine bakcup volume it is not a good place to put your photos - if you do you have no backup of them which means that sooner of later you will lsoe them - and sooner or later TM will fill the volume and make it impossible to add photos
    LN

  • How to uncheck the Open item managemant option in the G/L acnt Definition.

    Hello Friends,
    This is regarding Open Item Management.
    One of the bank account was checked with open item management, while creation of G/L account definition(FS00 Transaction Code). Now the User wants to uncheck the Open Item management option which is already checked at the time of creation.
    All the open items are cleared, there are no open items.
    The version we are using is 4.7 version.
    Pl let me know how this situation can be handled and how it can be resolved.
    Could you pl explain it in step by step.
    Thanks,
    HK
    Moderator: Please, search before posting

    If the account balance is zero and there is no open item, then you can switch off the OIM setting directly in GL right?
    Is there any problem for that?

  • How to choose the restore using icloud option after you have already gone past setting up your phone

    How do I choose the restore using icloud option after I have already gone past setting up my Iphone 5?

    You have to start over by going to Settings>General>Reset and tapping Erase All Content & Settings.  This will bring you back to the setup assistant screens.

  • How to take the back of all the Projects from PWA 2007 to PWA 2012

    I had already created projects in PWA 2007 and i want to take the backup of all the projects in PWA 2013 .how to do that .Please reply soon.

    Hi,
    assuming you want to use Project Server 2013 (there is no 2012).
    If you want to get everything from 2007 into 2013, you should perform a migration:
    https://technet.microsoft.com/en-us/library/ee662496(v=office.15).aspx,
    https://technet.microsoft.com/en-us/library/ff603507(v=office.15).aspx, and
    https://technet.microsoft.com/en-us/library/ff603507(v=office.15).aspx#section3
    If you only need to get certain projects, you can save them as local file from 2007 and re-save them to 2013.
    Does that help?
    Barbara
    To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
    an appropriate solution faster. Thanks for your support!

  • How to create a variable, and how to use the same across all the reports?

    Hi,
    Is there any possibility of creating a variable at once and making use of that across in all the Crystal Reports?
    Thanks In advance for your time and solution.

    MohanMRK,
    can you describe how you get the value for this variable?
    is it calculated on one report and then you want to pass it to a 2nd report? if that's the case, what you can do is have the reports linked via an opendocument link and pass the value to the 2nd report as a parameter. the value / parameter is only shared when you press the opendocument hyperlink.
    please see the sdk library [here |http://www.sdn.sap.com/irj/boc/sdklibrary]and scroll down to the opendocument section near the bottom.
    if you are just trying to find a way to share a calculation across reports look into creating a Custom Function which can be added to your repository. please note that this will not pass a calculated value across 2 or more reports, but will just have a shared method of making the calculation.
    as Abhilash mentioned before, there's no way to use an actual Variable across 2 separate reports without them being a main report and subreport(s). in that case you'll want to look into Shared Variables.
    cheers,
    jamie

  • How to find the list of all tables populated

    How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
    Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to take the Backup of all XI-Design Objects(Repository, Directroty,SLD)

    Deal All,
          Actually I am facing problems with XI Server.
    we have decided to reinstall the server. So, please tell me how to take the back up for all the scenarios that has been created in that. And also tell me how to take the back up for all the things.
    Then how the backups can be used in Newly initialed XI-Sys.
    Please help me.
    Thanks in advance.
    Danab

    Hi,
    In your IR and ID , you can export the Objects as TPZ files which can be reimported later.
    To expoert, select the SWCV in your IR or the Configuartion Scenario in ID and then Tools --> Export and then specify the directoy in your XI server to which export should be done and then export the same.
    Now, they will be available as TPZ files. When you need to reimport, tools --> Import and you can import.
    Regards,
    Bhavesh

Maybe you are looking for

  • What can I do about an error (-69)?

      I'm so frustrated!   I added a song to iTunes a night previous to this incident, but I did not sync my iPod at that time. I also updated iTunes that same night.   Later the next day, I plugged in my iPod and I got an error screen on iTunes. It said

  • Internal Error -2038 Invoice Creation

    ¡Hi! Help! I explain my problem I've created a vb.net 2005 application. Through DI API (SBO 2005 SP 01, patch level 20). This application, windows forms run, it opens an SBO conection and  starts a timer. Every 5 secconds the timer ticks, it searches

  • Is there any chance that I can get a video chat

    Is there any chance that I can get a video chat (like I recorded) that I had a few days ago? It is very important for me, please reply me back if you know something, thanks

  • IPhoto '09 and Mountain Lion

    Has anyone else with iPhoto '09 (v8.1.2) upgraded to Mountain Lion already? I usually keep as up-to-date with my Apple software as I can, but I really was disappointed with the iLife '11 version of iPhoto so I've been holding back on that update. Now

  • How can I get a list of users

    How can I get a list of users who work now in B1