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

Reply via email to