This discussion is archived
1 2 Previous Next 19 Replies Latest reply: Aug 27, 2007 7:13 AM by 594020 RSS

ADF Faces and BI Graph?

BranislavNemec Expert
Currently Being Moderated
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.

Thanks for any clue.

brano
  • 1. Re: ADF Faces and BI Graph?
    Frank Nimphius Employee ACE
    Currently Being Moderated
    Brano,

    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 ;-)

    Framl
  • 2. Re: ADF Faces and BI Graph?
    BranislavNemec Expert
    Currently Being Moderated
    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)?

    brano
  • 3. Re: ADF Faces and BI Graph?
    Frank Nimphius Employee ACE
    Currently Being Moderated
    Brano,

    this option should be available for JSPs when you drag and drop a ViewObject onto a JSP page

    Frank
  • 4. Re: ADF Faces and BI Graph?
    BranislavNemec Expert
    Currently Being Moderated
    Yes, it works.

    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?

    brano
  • 5. Re: ADF Faces and BI Graph?
    16136 Newbie
    Currently Being Moderated
    Is it possible to use jsp fragment to build bi graph (or bi beans) and import them into jsp jsf document that includes adf faces components ?
  • 6. Re: ADF Faces and BI Graph?
    BranislavNemec Expert
    Currently Being Moderated
    I have tried to include non JSP page with Graph into JSF JSP using
    <f:verbatim>
    <jsp:include page="/untitled5.jsp"/>
    </f:verbatim>

    but got internal server error:

    javax.servlet.jsp.JspException: data attribute evaluates to null
         at oracle.jbo.html.jsp.graph.GraphTag.doStartTag(GraphTag.java:212)
         at untitled5.jspService(_untitled5.java:60)
         [untitled5.jsp]

    brano
  • 7. Re: ADF Faces and BI Graph?
    16136 Newbie
    Currently Being Moderated
    was untitled5.jsp created as a jsp document fragment ?

    Be sure not to mix jsp page definition (tags) and jsp document definition (xml). I think it is not allowed but i'm not sure at 100%.
  • 8. Re: ADF Faces and BI Graph?
    BranislavNemec Expert
    Currently Being Moderated
    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.
    any workaround?

    brano
  • 9. Re: ADF Faces and BI Graph?
    16136 Newbie
    Currently Being Moderated
    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 !
  • 10. Re: ADF Faces and BI Graph?
    BranislavNemec Expert
    Currently Being Moderated
    Finally I have found solution:

    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

    enjoy,

    brano
  • 11. Re: ADF Faces and BI Graph?
    528368 Newbie
    Currently Being Moderated
    can you give me the sample code..coz I/m using jdev 10.1.3 n I want to have graph r chart in my jsf code..
  • 12. Re: ADF Faces and BI Graph?
    524973 Newbie
    Currently Being Moderated
    I am also struggling with this same problem.
    Can you post your solution so we can try it out in our project?

    Regards,
    Cliff
  • 13. Re: ADF Faces and BI Graph?
    524973 Newbie
    Currently Being Moderated
    My current solution is:
    The ADF Faces main page:

    <af:showOneTab position="above">
    <af:showDetailItem text="Graph Include" disclosed="true">
    <f:verbatim>
    <jsp:include page="${pageContext.request.contextPath}/graphs/Graph.jspx"
    </f:verbatim>
    </af:showDetailItem>


    The Graph page:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:graph="/webapp/graph.tld"
    xmlns:adf="http://xmlns.oracle.com/adf/ui/jsp/adftags">
    <jsp:output omit-xml-declaration="true"
    doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <html>
    <adf:pagedefinition/>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Graph</title>
    </head>
    <body><graph:Graph data="${bindings.EmployeesView1}"
    imageHeight="240" imageWidth="320"/>
    </body>
    </html>
    </jsp:root>


    When I try to run this, I get the following error:
    500 Internal Server Error
    javax.servlet.jsp.JspException: data attribute evaluates to null
         at oracle.jbo.html.jsp.graph.GraphTag.doStartTag(GraphTag.java:212)
         at graphs.Graph_jspx._jspService(_Graph_jspx.java:67)
         [graphs/Graph.jspx]


    Could you please post the solution?
  • 14. Re: ADF Faces and BI Graph?
    510610 Newbie
    Currently Being Moderated
    Cliff - By chance did you find a solution for this problem. I too have the same problem of including my chart and report in another page.

    Can you please share with me how you rectified this problem?

    Thanks,
    Saran
1 2 Previous Next