Hto to change JSF JSP table display color?

hai
i am using JDeveloper 10g version 10.1.3. i am working on Web Application[JSF,ADF BC]. i create one table in jsp page. when i run the page the table default color(light green) displayed. but i want to change table display color. i search on table property inspector (inline style) throughly. but i didnt find there to change the color.
how to do this
thanks in advance

You can use the ADF Faces skining mechanism. Chapter 14 in the ADF Developer Guide.

Similar Messages

  • UIX - Changing read-only-table row colors

    Hi
    I have the requirement to alternate the background-row-color in an UIX read-only-table dependent on a value in the row.
    Can anybody point me in the right direction of a solution please?
    I'm familiar enough with the styles in the XSS style sheets, and using EL to dynamically change attributes of a UIX web page when rendered. However in the default <table> UIX tag generated by JDeveloper when dragging a data control onto a UIX web page, there doesn't appear to be a <row> tag for changing the background colour?
    Any help appreciated
    I'm using JDeveloper 9.0.5.2.
    Cheers,
    CM.

    I don't know if this works in JDeveloper 9.0.5.2, but there's a solution at least for JDevloper 10.1.2. You have to define a different styleClass (a CSS) for each column, depending on a condition. This solutions works as well together with row banding:
    <column>
      <columnHeader>
        <sortableHeader model="${ctrl:createSortableHeaderModel(bindings.MyView,'Seats')}" text="Seats"/>
      </columnHeader>
      <contents>
        <rowLayout width="100%" styleClass="${ui:cond(uix.current.IsLocked == 'J', 'OraTableCellLocked', '')}">
          <contents>
            <cellFormat>
              <contents>
                <textInput model="${ui:defaulting(uix.current.Seats, ' ')}" columns="10" readOnly="true"/>
              </contents>
            </cellFormat>
          </contents>
        </rowLayout>
      </contents>
    </column>The styleClass "OraTableCellLocked" has to be defined in the file "base-desktop.xss". An example ("Locked" cells are displayed with a red background):
       <style selector=".OraTableCellLocked">
        <includeStyle name="TableCellDataText"/>
        <includeStyle name="TableCellDataVerticalAlign"/>
        <!--<includeStyle name="TableCellDataBackgroundColor"/>-->
        <includeStyle name="TableCellDataBorderColor"/>
        <property name="background-color">#FFA4A4</property>
      </style>Hope this helps, although the original is very old.
    Regards,
    Georg

  • JSF-Data Table displaying all data in a single row

    Hi Guys,
    Im new to JSF, im trying to display the details from a List in a data table, but all the details are getting displayed in a single cell instead of displaying as rows, can someone help me with this problem?

    You need post your code so that we can view it.
    This is an example of dataTable
    <h:dataTable border="1" id="qresults" cellpadding="4" styleClass="subjectQRTbl" cellspacing="4" value="#{wormingList.worming}" var="bbr" first="#{wormingList.firstRowIndex}" rows="#{wormingList.noOfRows}" rowClasses="evenRow,oddRow">
    <h:column>
    <f:facet name="header">
         <h:outputText escape="false" value="Vaccination Date" />
    </f:facet>
    <h:commandLink id="locnum" action="#{appAction.getWormingRecord}" title="Update Worming History Record">
    <h:outputText value="#{bbr.dateWormed}">
    <f:convertDateTime pattern="MM/dd/yyyy"/>
    </h:outputText>
    <f:param name = "recordId" value ="#{bbr.id}" />
    </h:commandLink>
    </h:column>
    <h:column>
    <f:facet name="header" >
    <h:outputText escape="false" value="Vaccination Type" />
    </f:facet>
    <h:outputText value="#{bbr.type}" styleClass="readOnly" />
    </h:column>
    <h:column>
    <f:facet name="header" >
    <h:outputText value="Vaccination Dosage" />
    </f:facet>
    <h:outputText value="#{bbr.dosage}"styleClass="readOnly"/>
    </h:column>
    </h:dataTable>
    Hope this helps

  • Jsp+ table display

    Hello
    I have 3 tables in jsp
    I want to display 2 tables in horizontal row and third table below 2 tables
    How can I do this����.?

    I got this problem solved.
    Now the issue is:
    I want to display data in table when user clicks on submit button in jsp.
    Both, table and submit button, are on the same jsp page.
    How can I do this���..?

  • Why does my cell table not display color but RGB value

    Could somebody please suggest me.
    What I wanted is to let one collumn of a table display colors, but now they display the RGB values of the color not the colors.
    Please suggest me how I should do to get this done.
    Thanks.

    The renderer displays the toString() value of the Object stored in the table by default. If you want to display something else then you need to use a custom renderer
    The Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]How to Use Tables explains what a renderer is and has an example that displays a color in a column.

  • Colors in Dynamic ALV table display

    Hello All,
    I have dynamic ALV table display in which i created the columns dynamically and finally binded that created node and diplayed the table ..
    Now what i want to do is depending on some condition i need to change the colors in the table display..
    I tried to set the color in this way inside the loop .
                     if lv_phase  = '3'.
                   lr_column->set_cell_design( CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-badvalue_medium ).
                     else.
                    lr_column->set_cell_design( CL_WD_TABLE_COLUMN=>E_CELL_DESIGN-standard ).
                   endif.
    This piece of code either changes all the coloumns into one color only why it is not changing the color based upon the condition . I am unable to understand..
    Please help me in this...Do i need to some thing else..

    Solved by creating a new column called cell design ... and settign the set_cell_design_fieldname ...
    This solved my Problem ..

  • Display Tag use with JSF Data Tables

    Has Anyone got to work the Display tag with JSF
    I have got soo far to display the table by using Display tag with JSF dataTables but unable to have a link or command button to navigate
    Theirs a online hack available for the same .....But i am unable to get to run it
    Has anybody got the solution for the same

    Hi ,
    I am trying to do the same but I have no success.
    My code is
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page"
         xmlns:c="urn:jsptld:http://java.sun.com/jstl/core"
         xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8" />
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag" />
         <h:dataTable value="#{sessionScope.users}" var="user" style=""/>
         <display:table name="sessionScope.users" class="" id="user">
              <display:column property="username"/>
              </display:table>
    </html>
    where users is a List Obj in the session. In output I receive just this page.
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="urn:jsptld:http://java.sun.com/jstl/core" xmlns:display="urn:jsptld:http://displaytag.sf.net">
    <jsp:directive.page contentType="text/html; charset=UTF-8"></jsp:directive.page>
    <jsp:directive.page import="fi.tavutaito.hibernate.User,java.util.*,org.displaytag.tags.TableTag"></jsp:directive.page><table style="">
    <tbody>
    <tr>
    </tr>
    <tr>
    </tr>
    </tbody>
    </table>
         <display:table name="sessionScope.users" id="user">
              <display:column property="username"></display:column>
              </display:table>
    </html>
    It seems to that display tags are not parsed...
    Do zou have an idea?
    Thanks a lot in advance
    beppoz

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How to change the background and font color of a particular row in table

    Hi,
       i need to change the background and font color of a particular row. I am using textview as table columns. I tried to do it using semanticColor property of textview  but the font color get changed for the whole column. But i want to change the color of a particular row only.
       If anybody knows please help me(give an example if possible).
           Thanks and regards.
            Pankaj Kumar.

    Hi Pankaj,
    In your data source context node (context node which is bound to dataSource property of Table UI elemennt) do following:
    If data source node is model node: create a value node under data source node, cardinality 1..1, selection 1..1, singleton false. In this new node add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor .
    If datasource node is value add value attribute and set property readOnly=true, calculated=true, property com.sap.ide.webdynpro.uielementdefinitions.TextViewSemanticColor.
    In calculated getter method put your color calculation depending on conditions, like:
    return <condition>
      ? WDTextViewSemanticColor.CRITICAL
      : WDTextViewSemanticColor.STANDARD;
    Bind new created attribute with property semanticColor of textview.
    Best regards, Maksim Rashchynski.

  • Script to change Table display from Drop-down options

    I have created a Web Template in BEx WAD (BW 3.5) with 4 Tables assigned to 4 dfferent Queries. Now I want to change the display of the all the Four Tables based on the selection of display properties chosen in a single Dropdown item. The properties to be selected in the dropdown are like changing the Alternate style display of Rows, Suppress Alternate Style, Display only 30 Rows or 60 Rows.
    Please help me in writing the script necessary to pass the command from the dropdown to all the Tables to get the desired output.
    Thanks,
    Krishna

    Change the path and image to suit in the following
    <!DOCTYPE html>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <select name="image" id="image" class="inputbox" size="1">
       <option value=""> - Select Image - </option>
       <option value="image1.jpg">image1.jpg</option>
       <option value="image2.jpg">image2.jpg</option>
       <option value="image3.jpg">image3.jpg</option>
    </select>
    <div id="imagePreview">
       displays image here
    </div>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
    <script>
    $(document).ready(function() {
       $("#image").change(function() {
         $("#imagePreview").empty();
         if ( $("#image").val()!="" ){
            $("#imagePreview").append("<img src=\"" + $("#image").val()  + "\" />");
         else{
            $("#imagePreview").append("displays image here");
    </script>
    </body>
    </html>
    Gramps

  • LPA Reporting iView - Can we configure or change the table display?

    Hi all...
    We are using the Reporting Launchpad in MSS.  It is using the LPA reporting application to display an employee selection for headcound reports, etc.  The table lists employee, id, and 'P'.  It is limited to 5 entries.  Is there any configuration change this table display?

    Hi 640,
    I just checked it. You cant do it directly in Answers (the css property for the PTCOL2 is going to be the same and I'm not sure how you could assign different div id for it without going through source files). What you could do is create 2 pivot table views and put them side by side in Compound view. Might be tricky, but possible.

  • 10.9.3 update display color change

    Hello all,
    Is it only me or have more people noticed a change in the display color (or color profile) since the latest 10.9.3 update?
    I updated a moment ago while working on some graphic designs. After restart I could clearly see the change as I used a very light (237 235 221) background color and it looks certainly different now. I checked the color profiles and I still use the Adobe RGB (1998) as I did before the update.
    Light conditions in the room are the same, my eyes are stil the same, no huge amounts of coffee since the upgrade either.
    I can live with this but would like to know if something begins to happen with my computer or wether it is a more common problem, then I can rest asure a fix will arrive soon ;-)
    All the best!
    Jeroen

    Try resetting PRAM.
    Reset PRAM.  http://support.apple.com/kb/PH4405

  • CS3 Table Background Color Won't Change

    I have been inserting tables and doing the CSS for them fine
    until after I inserted a Flash object. All tables inserted after
    the Flash object have a medium blue background??? I can't even
    intiate a new CSS rule to change the table background color... it
    just stays this way!?!? Very strange. Anybody else experience this?
    BTW: I've restarted my machine, worked on tables on other
    pages and haven't experienced this issue... it is only after the
    insertion of the flash object. Is there something I'm missing??
    Thanks,
    Chris
    Here is the code inserted by the Flash object placement just
    in case this helps any:

    Let's see the page, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "escargo" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have been inserting tables and doing the CSS for them
    fine until after I
    > inserted a Flash object. All tables inserted after the
    Flash object have a
    > medium blue background??? I can't even intiate a new CSS
    rule to change
    > the
    > table background color... it just stays this way!?!?
    Very strange.
    > Anybody
    > else experience this?
    >
    > BTW: I've restarted my machine, worked on tables on
    other pages and
    > haven't
    > experienced this issue... it is only after the insertion
    of the flash
    > object.
    > Is there something I'm missing??
    >
    > Thanks,
    > Chris
    >
    > Here is the code inserted by the Flash object placement
    just in case this
    > helps any:
    >
    >
    >
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','758','height','508','title','Contractor
    > Performing
    > Pool Contruction, Remodels, Service & Maintenance in
    > Sarasota','src','index','quality','high','pluginspage','
    http://www.adobe.com/sho
    >
    ckwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','index'
    > );
    > //end AC code
    > </script>
    > <noscript>
    > <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="758" height="508" title="New
    Construction,
    > Remodels,
    > Service &amp; Maintenance">
    > <param name="movie" value="index.swf" />
    > <param name="quality" value="high" />
    > <embed src="index.swf" quality="high"
    > pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Versio
    > n=ShockwaveFlash" type="application/x-shockwave-flash"
    width="758"
    > height="508"></embed>
    > </object>
    > </noscript>
    >

  • Display color changes when I start some applications.

    Hello.
    Today I reinstalled OSX 10.8.1.
    All applications are up2date.
    But some applications like iPhoto have a strange behavior. When I start them, the display color changes. It looks like it has a blue fog.
    As soon as I close the application it's back to normal. Only happens for a few applications.
    In the console I see the following entires when I start the application and the display changes:
    11.09.12 23:06:22,777 WindowServer[86]: Received display connect changed for display 0x42728c0
    11.09.12 23:06:22,806 WindowServer[86]: Received display connect changed for display 0x3f003d
    11.09.12 23:06:22,806 WindowServer[86]: Received display connect changed for display 0x3f003e
    11.09.12 23:06:22,808 WindowServer[86]: CGXMuxAcknowledge: Posting glitchless acknowledge
    11.09.12 23:06:22,809 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:22,809 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:22,809 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:22,810 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:22,813 WindowServer[86]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042728c0 device: 0x10eb0f320  isBackBuffered: 1 numComp: 3 numDisp: 3
    11.09.12 23:06:22,847 WindowServer[86]: Received display connect changed for display 0x42728c0
    When I close the app I see:
    11.09.12 23:06:48,405 WindowServer[86]: CGXSetWindowListAlpha: Invalid window 0
    11.09.12 23:06:49,406 Dock[4503]: CGSReleaseWindowList: called with 7 invalid window(s)
    11.09.12 23:06:49,885 com.apple.ShareKitHelper[569]: --warning: [ShareKit-XPC] Received XPC_ERROR_CONNECTION_INVALID
    11.09.12 23:06:49,885 com.apple.ShareKitHelper[569]: --warning: [ShareKit-XPC] connectionWithClientInterrupted
    11.09.12 23:06:49,885 com.apple.ShareKitHelper[569]: --warning: [ShareKit] Cancel UI for running services with Client PID: 8433
    11.09.12 23:06:49,915 WindowServer[86]: Received display connect changed for display 0x42728c0
    11.09.12 23:06:49,960 WindowServer[86]: CGXMuxAcknowledge: Posting glitchless acknowledge
    11.09.12 23:06:49,961 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:49,962 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:49,962 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:49,962 SystemUIServer[7841]: DisplayReconfigurationCallback
    11.09.12 23:06:49,973 WindowServer[86]: Received display connect changed for display 0x42728c0
    11.09.12 23:06:49,974 WindowServer[86]: Received display connect changed for display 0x3f003d
    11.09.12 23:06:49,974 WindowServer[86]: Received display connect changed for display 0x3f003e
    Any idea what the problem might be?
    Thanks
    Dan

    I had the same problem early on in Mountain Lion - whenever an application kicked in that used the discrete GPU, the screen would get a bluish tint. I 'resolved' the situation by using Cody Krieger's gfxCardStatus and kept the mode on Integrated Only. This, of course, slowed down some applications but, by and large, I was able to live with it. Then one day - just out of the 'blue' - I decided to switch back to Dynamic Switching: and, lo and behold, by blue tint was gone when the discrete GPU kicked in.
    I only know how to temporarily fix the problem - you're one of about a dozen people that have reported it both here and in the Adobe Photoshop users forum. Try the gfxCardStatus 'fix' and then see if the problem doesn't rectify itself after a bit. It wasn't the 10.8.1 update that fixed my problem - it was just a week or so of running on integrated only.
    Let me know if this doesn't work for you...
    Clinton

  • Display color changes when Photoshop opens

    Hi there,
    Since recently, whenever I open Photoshop CS6 (13.0.1) or Illustrator CS6 (16.1.0), the display color changes, i.e. as if the display color profile termporarily changes to a different one. Even if I switch to another app, the color change will remain until I quite Photoshop or Illustrator. Using Mac OS 10.8.2.
    Does anyone anyone have an idea how to prevent this from happening?
    Thanks!

    The color shift happens when the computer changes the graphics card (from Intel HD to Nvidia or AMD). It's a problem of Mac OS X 10.8.x. I found a simple solution that worked (at least for me):
    Turn off automatic graphics switching in System Preferences > Energy Saver
    Reboot your computer
    Turn automatic graphics switching on again (or leave it off, as you like ...)
    It seems that the mac has to start up with the discreet graphics card turned on (Nvidia or AMD).

Maybe you are looking for