Jump to content
Software FX Community

using ChartFX in a JSR 168 portlet?


User (Legacy)

Recommended Posts

I am developing a JSR 168 portlet that will be running in WebSphere Portal.

I would like to use ChartFX for Java to display a chart in my portlet.

However, the ChartServer interface seems to assume that it is being called

from a servlet. Its constructor takes a ServletContext, HttpServletRequest,

and HttpServletResponse. These are not available in a portlet. Instead,

you have a PortletContext, RenderRequest, and RenderResponse. Does anyone

know how to use ChartFX in a portlet?

Thanks,

Dennis

Link to comment
Share on other sites

Hi Dennis, we are looking into this. The work around I can suggest until we 

give you a better solution is to create a Chart instead, and call the method

exportChart to get the image.

Regards,

GA

SoftwareFX

"Dennis McCarthy" <dmccarthy@kronos.com> wrote in message

news:TNIs85raFHA.4092@webserver3.softwarefx.com...

>I am developing a JSR 168 portlet that will be running in WebSphere Portal.

> I would like to use ChartFX for Java to display a chart in my portlet.

> However, the ChartServer interface seems to assume that it is being called

> from a servlet. Its constructor takes a ServletContext,

> HttpServletRequest,

> and HttpServletResponse. These are not available in a portlet. Instead,

> you have a PortletContext, RenderRequest, and RenderResponse. Does anyone

> know how to use ChartFX in a portlet?

>

> Thanks,

> Dennis

>

>

Link to comment
Share on other sites

  • 3 months later...

It may not be exactly what you would like to do but for the short term, you 

could maintain your existing ChartServer configuration and them deploy an

iFrame or other proxy portlet. The end result is your chart will be on your

portal page but the content of your chart will feed direct from ChartFX to

the browser.

- Glen.

"Dennis McCarthy" <dmccarthy@kronos.com> wrote in message

news:TNIs85raFHA.4092@webserver3.softwarefx.com...

>I am developing a JSR 168 portlet that will be running in WebSphere Portal.

> I would like to use ChartFX for Java to display a chart in my portlet.

> However, the ChartServer interface seems to assume that it is being called

> from a servlet. Its constructor takes a ServletContext,

> HttpServletRequest,

> and HttpServletResponse. These are not available in a portlet. Instead,

> you have a PortletContext, RenderRequest, and RenderResponse. Does anyone

> know how to use ChartFX in a portlet?

>

> Thanks,

> Dennis

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...