4 Replies Latest reply on Aug 16, 2009 11:12 PM by Marek Novotny

    Chart doesn't show up

    Andre Fernando Salvati Novice

      Hi,


      I'm a beginner with Seam and I'am trying to work out a chart POC using itext sample as basis under the following configuration


      I'm deploying as a .war module besides the example deploys as an .ear module


      Firefox 2
      JBoss 4.2.2
      and 
      
              <dependencies>
                      <dependency>
                              <groupId>org.testng</groupId>
                              <artifactId>testng</artifactId>
                              <classifier>jdk15</classifier>
                              <version>5.8</version>
                              <scope>test</scope>
                      </dependency>
                      
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                              <exclusions>
                                      <exclusion>
                                              <groupId>javassist</groupId>
                                              <artifactId>javassist</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>dom4j</groupId>
                                              <artifactId>dom4j</artifactId>
                                      </exclusion>
                                      <exclusion>
                                              <groupId>javax.el</groupId>
                                              <artifactId>el-api</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-ui</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-debug</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-ioc</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                              <exclusions>
                                      <exclusion>
                                              <groupId>javassist</groupId>
                                              <artifactId>javassist</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-mail</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                              <exclusions>
                                      <exclusion>
                                              <groupId>javassist</groupId>
                                              <artifactId>javassist</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-pdf</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                      </dependency>
                      <dependency>
                              <groupId>org.jboss.seam</groupId>
                              <artifactId>jboss-seam-remoting</artifactId>
                              <version>2.0.3.CR1</version>
                              <scope>compile</scope>
                              <exclusions>
                                      <exclusion>
                                              <groupId>dom4j</groupId>
                                              <artifactId>dom4j</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency>
                      <dependency>
                              <groupId>javax.faces</groupId>
                              <artifactId>jsf-api</artifactId>
                              <version>1.2_08</version>
                              <scope>provided</scope>
                      </dependency>
                      <dependency>
                              <groupId>jfree</groupId>
                              <artifactId>jcommon</artifactId>
                              <version>1.0.12</version>
                              <scope>compile</scope>
                      </dependency>
                      <dependency>
                              <groupId>jfree</groupId>
                              <artifactId>jfreechart</artifactId>
                              <version>1.0.9</version>
                              <scope>compile</scope>
                      </dependency>
                      <!-- dependency>
                              <groupId>org.richfaces.framework</groupId>
                              <artifactId>richfaces-api</artifactId>
                              <version>3.1.4.GA</version>
                              <scope>compile</scope>
                              <exclusions>
                                      <exclusion>
                                              <groupId>commons-collections</groupId>
                                              <artifactId>commons-collections</artifactId>
                                      </exclusion>
                              </exclusions>
                      </dependency -->
                      <dependency>
                              <groupId>org.richfaces.framework</groupId>
                              <artifactId>richfaces-impl</artifactId>
                              <version>3.2.1.GA</version>
                              <scope>compile</scope>
                      </dependency>
                      <dependency>
                              <groupId>org.richfaces.ui</groupId>
                              <artifactId>richfaces-ui</artifactId>
                              <version>3.2.1.GA</version>
                              <scope>compile</scope>
                      </dependency>
      
      



      1) Running the example I notice that if I comment


         <!-- filter> 
              <display-name>Ajax4jsf Filter</display-name> 
              <filter-name>ajax4jsf</filter-name> 
              <filter-class>org.ajax4jsf.Filter</filter-class> 
          </filter> 
          <filter-mapping> 
              <filter-name>ajax4jsf</filter-name> 
              <servlet-name>Faces Servlet</servlet-name>
              <dispatcher>REQUEST</dispatcher>
              <dispatcher>FORWARD</dispatcher>
              <dispatcher>INCLUDE</dispatcher>
          </filter-mapping  -->
      
      


      the components under rich:tabPanel start to work.


      Is it a bug?


      2) When I deploy my .war module with the same configurations (components.xml, faces-config.xml, pages-xml and web-xml) as the sample, the graph doesn't show up, but the tabs are showed and I can navigate over them. Console doesn't show any ERROR messages.


      FireBug shows me this:


      <body>
      <div id="j_id2" class="dr-pnl rich-panel">
      <div id="j_id2_header" class="dr-pnl-h rich-panel-header">HTML Chart Demo</div>
      <div id="j_id2_body" class="dr-pnl-b rich-panel-body">
      <span id="chart">
      <img width="400" height="300"   src="/notas/seam/resource/graphicImage/org.jboss.seam.ui.GraphicImageStore.3946e307-11b315f257a--6c0c.jpg"/>
      </span>
      </div>
      </div>
      <form id="j_id9" name="j_id9" method="post" action="/notas/chart.seam" enctype="application/x-www-form-urlencoded">
      </form>
      </body>
      


      When I change any chart properties, it generates another .jpg.


      Am I doing something wrong?


      Thanks