0 Replies Latest reply on Dec 5, 2010 9:24 PM by Eswara MoorthyNEC

    How to create Pie chart?

    Eswara MoorthyNEC Newbie



            I want to creat pie chart. So I create the following code in netbeans Ide.


      The problem is : The netbeans ide show the error for

      "The absolute uri:   http://java.sun.com/jsf/demo/components      cannot be resolved in either web.xml or the jar files deployed with this application".


      How to resolve this. I think i miss some jar in my project or miss some configuration in xml file. But i don't know the exact jar name.



      <%@page contentType="text/html" pageEncoding="UTF-8"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"  %>
      <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"  %>
      <%@ taglib prefix="d" uri="http://java.sun.com/jsf/demo/components"  %>
                  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                  <title>Pie Chart-1 </title>
                     <d:chart width="400" height="200" type="pie"  title="Pie Chart">
                             <d:chartItem itemLabel="item1" itemValue="200" itemColor="red" />
                             <d:chartItem itemLabel="item2" itemValue="400" itemColor="green"/>
                             <d:chartItem itemLabel="item3" itemValue="600" itemColor="blue"/>
                             <d:chartItem itemLabel="item4" itemValue="800" itemColor="cyan"/>


      Please help me about this problem.

      Thanks in advance.