Posts

Showing posts from October, 2018

Oracle JET: Composite Components and 5.2.0 migration to 6.0.0

Hi, Recently I have migrated my Oracle JET Application from 5.2.0 to 6.0.0 following the steps mentioned in https://docs.oracle.com/en/middleware/jet/6/develop/oracle-jet-v6.0.0-tooling-migration.html They look pretty straight forward, however, I have noticed that my JET Composite Components where not loading when running my JET Application. Why? In 5.2.0 you can refer the loader.js of the Composite Component as following loader.json in 5.2.0 being used in a ViewModel JS file define(['ojs/ojcore', 'knockout', 'jquery', 'ojs/ojnavigationlist', 'jet-composites/demo-card/loader'], function(oj, ko, $) { function DemoCardViewModel() { var self = this; ); In 6.0.0, the Composite Component path generated when building the JET Application has changed including the version of the Composite Component as part of it. So, now we need to change the reference to the loader.js as following [JETComponentName]/

WCP12c: Embed a Login Task Flow in a Page or Page Template

Image
Recently I saw a question in OTN: Oracle WebCenter Portal on how you can embed a Login into a Page or Page Template. You can find the code in my GitHub repository: https://github.com/DanielMerchan/WebCenterExtensions There are many ways to do this, but in this post I will bring only two: Using Internal API: It uses some available Manage Beans in the Portal Scope for supporting authentication. This API is compatible with OAM / WebLogic Authentication. Using Java EE API: It uses the HttpServletRequest login method to perform WebLogic Authentication. Since 12c, the AutheticationServlet.login of the WebLogic API has been deprecated. It can be uses standard JAAS Authentication. The LoginInternalAPI Task Flow implements the first approach and the LoginJavaAPI Task Flow implements the second approach using a custom backing bean. For testing, you can add the Task Flow to the Portal Resource Catalog and add it to a WebCenter Portal Page. If you want to use it in your Page Templa

ADF12cR2: Boost Page Image Rendering with Lazy Loading

Image
In Oracle WebCenter Portal or Oracle ADF Applications is very common the usage of some Image Galleries or other kind of web content pages with Images or Videos in high resolution. In Oracle ADF can be applied the same techniques used in the common Web Sites developed by using JavaScript technologies. This example shows how to use one of the many Image Lazy Load implementation you can find in Internet nowadays. In this case I will make use of https://github.com/verlok/lazyload https://github.com/DanielMerchan/adf How to use the basics of this library?. It is required to import the lazyload.js javascript library, populate the data-src HTML attribute in the img tag  as explained in the LazyLoad GitHub. But, how can I add the data-src attribute in an ADF Image tag?. The ADF Operator Tag <af:passThroughAttribute> can be used with any ADF tag for rendering custom HTML attributes which are not in the out-of-the-box Catalog. <af:document title="untitled1.jsf&q

WCP12c - BAM Integration

Image
I have uploaded to my GitHub the WebCenter Portal Extension -  BAM Dashboard Task Flow which helps to integrate with Oracle BAM Dashboards. https://github.com/DanielMerchan/WebCenterExtensions Summary of steps about how to use it (more detailed in GitHub) Summary - Installation: The project produces an ADF JAR Library that you can deploy within the WebCenter Portal Shared-Library extend.spaces.webapp or in a separate Shared-Library referenced by extend.spaces.webapp weblogic.xml It requires to create an ADF Connection in WebCenter Portal using the Enterprise Manager (BAM Connection).   Usage: Add BAM Dashboard Task Flow into WCP Resource Catalog. Add BAM Dashboard Task Flow into a WCP Portal Page. Configure BAM Dashboard Task Flow Input Parameters. (A BAM Dashboard Proxy Page URL looks like http://wcp12c:7004/bam/composer/faces/proxypage?DashboardParameters=%28ProcessSelection%3D%5BALL%5D%3B%29&dashboard=ProcessHealth&project=ProcessAnalytics_v2

WCP12c: Merge your Portal Assets into a single Application

Image
Hi all!. Recently I've been asked about how to merge Portal Asset Projects in a Single JDeveloper Application. The Official Documentation https://docs.oracle.com/middleware/12213/wcp/develop/GUID-D013EB98-A5BB-47A1-8931-A808F7806049.htm#JPSDG15334 describes how to create Portal Asset Application. By following this way you will end with N JDeveloper Applications for N Portal Assets. If in a Portal Asset Application you try to create a Portal Asset Project, you will face that the wizard does NOT allow you to select which type of Asset you are creating . Probably is a BUG, but I will not open an Oracle SR because I doubt they will fix it or enhance it. So, the Portal Asset Project template is useless . Workaround : The trick for having all Portal Assets in a single project is. Create a Portal Asset Application. E.g. PortalAssetsApplication. Name the first PortalAsset project following your naming convention. E.g.: BasicPT for the Page Template Create a new P