Hi!
the problem may be that a your calculation returns an int but the el statement
has to return an String. So do the calculation in your managed bean and return
the result as a String.
--
Boris Klug
Zitat von Richard Wallace <[EMAIL PROTECTED]>:
> Hello everyone,
>
> I'm working on a report that has a bar chart. I thought the easiest way
> to display it would be to use something like:
>
> <h:graphicImage url="/images/visual_bar_1.gif" width="46"
> height="#{reportHandler.score * 18}" border="0" />
>
> But that horks with:
>
> java.lang.ClassCastException
> at
>
javax.faces.component.html.HtmlGraphicImage.getHeight(HtmlGraphicImage.java:95)
> at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> javax.faces.component._ComponentAttributesMap.getComponentProperty(_C
>
> Can I not set the height to some calculated value?
>
> Thanks,
> Rich
>