Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8240781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:36:30+00:00 2026-06-07T20:36:30+00:00

I got an ADF table generated form my data controls. But I need to

  • 0

I got an ADF table generated form my data controls.
But I need to change the style of every cell in my backing bean.
I can’t really find anything useful on google, hopefully you can provide me with some useful information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:36:32+00:00Added an answer on June 7, 2026 at 8:36 pm

    Can you be a bit more specific? Which jdev version? If you need to change each cell why not using a skin?

    Based on the comments we now know that you use jdev 11.1.2.2.0.
    What you can do is to bind the styleClass property of the table to a backing bean property. The property in the bean has a getter and a setter method. In the setter method you can get all the values you need from the row and do you calculation. Based on the outcome you return the name of a style class suitable for the cell. The different style classes you define in a skin fro the application.
    If you e.g. defien the following style classes in your skin

    .high_value { background-color:green; }
    .negative_value { background-color:red;}
    

    and in a bean in request scope, which you access from the page the table is on

        private String styleForCell;
    
    public String getStyleForCell()
    {
        // get the value of the cell
        FacesContext lContext = FacesContext.getCurrentInstance();
        ELContext lELContext = lContext.getELContext();
        ExpressionFactory lExpressionFactory = lContext.getApplication().getExpressionFactory();
        Number val;
        val = (Number) lExpressionFactory.createValueExpression(lELContext, "#{row.valargument}", Object.class).getValue(lELContext);
        if (val == null)
            return "";
    
        // do the calculation and return the suitable style class
        int ival = val.intValue();
        if (ival >= 100000 )
            return "high_value";
        else if (ival < 0)
            return "negative_value";
        else 
            return "";         
    }
    
    public void setStyleForCell(String aStyleForCell)
    {
        this.styleForCell = aStyleForCell;
    }
    

    Now you can access the calculated style class from the tables column styleClass property as #{beanname.styleForCell}
    This will call the method for each cell of the column.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got: <ul> <li><div style=width:200px; display:table-cell;>Something here</div> <div style=width:40px; display:table-cell;>Edit</div> <div style=width:40px; display:table-cell;>Delete</div></li> </ul> Hopefull
got problems with my CSS style. border widths doubled in IE, but in Mozilla,
I have created Oracle ADF project and tried to run. but i got below
Got a requirement to rebuild mssql full-text index. Problem is - I need to
Got a strange problem created a little stored proc which need to execute a
Got a c#.net app which I need to modify. The query at the moment
Got a window.history.go(1) to stop the user hitting the back button, but was wondering
I've got a string of HTML that I need to grab the [Title| http://www.test.com]
We are using OC4J 10.1.3.5 and ADF. I have a popup form and when
Got a page based on Google Wave (http://wave.google.com/maintenance/index.html) but instead of clouds going left

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.