Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ManagedBean
- @ApplicationScoped
- public class ImgBean{
- @EJB
- private EJUser ejuser;
- @PostConstuct
- private void init(){
- // init some lists and objects from DB
- }
- public StreamedContent getChart(){
- //build and return
- }
- }
- <p:graphicImage id="chart" value="#{imgBean.chart}" >
- </p:graphicImage>
Add Comment
Please, Sign In to add comment