Implementing Cell Highlighting in ADF 11g RichTables



The Oracle Technology Network just published my two part series on implementing Cell Highlighting in ADF 11g Rich Faces Table components. The articles describe how you can have the end-user set up rules for assigning background colors to the cells in a column, depending on the value in the cell.

The highlighting can be based on thresholds – for example green for salaries under 1200, red for salaries over 3000 and yellow for salaries in between – or on expressions. The latter allows the user to specify one or more logical conditions, using EL syntax and references to the data attributes used in the table; a color is associated with each conditionthe. The first condition satisfied by a row determines its color. For example condition ‘[job]==’MANAGER’ and [sal]< 4000′ (pink) and another condition ‘[hiredate].month < 7 and [deptno]!= 30′ (olive).

The article also gives some interesting examples of using some ADF 11g RichFaces features like Popup, programmatic Partial Page Rendering, embedded (region) Bounded Task Flow with input parameters, programmatic EL evaluation, oh eh… and the Color Picker..

You can find the first article at: The link for Part Two is here. I have created a similar article for ADF 10g using the ‘traditional’ components – I intend to make that available shortly.


About Author

Lucas Jellema, active in IT (and with Oracle) since 1994. Oracle ACE Director for Fusion Middleware. Consultant, trainer and instructor on diverse areas including Oracle Database (SQL & PLSQL), Service Oriented Architecture, BPM, ADF, Java in various shapes and forms and many other things. Author of the Oracle Press book: Oracle SOA Suite 11g Handbook. Frequent presenter on conferences such as JavaOne, Oracle OpenWorld, ODTUG Kaleidoscope, Devoxx and OBUG. Presenter for Oracle University Celebrity specials.

Comments are closed.