Is it possible to use BI Graph with ADF Faces?
So far I was using BC4J/JSP/Struts and to put Graph (<graph:Graph/>) into JSP page was easy - using Data Control Palette. Now I want to migrate to JSF (ADF Faces) but when I create JSF JSP - it is impossible to insert some ViewObject as Graph from Data Control Palette.
ADF Faces does not yet have a BI Graph integration. You can try and use the JSP tags enclosed by a <verbatim></verbatim> element. I didn't test this, so chances are this recommendation is for the trash ;-)
I have tried it but no success.
So the question is: Is it possible to show chart in a web application if I want to use ADF Faces + BC4J for presenting data from database as master/detail tables and BI Graph + BC4J for drawing chart (eaven on separate non-JSF JSP page)?
Now I can manage to have separate non-JSF JSP page with graph binded to the same ViewObject like JSF based JSP with master/detail tables. So on JSF based JSP page I can present data in detail table and forward action to non-JSF JSP page with graph. It is solution but not very nice solution. Do Oracle plan to integrate BI Graph to ADF Faces in near future or is there any workaround how to include non-JSF JSP page with graph into JSF JSP page?
you were right.
I recreated untitled5.jsp as a .jspx and now It can be included into jsf jsp.
but next problem is: when I navigate through data model the graph doesn't get refreshed automatically like other ADF Faces UI Components. I have to press refresh in browser to refresh graph.
Adf faces component are refreshed through a page life cycle managed by a phase listener class. You may be able to override this class to intercept the event that refresh your component and refresh your graph with the appropriate method. I can't say more because I never gone so in-depth in adf faces with embed jsp element. sorry, may be some adf faces guru's may help us !
If you put non-jsf JSP with graph into JSF inside PanelBox and set PartialTriggers of PanelBox to master combobox (or master table), after changing value in combobox PanelBox refreshes and so does BIGraph......this way we have nice JSF databinded Graph component
When I try to run this, I get the following error:
500 Internal Server Error
javax.servlet.jsp.JspException: data attribute evaluates to null