Java/JavaScript Integration in OSGI: Part 2

#ICYMI: In the previous post, we discussed ways to set up an OSGI bundle in such a way that it can provide web content using Eclipse RAP to generate the entry point for web content. We also looked at ways to make the bundle secure. In this post, we will expand this bundle and demonstrate how we can make our bundle context-aware using the Bootstrap library to provide the mechanism to resize and reposition the widgets. In order to so we must first make a few changes to our bundle.

Multiple Entry Points

If you regularly work with Eclipse RAP, you may be accustomed to develop your front-end application from the BasicEntrypoint class that is provided in the root package. You will normally add a composite, which will offer all the functionality you want to provide for the end user. This approach works fine, but it does make you dependent on the RAP framework and limits the ways you can integrate new javascript libraries in your application. So we will take a different approach here, and consider Eclipe RAP as a means to develop widgets that we can add to javascript libraries!. In order to demonstrate this, do the following: https://goo.gl/Gx564P

Oracle ADF + Jasper Visualize.js = Awesome

#ICYDK: This week I was working on a task to integrate Jasper Visualize.js into Oracle ADF application JSF page fragment. I must say integration was successful and Jasper report renders very well in Oracle ADF screen with the help of Visualize.js. The great thing about Visualize.js — it renders the report in an ADF page through client-side HTML/JS; there is no iFrame. Report HTML structure is included into HTML generated by ADF, which allows using CSS to control the report size and make it responsive.

To prove integration, I was using ADF application with multiple regions — ADF Multi Task Flow Binding and Tab Order. Each region is loaded with ADF Faces tab: https://goo.gl/DUieKt