• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Google Chart inside a Primefaces p:dialog

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on this blog entry I'm trying to display a Google Chart inside a Primefaces dialog box.

My xhtml file:


My backing bean:



My chart renderer:



With above code, when I press my button the dialog box shows up but is empty. The method `buildHistory` is called before the renderer but my chartModel is empty i.e. if I look at the source code, no row has been added to my chart. But in this particular case an empty chart should be displayed anyway.

If I add `ajax="false"` to my button, the dialog box doesn't show up at all but my chartModel is populated i.e. in the source code I see the code of my chart and if I copy paste the code of the chart into an HTML file it works...

Note also that if I don't put the chart inside the dialog box I get the expected result:



Am I missing something? Can someone give me a hint?

I'm running Glassfish 3.1.1, JSF 2.1, Primefaces 3.4, Mojarra 2.1.6

Thanks for your help !
 
Hug your destiny! And hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!