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

Similar Messages

  • How to have push button in Table control

    Hi Experts,
       I have an internal table which I populate in table control. How can I have pushbutton in table control(in every row). If done how to have funtion code which will trigger PAI.
    Thanks and regards.
    Venkat

    Hi,
    I dont think that pushbuttons will be of much use as when you click a button same code will be executed all time.
    So, you can take either selection column in table control (use the SELCOL in the table attributes)
    or you can also take a checkbox in table control and then can perform action on lines which were selected by the user.
    Hope this helps you out.
    Regards,
    Tarun

  • 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 create alternate color columns in MS SQL reporting services (rdl)

    I found something related to row coloring at ::
    http://weblogs.sqlteam.com/joew/archive/2008/08/20/60691.aspx
    i went through all the properties for column but none that would help me achive me goal.
    SO in my case .. the no of rows are fixed .. but columns vary .. so i wnat the alternate columns to be of different color (say white and silver)

    Hi,
    Once my no of data sets (mine is 3 columns per data set) changes, the highlighting 'shifted' like below. Any idea how this happen?

  • How to control background color of table cell in an html report?

    I am using Labview 6.1 to generate a report.  In that report there is a table created using the Append Numeric Table to Report VI.  I want to be able to programmatically control the background color of each cell in the table.  Also, how can I programmatically control the background color of the row and header cells of the same table.  I am also generating a second table in the same report using the Append Text Table to Report VI and I would like to programmatically control the background colors of the cells in that table as well.  Thanks.

    Hi epsilon-d...,
    i´m not sure if there is an ready to use function to do what you want, but you can enlarge the available function. Open the "Append Numeric Table to Report.vi" and go to the HTML Case. There you can see another vi which creates the html table. In the VI "HTML Report Table Row" you can add the option: bgcolor="your color" inside of the "TR" tag.
    Hope it helps.
    Mike

  • 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

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

  • How feed many record in table component and not use append command again

    hi master
    How I feed Multiple records in table component and not use append and save command again and again
    Same as oracle grid
    I give many record and save one time
    Please give me idea how I add Multiple record and save one time not use append and save command again and again
    Thank�s
    aamir

    Hi!
    appendRow() method just add temporal row. For add them to DB commitChanges() method should be used. So you can use appendRow() method several times, fill every new row and only then use commitChanges() method. In this case all new rows will be added to DB per one time.
    Thanks,
    Roman.

  • Sroll add in table component

    how to add scroll bar in table component ???

    Using pure CSS is unfortunately not possible since a certain webbrowser developed by a team in Redmond for some unclear reasons doesn't support overflow in tbody (else this is solveable in only 3 or 4 lines of CSS). You have to use Javascript in any way, so I would just immediately start with it.

  • 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

  • Alternate color in group footer

    Hi
    i am using following formula to apply alternate color in detail section, section expert, color, background color-
    if Remainder(recordnumber,2)=0 then RGB(223,223,223) else RGB(255,252,255)
    but if i apply same formula to group footer section it's not working.
    how to apply alternate color in records of group footer section?
    Please give me solution.
    Thank you

    Hi,
    Add
    while printing records;
    Above the  formula and try to run it.
    Regards,
    Neo.

  • In ALV, how do u get alternate colors in output

    In ALV, how do u get alternate colors in output

    For a non OO ALV...
    TYPE-POOLS:  slis.
    DATA:   xfield    TYPE slis_t_fieldcat_alv,
    gs_layout TYPE slis_layout_alv.
    In your data structure you have tu put a field for the color, example:
    DATA: BEGIN OF xdata OCCURS 1.
    DATA:   ebeln          LIKE ekko-ebeln,
            name1          LIKE lfa1-name1,
            txz01          LIKE ekpo-txz01,
            color_line(4)  TYPE c,           " <==== this is the color line
    END OF xdata.
    You have create a form for the layout like this:
    FORM init_layout.
      gs_layout-info_fieldname = 'COLOR_LINE'. "<==the name of de field of the structure
    ENDFORM.
    Perform the init_layout in the initialization.
    Your call alv function, have to be like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active         = 'X'
          i_callback_program      = 'YOUR_PROGRAM'
          i_callback_user_command = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = xfield[]
        TABLES
          t_outtab                 = xdata
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.

  • How to Create a Table Component Dynamically based on the Need

    Hello all,
    I have a problem i need to create dynamically tables based on the no of records in the database. How can i create the table object using java code.
    Please help.

    Winston's blog will probably be helpful:
    How to create a table component dynamically:
    http://blogs.sun.com/roller/page/winston?entry=creating_dynamic_table
    Adding components to a dynamically created table
    http://blogs.sun.com/roller/page/winston?entry=dynamic_button_table
    Lark
    Creator Team

  • Table component - how to find out which cell is clicked

    Hello!
    I have a couple of questions regarding table component
    1. Is there any way to find out which table cell is clicked on?
    2. And is it possible to paint clicked cell programmatically?
    Possible solution might be a Select Boolean Checkbox inside a cell, but anyway, i'd have to determine which cell contains this checkbox (some kind of cell coordinates, etc...)
    Thank you

    1. Is there any way to find out which table cell is clicked on? It would be easy to suggest the way, if you can share us the requirement
    2. And is it possible to paint clicked cell programmatically?You can do it through javascript by setting contentStyle property.
    Sample Code:
    <af:table ...>
      <af:column>
         <af:inputText ...>
                  <af:clientListener method="paintCurrentCell" type="click"/>
         </af:inputText>
      </af:column>
    </af:table>
    <!-- javascript method -->
    function paintCurrentCell(event){
        event.getSource().setContentStyle("background-color:red");
      }Sireesha
    Edited by: Sireesha Pinninti on Nov 10, 2009 7:01 PM

  • 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

Maybe you are looking for

  • Wraping readonly text

    I have a report with associated form which should display the values of attributes of one record as read-only texts. One of the attributes is a long text (VARCHAR2(4000)). If I define the field as read/write and display as TEXTAREA and width, say, 60

  • Strange glitch with keynote and iPad

    I have been using Keynote files created on my Mac and transferred to my iPad3 to go over problem sets in my physics classes. I tecently ran into an odd glitch. Sometimes, an arrow pointing upward on the original slide, shows reversed on the iPad, and

  • FIREFOX 4 - YAHOO 'YES OR NO' DIALOGUE BOX FAILURE

    I logged on to Firefox to search for something. I got this gray pop-up dialogue box asking me to select Yahoo Tool bar functionality. I declined on everything because I really hate Yahoo from a disastrous run in with it's instant messaging a year ago

  • Sql query needed to verify force logging

    Hi. Does anyone out there have SQL query we need to run in order to see if our db is working in force logging mode? Thanks. DA

  • Can i save my form and print it

    Can I save my form and print it