الجمعة، 17 أبريل 2020

Add Custom Chat in Oracle ADF Application

In this tutorial, I am going to show that how can you add a custom chat in Oracle ADF application, and use it to chat with friends. This is very much simple, as no code required to do this.
  • Go to http://www.everywherechat.com/, this site provides free custom flash chat rooms, get HTML code of your custom chat from here
  • Create an HTML page using that code, Simply create a text file and put this HTML code in that and save that file with .html extension.
<html>
<body>
<!-- Begin Everywherechat Room Code -->
      <br />
     <script src="http://www.everywherechat.com/e.php?defaultRoom=Lobby&roomList=true&fontSize=12&width=600&height=500&theme=night"></script> 
<!-- End Everywherechat Room Code --> 
</body>
</html>

  • Now create a Fusion Web Application and create a page in it, call this HTML page in an inline frame (af:inlineFrame)
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <af:panelGroupLayout id="pgl1">
    <af:inlineFrame id="if1" source="/chat.html" inlineStyle="height:700px;width:700px;"/>
  </af:panelGroupLayout>
</jsp:root>

  • Now run your application and see your flash chat room is ready.
    Sample ADF Application-Download

ليست هناك تعليقات:

إرسال تعليق

ADF: Programmatic View Object Using Ref Cursor.

ADF: Programmatic View Object Using Ref Cursor. Posted by:  Manish Pandey   April 25, 2013   in  ADF   Leave a comment   3758 Views Sometime...