AnsweredAssumed Answered

Propety length in browse jsp

Question asked by cybermakoki on Apr 19, 2010
Hi all!

I have a little problem showing a property…

I have a custom property "comments", It's a large text and I only want to show some chars… Something like this:

Comments:  "I'm trying to show some text from this property"
I want to show: "I'm trying to show…"

I'm trying to do this:

<h:outputText id="col11-txt" value="#{r['dm:comments']}" rendered="#{r['dm:coments'].size > 15}"/>

But I'm getting this error:

javax.faces.el.PropertyNotFoundException: Bean: java.lang.String, property: size

Same problem using "length"


Any Idea??

Thank you!!  :D

Outcomes