Oh, great! I was actually looking for the extensions.jar.
 
thanks,
Edwin
-----Original Message-----
From: Martin Marinschek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 27, 2005 3:20 AM
To: MyFaces Discussion; Bruno Aranda
Subject: Re: Calculating image height

In nightly build, the jar file you will look for is tomahawk.jar and not extensions.jar anymore!

regards,

Martin

On 7/27/05, Bruno Aranda <[EMAIL PROTECTED]> wrote:
Well, the x:graphicImage was added some weeks ago. If you are using
the nighlty you have it, so we are facing another problem. Are you
using jboss 4.0.3RC1? JBoss 4.0.3RC1 includes and older version of
myfaces which is the one loaded by the ClassLoader...

Bruno

2005/7/27, Edwin Mercado <[EMAIL PROTECTED]>:
> 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="" 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