Two charts on same page

13 views
Skip to first unread message

Flávio Henrique

unread,
Aug 26, 2009, 12:41:18 PM8/26/09
to JSFlot JavaServer Faces JSF Chart Library
Hi there!
Moving forward with my tests with JSFlot, I'm now stuck: when I try to
show two charts on same page only the last one got rendered.
I'm using the same bean method as value binding for the two charts
(just for quick tests). Nothing...
I can see the data for the two charts on page source, but only an
empty space is 'rendered' for the first chart. The second one got
displayed ok.

Any idea? Please...

Thank you in advance.

Flávio Henrique

unread,
Aug 26, 2009, 12:52:47 PM8/26/09
to JSFlot JavaServer Faces JSF Chart Library
Hmmm...
If I explicit reRender the charts the first one got rendered...

Still need help to figure out why first load dont shows the first
chart. :(


Flávio Henrique

Joachim Haagen Skeie

unread,
Aug 26, 2009, 4:56:59 PM8/26/09
to jsf...@googlegroups.com
Hello,

Do the charts have separate IDs ?

Flávio Henrique

unread,
Aug 26, 2009, 5:02:16 PM8/26/09
to jsf...@googlegroups.com
:p

Yes... different Id's...

The odd is that after a reRender the two charts get rendered without problems...

I'm investiganting the generated code, but nothing so far... 
If you have any more hint or need code examples, let me know.

Thank you!


Flávio Henrique

--------------------------------------------------------
"Can entropy be reversed?" -- Asimov
--------------------------------------------------------

Dsleeper

unread,
Oct 7, 2009, 6:23:52 AM10/7/09
to JSFlot JavaServer Faces JSF Chart Library
I'm using the Richfaces a4j:jsFunction onload command to make sure
that all graphs are rendered. This seems to circumvent the problem.

Example:
<a4j:jsFunction name="onload" reRender="statsPanel" />

Where statsPanel is the id of the div which is enclosing the
jsflot:flotChart tag.

On 26 Aug, 23:02, Flávio Henrique <yoshi...@gmail.com> wrote:
> :p
> Yes... different Id's...
>
> The odd is that after a reRender the two charts get rendered without
> problems...
>
> I'm investiganting the generated code, but nothing so far...
> If you have any more hint or need code examples, let me know.
>
> Thank you!
>
> Flávio Henrique
>
> --------------------------------------------------------
> "Can entropy be reversed?" -- Asimov
> --------------------------------------------------------
>

Joachim H. Skeie

unread,
Oct 7, 2009, 8:16:42 AM10/7/09
to JSFlot JavaServer Faces JSF Chart Library
Thank you for your update Dsleeper!
Reply all
Reply to author
Forward
0 new messages