Hi Bruno, I'm trying to use the x:graphicImage component but I guess I'm using the old myfaces-extensions.jar file because I get this error message:
No tag "graphicImage" defined in tag library imported with prefix "x" I looked around the nightly build and didn't find a newer version of myfaces-extensions.jar. Is there one? regards Edwin -----Original Message----- From: Bruno Aranda [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 26, 2005 3:39 AM To: MyFaces Discussion Subject: Re: Calculating image height This is not directly related to the issue. I just want to inform that from now one some attributes will not be allowed in the h:graphicImage, such as border, because they are not allowed by the JSF Spec 1.1. See http://issues.apache.org/jira/browse/MYFACES-363. Instead, use the myfaces x:graphicImage component... Regards, Bruno 2005/7/26, Klug, Boris <[EMAIL PROTECTED]>: > 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 > > > >

