How to get a selectOneMenu option

hi,
I have a drop -down list in my page.for this I have used selectOneMenu tag in my jsf page.but the options for this menu must be from the bean.the method returns an arraylist .this arraylist contains DTO objects.In this DTO,one property is my menu option.how to retrieve that.

Your method should return a list of select items from your method.
Following example populates a select items list by using an ArrayList.
public List<SelectItem> getUsers(){     
     List <SelectItem> usersSelectList = new ArrayList<SelectItem>();
     List<User> usersList = userService.getUsers();
     for (User refUser : usersList) {
          usersSelectList.add(new SelectItem(refUser.getFirstName(),refUser.getFirstName());
     return userSelectList;
}

Similar Messages

  • How to get the download option in Firefox 3.6.13. Earlier it was showing in the Navigation Bar

    How to get the download option in Firefox 3.6.13. Earlier it was showing in the Navigation Bar just beside where we see the URL.

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • How to get ABAP mapping option in Interface Mapping

    Hi
    experts
    How to get ABAP mapping option in Interface Mapping . i need to do abap mapping . i didnt find the option
    plz help me

    Hi,
    If u2018ABAP-classu2019 and u2018XSL(ABAP ENGINE)u2019 does not appear under the u2018Mapping Program Typeu2019 in Interface Mapping, one has to make an additional entry in the Exchange Profile. 
    Only a user with the J2EE security role (administrator) can make the following settings in the Exchange Profile.
    It is achieved in the following manner:
    1) Open http://<host>:<port>/exchangeProfile/index.html
    2)Choose IntegrationBuilder ->IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes
    Add: R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)
    To check whether the data has been successfully read from the exchange    profile:
    1- Open http://<host>:<port>/rep/support/admin/index.html
    2- Choose Administration of Properties -> All Properties
    3- If the value associated to parameter com.sap.aii.repository.mapping.additionaltypes is not visible, press REFRESH button
    After doing above check in IR, if still don't find the option for ABAP mapping then refresh the cache.
    Award points if useful.

  • How to get the Swatch Options Color Type?

    How to get the Swatch Options Color Type name that is "Process Color" or "Spot Color" which shown in the Color Type via scripting..
    Thanks...

    Could you please provide any example for how to get the color type name that is process or spot. Thanks for looking into this.
    Advance thanks,
    Maria Prabudass

  • HT1937 how to get back 3g option from lte on iphone 5s

    how to get back 3g option from lte on iphone 5s

    You don't. The presence of that option is at the discretion of your carrier.

  • How to get the "Eps option" details for illustrator cs3.

    Dear all,
    Could you please advice me how to get the Eps option(Preview, Embeded Fonts(for other application), Include Document Thumbnails etc.) details for illustrator saved files through scripting. I have attached the screen shot("sample.bmp") for yours review. Please explain in detail.
    Thanks in advance.

    Thanks for your response. As per your advice i tried to open the illustrator cs3 file in text editor. I got only the Thumbnail and Version details. But I am unable to get the remaining below details.
    (Preview=>Format : TIFF (8-bit Color), TIFF (Black & White), Transparency=>Overprints : Preserve, Discard, Fonts=>Embed Fonts, Options=>Include Cmyk PostScript in RGB Files, Compatible Gradient and Gradient Mesh Printing, Adobe Postscript=>LanguageLevel2, LanguageLevel3) .
    Kindly advice me how to get the above details.
    Thanks for looking into this.

  • How to get the EPS Option Format?

    I need to find out the saved eps option format that is "TIFF (8 bit color)" or TIFF (Black & White) which showed in EPS Option dialog window. I have attached the screen shot for your review. Kindly advise me how to get this information with out opening the file in illustrator.
    Thanks for looking into this.

    An interesting question. According to the EPSF 3.0 file specification (which can be downloaded here), the 30-byte header right at the beginning of the file only identifies basic type, size, and address of the preview, You can tell whether there is any preview at all, and, in the case of the Windows (DOS) EPS binary file header, whether the preview format is WMF or TIFF. Unfortunately, I don't see any way to differentiate between 8-bit and b/w TIFF previews.
    Still, you can get an idea by using a viewer/file management application, such as ST Thumbnails Explorer, which uses the EPS preview for on-screen display. If you know your artwork contains color information, the thumbnails will tell you whether that preview is 8-bit color or black-and-white.
    You're out of luck if you don't have color information in the file (because both 8-bit and b/w previews will appear monochromatic).

  • I cannot delete songs from my iphone via itunes, but can with my ipod and regular library. The option when I right-click isn't there ONLY with the iphone, any ideas how to get back this option?

    Can anyone help me get back the options when I right click with my iphone with itunes that drop down menu has oly 3 features and none is what I want or need?
    This happened since the last update.
    Geoff

    I am facing the same problem, please help us ...

  • How to get the search option when we are creating new view

    Hi,
    How to get the search functionality when we are creating new view.
    Ex:- if we see the standard component BT112S_SC. Under this
    AdvancedSP  is the view,
    same kind of view if i want to create new view with same bol entity in my new component. I am unable to get that search functionality.
    for search functionality,,i think view should inherit the super class CL_BTSRV_ADVS_CNTRL, but in my new view controller class, i am unable to find this class.
    Can anybody give me some inputs on this.
    Thanks,
    neelam

    In case you are still not able to proceed please refer the following blog.
    http://blogs.moovar.com/sap/sap-crm-web-ic-create-a-new-search-view-and-result-view
    Regards,
    Harshit

  • How to get NI veristand option in LabVIEW tools menu

    HI All
    I have developed a code in LabVIEW for which I want to develop Veristand model.
    but for creating the model , the procedure which i followed on this forum is from LabVIEW tools go to NI Veristand and then create the model.
    BUt in my LV2013 and 2012 also , I am not getting NI veristand option in tools.
    I have NI veristand 2011. Do i need to select any option while installation?
    I have selected LV model support also while installing.
    Please help.

    You need LabVIEW 2011 to build lvmodels for VeriStand 2011. This goes for all LabVIEW plugins.
    After you install LV 2011, you can re-run the veristand 2011 installer and select the model support option I believe I get the menu item you need.
    Jarrod S.
    National Instruments

  • How to get Runtime 5 option to make an installer?

    Hello,
     when i am going to creare the insataller it is showing up to Runtime 4 option. To use runtime 5 feature i have download NIDAQ871-1 for daq driver update. but at the time of installation it is showing higher version is already installed and its not allowing me for further installation. i am not gatting excatly which DAQ version i need to install to get Runtime 5 option.
    Attachments:
    runtime 5.JPG ‏98 KB

    Have you verified what's actually installed on your computer? What does MAX show as the version that's installed?

  • How to get dynamic select options from logical database?

    Hi,
    in one of my extended reports (means - overwritten standard SAP functionality in Z-namespace) I'm using LDB 'DDF'. I've been requested to validate some of the dynamic selection options (for example - field HKONT at Document level) and to split the logic depending on the particular value(s).
    Tracking what is happened in the LDB program I found that this select option is added as dynamic WHERE clause to the SELECT statement - in a way:
    WHERE bukrs = p_burks AND ... AND
    (where_tab)
    Is there a way to get values of these LDB dynamic select options into my report and if yes - how?
    Thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP Abap Consultant

    Hi,
    Try to use the following fm in your report and check
      call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
        exporting
          curr_report        = sy-cprog
          mode_write_or_move = 'M'
        importing
          p_trange           = gt_dyn_trange
        exceptions
          not_found          = 1
          wrong_type         = 2
          others             = 3.
    PS please make a whereused of this fm , how it has been used in LDB's to get dynmic selection values

  • How to get value from option box and submit accordingly

    Sorry for posting my question. I have been trying to edit message and repost it and not successful. Hence I am reposting my question. Please let me know.
    I am right now exploring JSF for presentation layer. I am designing a form with <h:outputLabel..> and <h:inputText...> for the user to input his value. I also have a radio button as below. <h:outputLabel..>
    <h:inputText...>
    <h:selectOneRadio id="libraryList" >
                                <f:selectItems value="#{libraryList}"/>
                            </h:selectOneRadio>And I have included the following piece of code in faces-config.xml as below.
    <managed-bean>
            <managed-bean-name>libraryList</managed-bean-name>
            <managed-bean-class>java.util.HashMap</managed-bean-class>
            <managed-bean-scope>application</managed-bean-scope>
            <map-entries>
                <map-entry>
                    <key>Pass</key>
                    <value>Pass</value>
                </map-entry>
                <map-entry>
                    <key>Fail</key>
                    <value>Fail</value>
                </map-entry>
            </map-entries>
        </managed-bean>Hence I get two option box as Pass and Fail.
    I am also bit aware of navigation rules of JSF. Now I want the user to take to the step 2 if he chooses the option Pass and if the user chooses Fail, then I want to reset the values of the above form and display the same form.
    I have not done any Java part of the application yet as I am a newbee and hence started doing JSP pages and config-faces.xml part. Please let me know how to proceed further.

    Create a bean, bind the value to the bean, let the action method return that value and add navigation-case entries for those outcomes.

  • How to get 4 Input options in my Audio Track

    I recently Reset my G5 and now have to Re-Install a lot of my audio software. I was operating with an option of 4 inputs on my Audio Tracks and now after re-installing, there are only 2. I was using Input 3 to record vocals, how do I get the 2 missing Inputs back ?
    thankyou

    My Driver is set on Aggregate Device. Im running my mic through my Pioneer Djm600 turntables and into my M-Audio MobilePre USB interface. I can see that the interface in recieving the signals but Logic isn't. Previous to this hold up, I'd been recording vocals on Input 3 on the Audio Track. It was just always there. But now, after reseting my computer inputs 3 & 4 are no longer there. I tried the relaunch option with out success. I'm frustrated, being that I had everything the way i liked it and now it feels like i'm starting over.
    If I can somehow hook up Logic to record vocals on inout 2 thats great. What do you think ?

  • How to get "in cache" option?

    When I get search results as a list of links, I do not have "in cache" option. I used to have it behind each link earlier. When I clicked "in cache" the web page opened with highlighted searched words. Unfortunately, now I do not have such a possibility. What is the solution?

    If you look at the right side of each result on the Google result site then you notice an arrow.<br />
    If you hover that arrow then a pop-up opens with that "Cached" choice and others.

Maybe you are looking for

  • How many times can I install my CD LR4 ?

    Hi I have LR4 in CD but the past few months, I have the Creative Cloud. I installed the LR5 from my CC, but I want to uninstall the LR4. Could I possibly reinstall? Thank you

  • Aq Adapter ( ESB ) and CLOB payload

    I have a AQ adapter which consists of the following payload : CREATE OR REPLACE TYPE "XML_CLOB_TYPE" AS OBJECT (XML CLOB I've added an AQ adapter in ESB which enqueues messages to this specific queue. I've got a certain payload ( in XML format ) that

  • Captured images not showing in gallery Nokia N8

    I have 2 identical Nokia N8. I have changed nothing on either in terms of programs/ applications/ etc. When I took a photo, image would appear in both: - Gallery (1st page) - Captured (2nd page) Suddenly, on one phone only the photo is only appearing

  • About pl/sql remove

    hi, I have a table product_group_t include two columns product_group_index and product_group.Now I add the procedure in order to remove the product_group from product_group_t.I don't know how to do.And I am not clear to use procedure or function.prod

  • Using transaction activation policy together with TOPLINK Java object/relational mapping "commit and resume" transaction?

    Has any one has experience using WLE transaction context together with TOPLINK Java version of "commit and resume" context?