ADF table : EL for current row

We can use the following EL to check if a row in a table is current row.

row.row ==  bindings.MyTableVO1.currentRow

Example : To highlight the current row with green color, following inline style can be specified to all columns of the table.

#{row.row ==  bindings.MyTableVOVO1.currentRow ? ‘background-color:Green;’ : ‘default’}

Advertisements
This entry was posted in ADF. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s