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

    How to create Pie chart?

    eswaramoorthy1985

      Hi,

       

            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"
          "http://www.w3.org/TR/html4/loose.dtd">
      
      <%@ 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"  %>
      
      <f:view>
      
          <html>
              <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                  <title>Pie Chart-1 </title>
              </head>
      
              <body>
                  <h:form>
                     <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"/>
                    </d:chart>
                 </h:form>
              </body>
          </html
      </f:view>
      
      

       

      Please help me about this problem.

      Thanks in advance.