Add Custom Chat in Oracle ADF Application

Sharing is Caring

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

Cheers 🙂 Happy Learning

Related Posts

An Oracle ACE, Blogger, Reviewer, Technical Lead working on Oracle ADF

0 thoughts on “Add Custom Chat in Oracle ADF Application”

Leave a Reply

Your email address will not be published. Required fields are marked *