PiRSquared17 / jsflot

Automatically exported from code.google.com/p/jsflot
0 stars 1 forks source link

NotSerializableException in richfaces #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am getting the following error:
java.io.NotSerializableException: org.jsflot.xydata.XYDataSetCollection

What steps will reproduce the problem?
1.  Create a pie chart on a richfaces page with an ajax form.

What is the expected output? What do you see instead?
I expect the chart to render

What version of the product are you using? On what operating system?
0.6

Please provide any additional information below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:jsflot="http://www.jsflot.org/taglib/jsflot">

      <head>
            <jsflot:resources />
            <title>RichFaces Greeter</title>
      </head>
      <body>
       <jsflot:flotChart title="sliders" chartType="pie" height="300" width="600" >   
           <jsflot:XYDataList color="#4ae815" fillLines="false" label="slider 1!"
                markerPosition="ct" markers="false" showDataPoints="false"
                showLines="false">
                <jsflot:XYDataPoint x="1" y="20" pointLabel="p1l1"></jsflot:XYDataPoint>
            </jsflot:XYDataList>

            <jsflot:XYDataList color="#c515e8" fillLines="false" label="slider  2!"
                markerPosition="ct" markers="false" showDataPoints="false"
                showLines="false">
                <jsflot:XYDataPoint x="1" y="40" pointLabel="p2l1"></jsflot:XYDataPoint>
            </jsflot:XYDataList>

            <jsflot:XYDataList color="#94ad07" fillLines="false" label="slider 3!"
                markerPosition="ct" markers="false" showDataPoints="false"
                showLines="false">
                <jsflot:XYDataPoint x="1" y="40" pointLabel="p3l1"></jsflot:XYDataPoint>
            </jsflot:XYDataList>

        </jsflot:flotChart>
            <f:view>
                  <a4j:form>
                        <rich:panel header="RichFaces Greeter" style="width: 315px">
                              <h:outputText value="Your name: " />
                              <h:inputText value="#{person.name}" >
                                    <f:validateLength minimum="1" maximum="30" />
                              </h:inputText>
                              <a4j:commandButton value="Get greeting" reRender="greeting" />
                              <h:panelGroup id="greeting" >
                                    <h:outputText value="Hello, " rendered="#{not empty person.name}" />
                                    <h:outputText value="#{person.name}" />
                                    <h:outputText value="!" rendered="#{not empty person.name}" />
                              </h:panelGroup>

                              <rich:inputNumberSlider id="slider1" value="#{person.slider1}" 
                              enableManualInput="false">
                                <a4j:support event="onchange" ajaxSingle="true" reRender="sliders"/>
                              </rich:inputNumberSlider>
                              <br />
                              <rich:inputNumberSlider id="slider2" value="#{person.slider2}" 
                              enableManualInput="false">
                                <a4j:support event="onchange" ajaxSingle="true" reRender="sliders"/>
                              </rich:inputNumberSlider>
                              <br />
                              <rich:inputNumberSlider id="slider3" value="#{person.slider3}" 
                              enableManualInput="false">
                                <a4j:support event="onchange" ajaxSingle="true" reRender="sliders"/>
                              </rich:inputNumberSlider>
                              <br/>
                              <h:panelGroup id="sliders" >
                                    <h:outputText value="Slider1: " />
                                    <h:outputText value="#{person.slider1}" />
                                    <br /><br />
                                    <h:outputText value="Slider2: " />
                                    <h:outputText value="#{person.slider2}" />
                                    <br /><br />
                                    <h:outputText value="Slider3: " />
                                    <h:outputText value="#{person.slider3}" />
                                    <br /><br />
                              </h:panelGroup>

                        </rich:panel>
                  </a4j:form>
                             <h:panelGroup id="chart">

                              </h:panelGroup>

            </f:view>
      </body>
</html>

Original issue reported on code.google.com by curda...@gmail.com on 2 Aug 2010 at 11:27