Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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

843844Apr 30 2008 — edited May 1 2008
I want to customise the text in one column of each row of the table component based on the text returned from the database

The syntax should be
text="#{el expression}"
How do I write an el expression that handles string length

example
text="#{ length('mystring') = 0 > ? 'Empty' : 'somevalue'}"
Obviously in the above expression, there is no function called length and hence it wont work....what is the function for string length?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2008
Added on Apr 30 2008
6 comments
239 views