JSF Chart Creator Component Based on JFreeChart
type: xyline
I figered it out: The dataset must be of type XYDataSet (interface), e.g.: DefaultXYDataset.
passing parameters
I would like to ask how to pass a parameter to the JFreeChart?
I have this code:
This component is in <h:dataTable> component. I would need to pass a parameter to the chart on every dataTable row.
I tried this, but it does not work:
I have this code:
Code: Select all
<c:chart datasource="#{Page2.dataset}" id="chart" type="xyline"/>
I tried this, but it does not work:
Code: Select all
<c:chart datasource="#{Page2.dataset}" id="chart" type="xyline">
<f:attribute name="longInput" value="300" />
</c:chart>
Hello,
If someone can help me to configure chartcreator in order to use it with jsf.
I followed steps as described in the web site "installation and configuration" but something wrrong.
"http ://sourceforge.net/projects/jsf-comp" causes error when I start my web project with tomcat server.
Thanyou very much.
If someone can help me to configure chartcreator in order to use it with jsf.
I followed steps as described in the web site "installation and configuration" but something wrrong.
"http ://sourceforge.net/projects/jsf-comp" causes error when I start my web project with tomcat server.
Thanyou very much.
-
- Posts: 5
- Joined: Fri Jul 25, 2008 9:23 am
creating own tooltips
Hi!
i've implemented Chart Creator in my JSF-Site.
It works good.
I'm using Gantt as chart type.
But I have a big problem.
I want to create individual tooltips.
By now they're looking like: 01.01.2001 - 04.02.2001
But I want to use my own style and information.
Is it possible to create them?
Normally i can do this with:
It's very important.
Thank you for helping!
i've implemented Chart Creator in my JSF-Site.
It works good.
I'm using Gantt as chart type.
But I have a big problem.
I want to create individual tooltips.
By now they're looking like: 01.01.2001 - 04.02.2001
But I want to use my own style and information.
Is it possible to create them?
Normally i can do this with:
Code: Select all
public String generateToolTip(CategoryDataset dataset, int series, int index) {
return seriesNames[series];
}
Thank you for helping!
Problem with using Chart Creator in a JSF Portlet
Hi,
I am facing a problem with the chart creator in a JSF portlet. When a JSF page containing the chartcreator chart is executed in browser the chart displays correctly. But when a portlet containing the JSF page is executed, i am getting following exception
I am using oracle weblogic portal with oracle workshop.
java.lang.NullPointerException
at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unknown Source)
at net.sf.jsfcomp.chartcreator.Chartlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
I am facing a problem with the chart creator in a JSF portlet. When a JSF page containing the chartcreator chart is executed in browser the chart displays correctly. But when a portlet containing the JSF page is executed, i am getting following exception
I am using oracle weblogic portal with oracle workshop.
java.lang.NullPointerException
at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unknown Source)
at net.sf.jsfcomp.chartcreator.Chartlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Re: creating own tooltips
Hi Schnatterinchen.
Can you post a little sample of how to implement a gantt chart, using chartCreator please?
thanks a lots,
regards,
Leo.
Can you post a little sample of how to implement a gantt chart, using chartCreator please?
thanks a lots,
regards,
Leo.
Schnatterinchen wrote:Hi!
i've implemented Chart Creator in my JSF-Site.
It works good.
I'm using Gantt as chart type.
But I have a big problem.
I want to create individual tooltips.
By now they're looking like: 01.01.2001 - 04.02.2001
But I want to use my own style and information.
Is it possible to create them?
Normally i can do this with:It's very important.Code: Select all
public String generateToolTip(CategoryDataset dataset, int series, int index) { return seriesNames[series]; }
Thank you for helping!