Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

adf faces 11 compare string or number in el expressions

454372Nov 3 2009 — edited Nov 3 2009
Hi i am trying to to set an image source in a table depending on the value of another field in the same table.

I am using a ternary expression like example below :

#{row.matchedYN eq 'Y' ? 'image/check.png' ; 'image/warning.png'}

This alway returns the "warning.png" .

I also tried to compare number field with 0 and then i get an error "can not cast number".

I suppose i need some sort of function that can compare strings and number types.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2009
Added on Nov 3 2009
1 comment
1,067 views