• Post Reply Bookmark Topic Watch Topic
  • New Topic

CDI with Primefaces Charts not rendering properly  RSS feed

 
marcel vieira
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 4 Primefaces bar charts which sometimes renders, sometimes not. In one of them, I inject a http user session attribute and use it to render the chart (the idea is to show only the data that corresponds to the (logged in) user department).

There are 4 session beans which I'm using the javax.enterprise.context.RequestScoped. Sometimes, the Glassfish destroys the instance as expected, but sometimes not.

Based on Exception below, how can I resolve it?

Thanks in advance.

The xhtml below shows the main code for only 2 of the 4 bar charts:



The session bean below shows the main code for only 1 of the 4 session bean:



The Exception:

 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that a @Postconstruct method is required to be public, not private. That's because whatever external mechanism constructed and initialized (Managed Properties) the bean has to be able to call it and internal (private) methods can only be called from code that's within the bean itself, not external to it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!