Hi Wolfgang,
You should check what #{chart.pieDataSet} are returning.
It should return correct instance, matching the chart type.
Cheers,
Zarick
On 10/15/07, Wolfgang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> does anyone use the JSF chart creator, because I got the following error:
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Undefined component type net.sf.jsfcomp.chartcreator.UIChart
>
> javax.faces.FacesException: Undefined component type
> net.sf.jsfcomp.chartcreator.UIChart
> at
> org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:392)
> at
> com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHandler.java:243)
> ------------------------------------------------------------------------------------------------------
>
>
>
> Here are my config files:
>
> xhtml:
> -----------------------------------
> <comp:chart id="aChart"
> datasource="#{chart.pieDataSet}"
> type="pie"
> is3d="true"
> antialias="true"
> title="Example Chart"
> xlabel="X Label"
> ylabel="Y Label"
> height="300"
> width="400"/>
>
>
>
> faces-config:
> ---------------------
> <component>
> <component-type>chart</component-type>
>
> <component-class>net.sf.jsfcomp.chartcreator.UIChart</component-class>
> </component>
>
> web.xml
> ----------------
> <context-param>
> <param-name>facelets.LIBRARIES</param-name>
> <param-value>/WEB-INF/chartcreator.taglib.xml</param-value>
> </context-param>
>
> chartcreator.taglib.xml
> -------------------------------------------------------
> <?xml version="1.0"?>
> <!DOCTYPE facelet-taglib PUBLIC
> "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
> "http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
> <facelet-taglib>
> <namespace>http://sourceforge.net/projects/jsf-comp</namespace>
> <tag>
> <tag-name>chart</tag-name>
> <component>
>
> <component-type>net.sf.jsfcomp.chartcreator.UIChart</component-type>
> </component>
> </tag>
> </facelet-taglib>
>
>
> If I change the component-type in the chartcreator.taglib.xml from
> net.sf.jsfcomp.chartcreator.UIChart to "whatever"
> I got the same error as above but saying: Undefined component "whatever"
>
>
> Does anybody has some suggestions?
> Cheers
> Wolfgang
>
>