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!

EL expression for string comparison

mkher-OracleJun 9 2007 — edited Jun 9 2007
I wanted to set the rendered property of a widget based on an EL expression.

The EL expression itself should be comparing strings. Is this possible ?

Here's what I am trying to do:
I want to set the rendered property for an outputtext to false if the customer status(bound as #{bindings.CustomerStatus} in the pagedef) does not match the string "Four Star"

<af:outputText value="Special Customer"
id="outputText11"
rendered="false"/>

The binding in the pagedef looks like:
<attributeValues IterBinding="CustomersIterator"
id="CustomerStatus">
<AttrNames>
<Item Value="CustomerStatus"/>
</AttrNames>
</attributeValues>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 7 2007
Added on Jun 9 2007
4 comments
1,754 views