How to have a colored dropdownlist

Hi All,
Is there any way to customize a dropdownlist?
For Example lets say I have a dropdownlist consisting of Direct Sale and Wholesale and I wish for Direct Sale to have a blue background and Wholesale to have a red background. So is there anyway I can tweak the following code to insert the color? Thanks in advance! =)
<h:selectOneMenu required="true" value="#{clientBean.businessType}">
<f:selectItem itemLabel="" itemValue=""/>
<f:selectItem itemLabel="WholeSale" itemValue="Wholesale"/>
<f:selectItem itemLabel="Direct Sale" itemValue="Direct Sale"/>
</h:selectOneMenu>

Hi,
Write Expression language in contentStyle to do this and /use af_selectOneChoice instead selectOneMenu
See following will useful
http://docs.oracle.com/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_selectOneChoice.html
http://jdevadf.oracle.com/adf-richclient-demo/faces/components/#%2Fcomponents%2FselectOneChoice.jspx

Similar Messages

  • Fcp to color how you have got color to work

    Hi Guys I am having problems in getting the work flow with color to work and keep asking question on how to fix it , so i am thinking is there any body who would like to share how they got color to work and what setting you use, what formats ect. so we could get a list of working mac that every body can see. so please if you are up and running and your wrok flow works please tell me and all the other just how you have done it
    Thanks

    Hi Trevor,
    welcome here!
    Maybe your message tells us more about some frustrations you have been experiencing rather than the actual technical glithces you have encountered.
    Therefore, I start with a very symple reply.
    When I need Color to grade my video (usually DVCPRO HD) I simply go to file>send to>Color.
    I colour grade, render and send it back to FCP.
    Never had problems with that.
    To use Color you may need (recommendable) dual core intel processor or higher, 4GB RAM or higher, X1900 graphics card, High Def. external monitor. An external or internal drive capable to let you edit on the fly.
    I noticed that you are using Leopard.
    Issues related to the new OS with FCPstudio2 are quite common and we are all taking notice of it.
    Leopard was not specifically designed for FCP users so those and other issues were more or less predictable.
    Hope this helps!
    Gig

  • How to have alternate colors in table component?

    Hi everyone,
    Using the jsf data table, you can easily set the rowClass to set alternating row colors.
    I am sure it is possible to do the same using Sun's Table Component. Please share how???
    I looked in the theme css but in vain!!!
    Thanks!

    Hi,
    Please check out the blog entry titled "Creator: How To Highlight Specific Data Table Rows" by Tor, one of Creator's engineers. This is available at:
    http://blogs.sun.com/roller/page/tor/20050113#creator_how_to_highlight_specific
    Hope this helps.
    RK

  • How 2 have certain color in layer below make parts of layer above transparent

    I have an opaque layer. The underlaying layer has green spots. I want those green spots to "shine through" the upper layer. How? In Photoshop there are blending modes, I haven't found anything similar in AE. I use AE CS5.

    The blend modes in AE are just like the blending modes in Photoshop. I think you're looking for the Blend If layer style.
    Or you might be looking for this:
    The first can be brought into After Effects by importing a PSD as a composition with the Blending Options set in layer styles. It will show up under Layer Styles and can be copied and pasted to other layers. Unfortunately, you cannot make the blend adjustments in AE, you can only turn the effect on or off. The API's just don't exist that allow that to happen.
    It looks like this in AE:
    The second, Preserve underlying transparency is just a check box in the timeline. I use this feature all the time. You'll find the box between the blending modes and the track matte. There's a T at the head of the column. In a strange twist, this feature does not come into the timeline when you import a PSD as a composition, it must be turned on manually.
    Hope this helps. I actually use both all the time.

  • BOXI 3.0 To have different color if bar graph

    Hello BO experts.
    Alias here. I have one question.
    I have made Bar Charts-Vertical Grouped in BOXI Web Intelligence.
    The graph is just shown one color for every bar eventhough the bar represent different categories.
    How to have different color for each bar? Can we do that in BOXi webi?
    Thank you very much.
    Best regards,
    Alias

    Alias, if you want to change the default color you can do it on grah properties (Appeareance/Data/Palette).
    BO shows the same color for the same measure.
    If you need different colors for each category you could create one variable for each category and include them in your graph.
    Hope that helps.
    luis

  • I'm converting a word doc to a pdf and have a color spin wheel - going on 10 min now. any clue as to why? or how i make it stop?

    I'm converting a word doc to a pdf and have a color spin wheel - going on 10 min now. any clue as to why? or how i make it stop?

    Hit command tab and swtich to the Finder, under the Apple menu is Force Quit, do that to the program that is causing your "hang" and restart the program and what you were doing.
    If you didn't save your file beforehand, then your going to have to make it again.

  • EPDF files failing to read on ADE reading software when they have Sidebar color graphics and text, how do we fix problem?

    We have 2 different InDesign files not reading properly in ADE reader. Both files have sidebar color graphics and text in them. The one original file's EPDF was showing blank pages for all the page with the sidebars in it when opened in ADE (they are DRM wrapped). Pages that did not have the sidebar showed up fine. Our ebook distributor is telling us that we have to rasterize the file. We are working in InDesign 6 with Adobe Acrobat X Pro. We made JPEGS of each page and reimported into an InDesign file and exported to PDF and our ADE reader then showed the sidebar pages. The file is pretty large though and I have a full length book that has the same problem. What is the problem with our sidebars and what are better solutions than JPEGS for each page? Thanks.

    I will give that a try, thank you.

  • How to change the color of Menu links in obiee

    Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
    obiee 11.1.1.5.
    Thanks

    You have to customize portal banner and portal content CSS files as needed in OBIEE server.
    below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
    http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
    Customization of login page, banner,logo in obiee11g
    Thanks
    Jay.

  • How to change front color in Visual composer

    Dear friend,
    i am taking numerical expression box into visual composer table view
    and try to change the front color in style tab for that field property
    but front color is  not changing in output(back ground color is changing ).
    how to change front color in visual composer?
    and can we change the symbol color too?
    thanks and regards,
    dushyant.

    Hi Vani!
    1. Unfortunately one of my requirements is that I can only get data from queries and not from Web Services or other sources, so no WS calling would be allowed in my deployed I-View, but thanks anyway for your suggestion.
    2. You are right, I was not clear enough in my first post. Let's say I have 3 rows and 12 columns, what I want is the following:
    ROW3 = ROW1 / ROW2
    obviously for each column. Do you have an idea about how it could be done??
    Thanks a lot,
    Andrea

  • How to change background color to JCheckBox in a JTable?

    Dear Friends,
    I have an JTable in my application. It has four columns. First, third and fourth column contains JCheckBox (JCheckBox is created using Boolean.class), secod column contains values.
    I have to change some of the cell color where JCheckBox is present.
    Could anyone please tell me how to change the color of the cell in the JTable?
    Thanks in advance,
    Sathish kumar D

    You would use a custom renderer.
    To get better help sooner, post a SSCCE that clearly demonstrates your problem.
    Use code tags to post codes -- [code]CODE[/code] will display asCODEOr click the CODE button and paste your code between the {code} tags that appear.
    db
    Alternative link: SSCCE
    Edited by: Darryl.Burke

  • How to add background color in JFrame

    I have three classes, Car, CarComponent, and CarViewer. I don't know how to code background color. Do I add it to CarViewer where the JFrame is or CarComponent?
    CarViewer:
    import javax.swing.JFrame;
    public class CarViewer
       public static void main(String[] args)
          JFrame frame = new JFrame();
          frame.setSize(300, 400);
          frame.setTitle("Two cars");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          CarComponent component = new CarComponent();
          frame.add(component);
          frame.setVisible(true);
    }CarComponent
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import javax.swing.JComponent;
       This component draws two car shapes.
    public class CarComponent extends JComponent
       public void paintComponent(Graphics g)
          Graphics2D g2 = (Graphics2D) g;
          Car car1 = new Car(0, 0);
          int x = getWidth() - 60;
          int y = getHeight() - 30;
          Car car2 = new Car(x, y);
          car1.draw(g2);
          car2.draw(g2);     
    }

    What JSG said, plus I really don't think it's a good idea to instantiate new Car objects in a paintComponent override. Painting methods should be restricted to painting activities, as a matter of principle.
    One alternative is to construct your Car instances in a separate method and call repaint() when done; another is to provide a Car method say moveTo(int x, int y) OR refactor the draw(Graphics g) method of Car to draw(Graphics g, int x, int y). Both these suggest that you maintain the Car references as instance fields of CarViewer.
    In future (not this time), Swing related questions should be posted in the [Swing forum|http://forums.sun.com/forum.jspa?forumID=57]
    db

  • How to set background color in af:inputText in an af:table

    Hi,
    how to set background color in af:inputText in an af:table depending on the value of af:inputText.
    For example, how to set background red if the af:inpuText is empty
    Thanks

    Hello Pavo,
    it's also possible to take the code from ebitar and use the expression within styleClass instead of inlineStyle.
    E.g. you can define a custom style "StyleClassEmptyText" in your skin and set this styleclass if af:inputtext is empty.
    By using style classes you can have the same style in the whole application and you are able to change this style on a single point(in the styleclass) for the whole application.
    br
    Peter

  • How to change background color in online editor

    How to change background color in online editor

    Jeff,
    if you try to change all the plsql keywords to the same background color (that is not either white or black or blue) via the options panel in SQL Developer (Code Editor > PLSQL syntax colors), you will get the new background color in the worksheet only for the areas with plsql text, while the areas without any text will have the same background color as the base color scheme you started with. This means that there is no way to change the "general background" color via the options panel, but you have to use the same background color of one of the predefined color schemes.
    This seems to me a bug, but probably it's not considered high priority, so it will not be fixed for the time being.
    I would like to stress the fact that being able to change the color scheme of the development environment that you use every day about 8 hours a day can make quite a difference on your eyes at the end of the day.
    Thanks,
    Paolo

  • How to select a color of cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY

    Hi.
    I need to select a color of a cell in REUSE_ALV_HIERSEQ_LIST_DISPLAY.
    I have found an example, but 
    It shows how to select a color of sell in REUSE_ALV_LIST_DISPLAY.
    Can you give me an example of code?
    Thanks.

    Here ia a simple example of the method how to paint a cell / line / column using REUSE_ALV_HIERSEQ_LIST_DISPLAY  function.
      Programm:    zalv_hierseq_color
      Paint a line, a colomn, or a cell
      using REUSE_ALV_HIERSEQ_LIST_DISPLAY
      Victor Stupin, Russia 2009
    REPORT zalv_hierseq_color.
    TABLES: spfli.
    TYPE-POOLS: slis.
    SELECTION-SCREEN BEGIN OF BLOCK rad1.
    PARAMETERS:
            p_row TYPE i,
            p_col TYPE i.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN COMMENT /1(50) comm1.
    SELECTION-SCREEN COMMENT /1(50) comm2.
    SELECTION-SCREEN COMMENT /1(50) comm3.
    SELECTION-SCREEN END OF BLOCK rad1.
    INITIALIZATION.
      comm1 = 'Paint a line: fill ONLY p_row (p_col is empty)'.
      comm2 = 'Paint a colomn: fill ONLY p_col (r_row is empty)'.
      comm3 = 'Paint a cell: fill P_COL and R_ROW'.
      DATA:
            t_fieldcat TYPE slis_t_fieldcat_alv,
            fs_fieldcat LIKE LINE OF t_fieldcat,
            fs_layout TYPE slis_layout_alv ,
            w_color(4) ,
            w_row TYPE i,
            w_fieldname(20),
            w_prog TYPE sy-repid.
      DATA:
      BEGIN OF t_spfli OCCURS 0,
            color(4),
            checkbox ,
            cell     TYPE slis_t_specialcol_alv,
            carrid   TYPE spfli-carrid,
            connid   TYPE spfli-connid,
            cityfrom TYPE spfli-cityfrom,
            cityto   TYPE spfli-cityto,
            distance TYPE spfli-distance,
            keyln    TYPE int4,
            box      TYPE char1,
            lineno   TYPE int4,
      END OF t_spfli.
      DATA:
      fs_cell LIKE LINE OF t_spfli-cell.
      DATA: gt_item    LIKE TABLE OF t_spfli WITH HEADER LINE,
            gt_header  LIKE TABLE OF t_spfli WITH HEADER LINE,
            gs_keyinfo TYPE slis_keyinfo_alv.
    START-OF-SELECTION.
      SELECT *
      FROM spfli
      INTO CORRESPONDING FIELDS OF TABLE t_spfli.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 1.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 2.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 3.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 4.
      fs_fieldcat-tabname = 'GT_HEADER'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 5.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CARRID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat .
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 6.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CONNID'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = 'X'.
      fs_fieldcat-hotspot = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 7.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'DISTANCE'.
      fs_fieldcat-key = ' '.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
      fs_fieldcat-row_pos = 1.
      fs_fieldcat-col_pos = 8.
      fs_fieldcat-tabname = 'GT_ITEM'.
      fs_fieldcat-fieldname = 'CITYFROM'.
      fs_fieldcat-ref_tabname = 'SPFLI'.
      fs_fieldcat-key = ' '.
      APPEND fs_fieldcat TO t_fieldcat.
      p_col = p_col + 4.
      LOOP AT t_fieldcat INTO fs_fieldcat WHERE tabname = 'GT_ITEM'.
        IF fs_fieldcat-col_pos EQ p_col.
          fs_fieldcat-emphasize = 'C600'.
          w_fieldname = fs_fieldcat-fieldname.
          IF p_row IS INITIAL AND p_col GT 0.  " <---- paint only column if p_row is empty
            MODIFY t_fieldcat FROM fs_fieldcat TRANSPORTING emphasize.
          ENDIF.
        ENDIF.
      ENDLOOP.
      fs_cell-fieldname = w_fieldname .
      fs_cell-color-col = 6.
      fs_cell-nokeycol = 'X'.
      APPEND fs_cell TO t_spfli-cell.
      IF p_row IS NOT INITIAL AND p_col IS NOT INITIAL.  " <---- paint a cell
        MODIFY t_spfli INDEX p_row TRANSPORTING cell.
      ENDIF.
      fs_layout-info_fieldname = 'COLOR'.
      fs_layout-coltab_fieldname = 'CELL'.
      fs_layout-f2code = '&ETA'.
      gs_keyinfo-header01 = 'KEYLN'.
      gs_keyinfo-item01   = 'KEYLN'.
      LOOP AT t_spfli INTO gt_item.
        gt_item-keyln = 1.
        gt_item-lineno = gt_item-lineno + 1.
        APPEND gt_item.
      ENDLOOP.
      READ TABLE t_spfli INDEX 1 INTO gt_header.
      gt_header-keyln = 1.
      gt_header-lineno = 0.
      APPEND gt_header.
      CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
        EXPORTING
          is_layout                      = fs_layout
          it_fieldcat                    = t_fieldcat
          i_tabname_header               = 'GT_HEADER'
          i_tabname_item                 = 'GT_ITEM'
          is_keyinfo                     = gs_keyinfo
        TABLES
          t_outtab_header                = gt_header
          t_outtab_item                  = gt_item
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
      IF sy-subrc = 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • How to get default color of a selected row in a JLIst

    I have a JList that I am changing the font color for based on a certian situation so I created my own MyCellRenderer to do this. However, when I select an item in the list the row is no longer highlighted. I used the isSelected method to determine if a row was selected and then change the background color of that row. However, I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that color. How do I obtain what that color is? I found an example where you can get the default color for the background of a button and use that color so I would guess it is something similar to that. My code is below so I hope someone can tell me how to get that color that I want.
    Thanks...Chris
    class MyCellRenderer extends JLabel implements ListCellRenderer {
         public MyCellRenderer() {
              setOpaque(true);
         public Component getListCellRendererComponent(
             JList list,
             Object value,
             int index,
             boolean isSelected,
             boolean cellHasFocus)
             int index1 = value.toString().indexOf("-");
               String errors = value.toString().substring(index1 + 1, index1 + 6).trim();
             int numErrors = Integer.parseInt(errors);
               if (numErrors > 0)
                      setForeground(Color.red);
                      setBackground(Color.white);          
             else
                  setBackground(Color.white);
                  setForeground(Color.black);
             if(isSelected)
                  //ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("JButton.background");
                  ColorUIResource col = (ColorUIResource)UIManager.getDefaults().get("Button.background");
                  setBackground(col);
             setText(value.toString());
             return this;
    }

    Swing related questions should be posted in the Swing forum.
    I would like the color to be the default color that you get when you select a row in a default JList. I can't seem to figure out how to get that colorlist.getSelectionBackground();

Maybe you are looking for

  • HT200189 Updated 10.9.1 but will not allow me to install VPN Update

    Updated OS X to to v. 10.9.1 and restarted computer twice, but will not allow me to select a destination for VPN Update for OS X Server software; error says "VPN Update for OS Server can't be installed on this disk (MacIntosh HD). This volume does no

  • Apps will not launch in Windows 8

    I have tried the suggestions in the discussion area but in Win8 there is no Start function. How do you launch an application in Windows 8?

  • Page from a Template - Nav Bars Not Coming Across

    Have Dreamweaver CS4 on XP I have a template that has an absolute placed div for the header box...and just below that a 50 pixel absolute placement div to hold the navigation bar. The nav bars have 8 different buttons and several sub menus. They look

  • Black & White and RAW

    I shot some RAW images in my camera's (Olympus E-620) monochrome mode, but can only get color images when I open in Elements 9. How do I get the Black and White settings from the camera ? ( I know that I can de-saturate the color image, but shouldn't

  • Document windows in taskbar

    Version 8 allowed you to open multiple documents but only show one instance of Acrobat on the taskbar, rather than showing each document as a separate instance (though it wasn't enabled by default, you had to choose the option). Did they remove this