Thanks, Bruno. That should make our applications more portable. We can always use something like style="border: 0" instead. I recall seeing a comment in the tld questioning whether that attribute should be there anyway.
- Brendan -----Original Message----- From: Bruno Aranda [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 26, 2005 2: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.j ava:95) > > at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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 > > > >

