You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Wolfgang <wk...@ebi.ac.uk> on 2007/10/15 14:37:43 UTC

JSF chart creator

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


RE: JSF chart creator

Posted by "Boeckli, Dominique" <do...@eds.com>.
or you use: http://www.jenia.org/ 

-----Original Message-----
From: Zarick Lau [mailto:zarick@gmail.com] 
Sent: Tuesday, October 16, 2007 04:26 AM
To: MyFaces Discussion
Subject: Re: JSF chart creator

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 <wk...@ebi.ac.uk> 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(Applicati
onImpl.java:392)
>         at 
> com.sun.facelets.tag.jsf.ComponentHandler.createComponent(ComponentHan
> dler.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
>
>

Re: JSF chart creator

Posted by Zarick Lau <za...@gmail.com>.
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 <wk...@ebi.ac.uk> 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
>
>