Posts

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.j...

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=ProcessAna...

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...

ADF 12cR2: Using WebSockets for warning Task Flow Concurrency

Image
Hi all, I started to upload ADF 12cR2 POCs in my GITHub Repository with samples I develop for my current clients for technical feasibility. https://github.com/DanielMerchan/adf The first project is WebSocketConcurrentTaskFlowEdit. Basically, it uses CDI Managed Bean + Jakarta EE WebSocket s for communicating users which are concurrently editing the same information in an ADF Page / ADF Bounded Task Flow.   The components are the following: TaskFlowWebSocketServer.java: Contains the WebSocket Server Side Logic. TaskFlowSessionHandler.java: It is a CDI Bean injected in our TaskFlowWebSocketServer.java for decoupling the logic and handling the mapping between Socket Sessions with Task Flows. TaskFlowWebSocket.js: It is the WebSocket Client written in JavaScript which is the responsible of opening the Socket Connection and manage the messages received (in JSON Format) from the TaskFlowWebSocketServer .java SocketHandler.java: Is an ADF Managed Bean used by TaskFlow...

About the blog...

Hi people, It has been a while without blogging due to personal reasons. I am planning to upgrade or probably migrate to another blogging platform for starting blogging about Jakarta EE, Containers, Microservices, Hippo CMS... and the new trending technologies. I will keep answering questions around Oracle Fusion Middleware in the OTN Forums and in the projects of Oracle I am involve with. But, is time to move on!!!!! Let's continue growing on knowledge and obviously sharing it!. Kind regards!.

WCP 12c: Using WCCDOC Task Flow as Document Preview

Image
One of the biggest changes of Oracle WebCenter Portal 12c has been its integration with Oracle WebCenter Content. All the legacy ADF Bounded Task Flows such as Document Explorer, Document Viewer etc... has been deprecated and replaced with the same component as used by WCC ADF UI. Oracle WebCenter Portal 12c uses a wrapper to WCC ADF UI called Content Manager Task Flow (which internally calls to wccdoc, wccmain and other internal Task Flows used by Oracle WebCenter Content). One of the missing functionalities is how can we preview a Document in WCP 12c as Document Viewer does not exists anymore. In OTN WCP Forum I was asked how to achieve this. It can be achieved with the wccdoc Task Flow ( https://community.oracle.com/thread/4061288 ) There are two choices for accessing a detail of a specific content / document in WCP 12c: Offer a link by using /wccdoc Servlet which will open a Oracle WebCenter Portal page with Content Manager Task Flow pre-loading the specific co...

WCP-BPM12c: Process Workspace

Image
In case of you are planning to integrate the BPM Process Workspace in WebCenter Portal in 12c version then read the following :). First of all you need to follow the steps mentioned in the official documentation ( Note that now this information is in the BPM 12c documentation and not in WCP 12c documentation) : BPM 12c - Integrating with Oracle WebCenter Portal Basically you need to: Register a BPEL connection within WebCenter Portal. Restart Portal (then it will use this BPEL connection to create a Worklist Connection as well). You can check all of this connections by using WebCenter Portal WLST Scripts. Add the BPM Resource Catalog as in the Shared Assets of WebCenter Portal Surprisingly the Resource Catalog only offers the Task List and Available Processes Task Flows. I am wondering what happened with Cases and other stuff you can access in the BPM Workspace :/. In 11g version we had the Portal Templates and a complete setup of BPM Task Flows. All of them has been dep...