Change current row selected Color in ADF rich client table

Hi All ..
i want to change the current row selected from the default ADF color to Another color.
i am not very good in javaScript .
any one can help me
Edited by: user9519817 on Aug 30, 2008 3:57 AM

User,
You don't need Javascript to do this. Have a read of section 18 of the Oracle Web user Interface Developer's Guide for Oracle Application Development Framework (found [url http://download.oracle.com/otn_hosted_doc/jdeveloper/11/doc/b31973.pdf]here for information about creating a custom skin. Unfortunately, the documentation for the selectors to use, which should be in a JDev help topic titled, ""Selectors for Skinning Fusion's ADF Faces Components" doesn't exist yet :( However, you can check [url http://www.oracle.com/technology/products/adf/adffaces/11/doc/skin-selectors.html#]here for that information.
Selectors that may be of interest:
.AFTableCellDataSelectedColor:alias
.AFTableCellDataSelectedBandedColor:alias
.AFTableCellDataSelectedInactiveColor:alias
.AFTableCellDataSelectedBandedInactiveColor:alias
Best,
John

Similar Messages

  • ADF Rich Client Table

    Hi every one
    I face problem when creating table :the first things I make data bind :
    1- data table collection (List o vector)
    2-Element Type (MyBean.java) (for to view property)
    automatically put all properties from bean to table col
    my problem is :all the properties are unknown!!!!!!!!!
    <af:outputText value="#{row.sectorCode}"/> give me error (row.sectorCode) sector code unknown property
    My Best Regards

    as far as I noticed this XML parsing error appears to BC to... not to worry it works...
    ps: when you bind data to the table (drag af:table from palette) you are asked by the wizard what is the collection and what is the element type... so this way you will be sure that the info is right
    kquizak

  • How do I change the row selection by mouse movement

    How do I change the row selection on a jtable by mouse over events?
    Thanks, Randy

    got it thanks...

  • Adf Rich Client - Free or License?

    Hello!!
    In previous post, you say the Adf Rich Client will be free when a production version is available, all right?
    Then, you have a idea of a date to Adf Rich Client goes into production version?
    What the license for Adf Rich Client now? I can developer my comercial applications with the Adf Rich Client?
    Thanks and congratulations for your good job with the Adf Rich Client!!!

    Frank,
    First of all thank you for your support on this forum.
    I have a hypothetical question though... In our development process we are entering a phase when we need to start working on application... We took a look into Jdev11 and ADF RC, and really liked it - it has many components that our users are already used to in Oracle Forms, like dropdown menus, toolbars and most important the ability to have spread tables. We are wondering, if we start development with Jdev 11 next month and are planning to have the application production ready by the end of Q12008, what are our chances of having Jdev 11 to be production ready, and how significant the changes will be between the current version and prod release?
    I understand, you cannot answer these question, but could give me a hint, or a 'wink' as to what to expect. I would really appreciate it. We could start going with Jdev 10.1.3.3, but we really like new componnts in Jdev 11.
    Thank you,
    VO

  • Facelets support in ADF Rich Client

    I have tried to use ADF Rich Client with Facelets
    but it looks like the tag library schema is not recongined, and the ADF RC tag schema definition in html root tag and all ADF RC tags are copied into output.
    any comments or info from any one?

    hi,
    to add my 2 cents
    by the way do you know when will be a code drop of ADF RC available in Apache ?
    I assume this to happen some time after ADF Faces RC goes production
    1) legacy(!?) pages in one of projects we have hundreds of pages developed in facelets and it is a little hard to convert them all.
    We don't support JSF 1.1 content (and Trinidad content) to be on the same page as ADF Faces RC. So if you like to continue using your current stack then the option to go with in Trinidad in JDeveloper 11, not ADF Faces RC
    3) Templating
    ADF Rich Faces Templating mechanism is an strong one, but a little different with Facelets, for example in Facelets templates can be used inside each other but in ADF RC as far I I know they can not.
    The runtime does support template nesting, the designtime does. However, as Shay mentioned using daclarative components might be a nice addition to reuse.
    4) composition component
    in facelets it is easy make a new composite component by mixing existing components
    for example add an export to PDF and Excel button to a table.
    looks like the current ADF Templating mechanism can be used to solve this issue.
    Declarative components do.
    Frabj

  • TP4 / ADF Rich client demo just downloaded from otn / 41 compiling errors !

    I just downloaded ADF Riche client demo and installed it jdev tp4.
    Rebuild causes 41 compilation errors and the application is not runnable.
    Is it a way to solve this ?
    Some of the errors:
    Error: cannot read: C:\JDeveloper\myWork\adf-richclient-demo\adf-richclient-demo\public_html\WEB-INF\classes\.jsps\_components\_inputComboboxListOfValues_jspx.java
    Error: cannot read: C:\JDeveloper\myWork\adf-richclient-demo\adf-richclient-demo\public_html\WEB-INF\classes\.jsps\_components\_queryToggle_jspx.java
    Error(57): "rows" is not a valid attribute name.
    Error(57): "maxColumns" is not a valid attribute name.

    Forget about it ... downloading again and reinstalling it without any errors ... may be i downloaded from an older link or do some bad copy ... sorry disturbing you !

  • Tomcat 6 - Deployment of the ADF Rich Client Demo Fails

    I have been able to deploy and run the ADF Rich Client Demo in the embedded Oracle Weblogic server and a standalone Weblogic server.
    However, when I deploy the application to an instance of Tomcat 6 (6.0.18) I get the following:
    Dec 1, 2008 2:06:06 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    Dec 1, 2008 2:06:06 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 297 ms
    Dec 1, 2008 2:06:06 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Dec 1, 2008 2:06:06 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
    Dec 1, 2008 2:06:06 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Dec 1, 2008 2:06:06 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    Dec 1, 2008 2:06:06 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/15 config=null
    Dec 1, 2008 2:06:06 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 493 ms
    Dec 1, 2008 2:21:37 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive adf-richclient-demo.war
    Dec 1, 2008 2:21:52 PM org.apache.catalina.core.StandardContext start
    ***SEVERE: Error filterStart***
    Dec 1, 2008 2:21:52 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [adf-richclient-demo] startup failed due to previous errors
    I have tried the deployment from within JDeveloper 11g and also by dropping the WAR file into the Tomcat container webapps directory.
    Any one know why this is happening?
    Thanks,
    Vince

    Jonn,
    Thanks for the pointer.
    I located the missing libraries by finding those that looked like the ones you recommended. The locations can be found by looking them up in the JDeveloper project Libraries and Classpath (click on an entry and select the view button):
    jsf-ri-12.war
    jsf-ri.jar
    jsf-api.jar
    glassfish.jstl_1.2.0.1.jar
    I copied these to the tomcat-6.0.18\lib level rather than putting them in the project lib.
    Works great.
    Thanks again for the help.
    Vince

  • Change the Default Page Size for WebI Rich Client 4.0

    Hi:
    I am trying to change the default paper size for Webi Rich Client 4.0. 
    In 3.x you made the changes to the defaultconfig.xml located in the path C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\classes\AppletConfig.
    In 4.0 I canu2019t seem to locate the file, can you advise if the file is the same name and where the file located.
    Thanks
    Brad

    Hi,
    Please check out the User Guide - see section Web Intelligence Cascading Style Sheets (CSS)
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_ia_en.pdf
    Regards
    H

  • ADF rich client: How to automate testing

    Hi Experts,
    We need to do some automate testing against application that is developed with ADF Faces 11g, I've tried with loadrunner 8.1, which provides 2 approaches to record web applications, web(html / http) and web(click / script).
    According to my experiment and this article , it's not feasible to record actions to rich client app with the first protocol.
    As for the second one, according to my test, some of actions works and the others not (for example, input field, expand accordion).
    My question is, Is there a solution to fully automate adf 11g UI interactions? Solutions based on loadrunner is preferred.
    Thanks for any help,
    Todd

    Thanks CM.,
    Sorry I didn't make my question clear. Selenium does fit in AJAX well, but seems that it lacks of ability to do stress test, what if we need highly concurrent workload(say, 5000 users)? Can selenium RC or some tools else generate that?
    And, are you sure that loadrunner 8.1 is not feasible to do stress test against ADF rich client apps? I need a good reason to persuade my bosses to consider adopting new tools.
    Regards,
    Todd

  • Difference Between Oracle ADF and ADF Rich Client

    Hello Gurus,
    I want to know the difference between those two:
    Oracle ADF:
    http://goo.gl/6Q1i2
    and
    ADF Rich Client:
    http://goo.gl/L31ra
    I downloaded Jdeveloper 11g (11.1.2.3.0)
    I did this tutorial which It adf right? http://goo.gl/8Mf7c
    and this other is rich client right? http://goo.gl/7Krew
    Can I please know the advantages of them over the other one? THANKS !!!

    ADF Faces Rich Client Components are a part of Oracle ADF.
    So Oracle ADF uses ADF Faces as the components for the rich web UI, but it also offers things like simplified database access through ADF Business Components, an advanced ADF Controller layer, and simple data binding.
    I would suggest starting with this seminar:
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/Introduction_To_ADF/Introduction_To_ADF.html

  • Integrate an ADF rich client component in form

    Hi all. I'm on devsuite10g. I have got a question: how I can integrate/insert an ADF rich client component in my form without using Jdeveloper??
    Is there a way to do it??
    Thanks all for the collaboration,
    Fabrizio

    Hi,
    you can use any other Java IDE for this and just work with the properly configured tag libary and the required settings in web.xml. However, since Developer Suite 10g is 10.1.2, you can't use the components unless your form runs on a platform that supports JavaEE 1.5
    Frank

  • How to chang the row's color in the Jtable?

    I have a table and many rows,I want chang the rows color,like row one's color is red,row tow's color is write,row three's color is green.How can do it? And if i want chang row 3,coloum 2's color.How can do it?
    thanks.

    hi,
    I use jdbtable to view data,I want them to chang row color when some cells equal the value.But interface getTableCellRendererComponent not run.I don't know why!
    jdbtable is extend jtable ,it made in borland jbuilder.
    //1 class
    package errorreport;
    import java.awt.Component;
    import java.awt.Color;
    import javax.swing.table.DefaultTableCellRenderer;
    import com.borland.dbswing.*;
    public class rowcolor extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent
    (JdbTable table, Object value, boolean isSelected,
    boolean hasFocus, int row, int column)
    Component cell = super.getTableCellRendererComponent
    (table, value, isSelected, hasFocus, row, column);
    int iColcount = 0;
    iColcount = table.getColumnCount();
    if( value instanceof String )
    String strAlmlev = (String)value;
    if(strAlmlev.trim().equals("C1"))
    cell.setBackground( Color.red );
    // You can also customize the Font and Foreground this way
    // cell.setForeground();
    // cell.setFont();
    else
    if(strAlmlev.trim().equals("C2"))
    cell.setBackground( Color.orange );
    else
    if(strAlmlev.trim().equals("C3"))
    cell.setBackground( Color.yellow );
    else
    if(strAlmlev.trim().equals("ERR"))
    cell.setBackground( Color.green );
    return cell;
    //2 class
    JdbTable jdbTable2 = new JdbTable();
    TableCellRenderer renderer = new rowcolor();
    try
    jdbTable2.setDefaultRenderer( Class.forName( "java.lang.String" ), renderer );
    catch( ClassNotFoundException ex )
    System.exit( 0 );
    thanks

  • Reset of current row after commit in ADF-UIX

    Dear experts,
    I have developed an application with Oracle JDeveloper 10g and ADF-UIX using BC4J. The problem is that wherenever a commit is performed the current row for the master table is reset which causes confusion for the end user.
    Do you know how can I solve that problem?
    Thank you in advance,
    Constantine

    ... I forgot to mention that I use JDeveloper 3.1 on Windows NT4.
    About my problem, it seems that a "key" does not exist in the record (Row object) i'm using for.
    So, what really is a "key"? Is this an internal complicated number or just the values of some data fields, indicated as "Primary Key" in the table?
    If the answer is the second one, I have to say that at the really before commit of the record, the value of my primary key fields is NULL, because they are filled up by a "sequence object" created in the database (triggered by a "TRIGGER BEFORE INSERT", which calls the "sequence.nextval" SQL command).
    So, I really have the value of my primary key fields just after committing the record in the database, and would explain everything.
    But is really this the "key"?
    Thanks

  • Get the icon for the current row selected

    Hi !!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped my ApplBusFunVO as a af:tree
    My Output will look like this
    Supplier Balance
    Supplier Document Details
    Purchase order
    Purchase ReceiptsMy af:tree doesnt contains the Parent
    My Scenario:
    When my user clicks the current node of the tree!! an icon should appear before the current node is selected
    For Eg: If my user clicks the Purchase Order then my output should like this
    Supplier Balance
    Supplier Document Details
    ==>Purchase order
    Purchase ReceiptsThe Symbol ==> Represent the icon! that appears before the purchase order!!

    Hi
    <af:tree value="#{bindings.SalesPeople.treeModel}" var="node"
              selectionListener="#{bindings.SalesPeople.treeModel.makeCurrent}"
              rowSelection="single" id="t4" fetchSize="35">
              <f:facet name="nodeStamp">
                 <af:group>
                      <af:image id="cl3" source="#{reference_to_image_url}"
                      rendered="#{check_if_current_row}"/>
                      <af:outputText id="ot2" value="#{node}"/>
                 </af:group>
       </f:facet>http://docs.oracle.com/cd/E23943_01/apirefs.1111/e12419/tagdoc/af_image.html
    As mentioned in a previous answer to this very same question, the tree is a stamped component which means that you need to partially refresh the tree component to show the icon. You can us the selectionListener (override the current setting to use a managed bean setting the current row - calling the same EL) to determine the new selected row key and then use the rendered option to determine (using a managed bean reference) if the current rendered node (#{node} is accessible from a managed bean at render time) is the selected node.
    The side effect is that upon tree node selection the tree will "flicker"
    Frank

  • ADF Rich Client Faces af:table editingMode="clickToEdit" event handling

    I have a table with editingMode="clickToEdit" that contains columns with inputText with values that map to Eclipselink JPA Entity bean properties.
    I am struggling to find an event that I can monitor that would allow me to persist or cancel the changes the user enters. I might add "Commit" and "Cancel" commands in their own columns but then I would like to have an event that allow me to enable and disable those commandButtons. In any event I would like to capture the fact that a row has entered editing mode with either a clientListener or a servletListener.
    Is any of this possible?
    Frank's suggestion in Re: Edit Specific Row on click of button in ADF table implies that the table be re-rendered and I would specifically like to avoid that as it is disturbing to the user to have the entire table redrawn, particularly when the size of the table exceeds the displayed rows.
    Thanks, Mark.

    I suppose I didn't ask my question properly. I have been persisting POJO and JPA beans with ADF Faces, Trinidad and ADF Faces Rich Client since 2004 and I have a hundred thousand lines of library code to manage that.
    The tricky thing about <af:tables (and <tr:tables for that matter) is that it is challenging to render individual rows or cells and re-rendering the entire table is disruptive to the user experience. My normal practice is to allow the user to select a row and then click an edit button that re-renders an edit panel (or detail stamp) which contains a submit button. However, for small simple tables this is overkill and in-line editing would be very attractive. The WONDERFUL thing about <af:table editingMode="clickToEdit" is that the user can enter an EDIT mode without redrawing the table.
    My problem is that I have not yet discovered an event that I can monitor to let me know that the user has done this. What I think that I want is something like the clientListener selection event that would fire when the editingMode state changed: a clientListener editingMode event.
    If I use the clientListener selection event, is there any way I can determine editingMode state of the row?
    Here is what I have tried
          <af:table id="paymentTable" binding="#{PaymentLogTable.table}"
                    rows="5" value="#{PaymentLogTable.model}" rowSelection="single" columnSelection="single"
                    var="payRow" displayRow="selected" editingMode="clickToEdit"
                    selectionListener="#{PaymentLogTable.selectionListener}">
            <af:clientAttribute name="keyColumn" value="payRow_amount"/>
            <af:clientListener method="MIZAR.adf.selectionHandler" type="selection"/>
            <af:clientListener method="MIZAR.adf.editingModeHandler" type="dblClick"/>
            <af:column clientComponent="true" width="50" align="center" headerText="ID" sortable="false">
              <af:outputText value="#{payRow.id}" />
            </af:column>
            <af:column width="75" align="right" headerText="Amount" sortable="false" clientComponent="true">
              <af:inputText id="payRow_amount" value="#{payRow.amount}" valueChangeListener="#{payRow.setRowDirty}" clientComponent="true">
                <af:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
              </af:inputText>
            </af:column>
    ... more columns
    MIZAR.adf.selectionHandler = function (event){
      MIZAR.adf.editingModeHandler(event);
    MIZAR.adf.editingModeHandler = function (event) {
      var table = event.getSource();
      var keys = table.getPropertyKeys();
      var selectedRowKeys = table.getSelectedRowKeys();
      var keyColumn = table.getProperty('keyColumn');
      var aKeySet = event.getAddedSet();
      for(aRowKey in aKeySet){
          var newRowKey = aRowKey;
      var newRowComp = table.findComponent(keyColumn,newRowKey);
      if ( newRowComp ){
        var readOnly = newRowComp.getReadOnly();
        if ( !readOnly ){
          alert ('Editable'); // NEVER GETS HERE
      if (table.getProperty('isCanceled')) {
        alert ('canceled');
    }But, the MIZAR.adf.editingModeHandler doesn't get called when I double click the row and neither does the MIZAR.adf.selectionHandler. The inputText component always shows up as readOnly = true.
    Thanks, Mark

Maybe you are looking for