title: Blank page is returned with primefaces
body: <p>I want to use primefaces in the project I am working on. So I thought it would be a good idea to get some simple hello world program. It has worked fine, so I suppose all the libriaries I have to place in lib folder (I am using apache tomcat) working fine. Next I tried to draw some charts, to do so I looked at the examples and decided to use one, however I am getting a blank page... I tried to play with faces-config.xml however I was getting either blank page or the following message: 
  Bean or property class try.ChartBean for managed bean ChartBean cannot be found</p>
  
  <p>I tried play with xml files - but its no use... Can someone see any errors here!? Maybe someone had similar errors before!? Any help greatly appriciated!!!</p>
  
  <p>test - web page to display charts</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.prime.com.tr/ui"&gt;
  
  &lt;h:body&gt;
  &lt;f:view contentType="text/html"&gt;
  
  &lt;p:barChart id="basic" value="#{chartBean.categoryModel}" legendPosition="ne"  
              title="Basic Bar Chart" min="0" max="200" style="height:300px"/&gt;  
  
  &lt;p:barChart id="horizontal" value="#{chartBean.categoryModel}" legendPosition="se" style="height:300px"  
              title="Horizontal Bar Chart" orientation="horizontal" min="0" max="200"/&gt;  
  
  &lt;p:barChart id="stacked" value="#{chartBean.categoryModel}" legendPosition="ne" style="height:300px"  
              title="Stacked Bar Chart" stacked="true" barMargin="50" min="0" max="300"/&gt;  
  &lt;/f:view&gt;
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="2.5" 
     xmlns="http://java.sun.com/xml/ns/javaee" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" &gt;
  
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;imageUpload.jsf&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>faces-config.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;faces-config xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
      version="2.0"&gt;
  
      &lt;managed-bean&gt;
          &lt;managed-bean-name&gt;ChartBean&lt;/managed-bean-name&gt;
          &lt;managed-bean-class&gt;org.primefaces.examples.view.ChartBean&lt;/managed-bean-class&gt;
          &lt;managed-bean-scope&gt;session&lt;/managed-bean-scope&gt;
      &lt;/managed-bean&gt;
  
  &lt;/faces-config&gt;
  </code></pre>
  
  <p>ChartBean.java</p>
  
  <pre><code>package org.primefaces.examples.view;
  
  import java.io.Serializable;
  
  import org.primefaces.model.chart.CartesianChartModel;
  import org.primefaces.model.chart.ChartSeries;
  
  public class ChartBean implements Serializable {
  
      private CartesianChartModel categoryModel;
  
      public ChartBean() {
          createCategoryModel();
      }
  
      public CartesianChartModel getCategoryModel() {
          return categoryModel;
      }
  
      private void createCategoryModel() {
          categoryModel = new CartesianChartModel();
  
          ChartSeries boys = new ChartSeries();
          boys.setLabel("Boys");
  
          boys.set("2004", 120);
          boys.set("2005", 100);
          boys.set("2006", 44);
          boys.set("2007", 150);
          boys.set("2008", 25);
  
          ChartSeries girls = new ChartSeries();
          girls.setLabel("Girls");
  
          girls.set("2004", 52);
          girls.set("2005", 60);
          girls.set("2006", 110);
          girls.set("2007", 135);
          girls.set("2008", 120);
  
          categoryModel.addSeries(boys);
          categoryModel.addSeries(girls);
      }
  }
  </code></pre>