Tuesday, September 1, 2015

JDev/ADF sample - ADF 12c Dynamic Forms with ADF BC UI Categories

  • ADF 12c Dynamic Forms with ADF BC UI Categories. ADF 12c offers completely new way to implement UI forms. We can implement dynamic forms, based on static ADF BC components. Such approach could simplify form maintenance - when there will be changes in DB, developer would need to adjust only ADF BC EO/VO structure, without changing anything on UI. Bindings layers could determine data structure dynamically and dictate how to render UI blocks. ADF BC VO provides special metadata option to define how form UI should be rendered - UI Categories. Through categories we could group attributes and this would help to render dynamic UI with separate blocks and proper order.
    Download - ADFAltaApp_v7.zip

Tuesday, August 18, 2015

JDev/ADF sample - Smart Combo Box LOV with Filter

  • Smart Combo Box LOV with Filter. Combo box LOV with filtering is simple, but effective feature not used often. You should rethink LOV design and apply combo box LOV with filtering where possible. Advantage of such LOV implementation is pretty clear - fast list items access, based on filter criteria. This will reduce number of times required to open LOV popup and improve performance of UI.
    Download - SmartComboLOV.zip

Thursday, August 6, 2015

JDev/ADF sample - Tabs Layout Support in Alta UI Tablet First Template

  • Tabs Layout Support in Alta UI Tablet First Template. Tablet First Template in ADF 12c is ideal for both tablet and desktop. Combined with Alta UI layout, it offers light and responsive UI experience to the end users. I'm going to describe in this post, how to use ADF Faces Tabs with Alta UI in Table First template. I will show ADF regions are friendly with Web like UI design, without internal scrollbars in the page.
    Download - ADFAltaApp_v2.zip

Thursday, July 30, 2015

JDev/ADF sample - Using Shared AM to Cache and Display Table Data

  • Using Shared AM to Cache and Display Table Data. This post is based on Steve Muench sample Nr. 156. In my personal opinion, ADF samples implemented by Steve Muench still remain one of the best source of examples and solutions for various ADF use cases. Sample Nr. 156 describes how to use Shared AM to display cached data in UI table. Typically Shared AM's are used to implement cached LOV's (session or application scope). But it could go beyond LOV, based on the use case we could display cached data in the table or form. I have tested this approach with 12c and it works fine.
    Download - ADFBCSharedSessionLOVApp.zip

Thursday, July 16, 2015

JDev/ADF sample - Auto Refresh for ADF BC Cached LOV

    Download - ADFBCSharedSessionLOVApp.zip

Saturday, July 11, 2015

JDev/ADF sample - ADF BC Session Cached LOV - Understanding Expire Time

  • ADF BC Session Cached LOV - Understanding Expire Time. ADF BC offers LOV caching feature. There are two caching levels - application and session. With application level enabled, it makes LOV rows available for all users. On contrary for session level LOVs, data is cached for single session only. In this post I will focus on session level LOV's and I'm going to explain when cached data expires and is re-fetched.
    Download - ADFBCSharedSessionLOVApp.zip

Saturday, July 4, 2015

JDev/ADF sample - Oracle Process Cloud Service - Consuming ADF BC REST Service in Web Form

  • Oracle Process Cloud Service - Consuming ADF BC REST Service in Web Form. With the introduction of Oracle Process Cloud Service (https://cloud.oracle.com/process) there is an option to run your business process in the cloud. You can implement very similar things as it is possible with BPM 12c in JDeveloper, but only in the cloud. There is no option to implement human task UI with ADF, it must be done with Web Forms (light UI forms implementation framework). This is disadvantage, as it will require to externalise complex business logic and access data collections through REST calls, instead of processing it locally in ADF extension. However, this is how it is implemented currently in the BPM cloud version.
    Download - RestADFBCApp.zip

Wednesday, June 24, 2015

JDev/ADF sample - Intercepting Table Filter Query and Manipulating VO SQL Statement

  • Intercepting Table Filter Query and Manipulating VO SQL Statement. I’m going to describe one non declarative use case. Imagine, if there is a table with filter functionality, you may want to intercept filter items and apply the same for another VO. This another VO should be based on the same DB table, so it could apply criteria items against the table.
    Download - AdvancedViewCriteriaApp.zip

Thursday, June 18, 2015

JDev/ADF sample - Select One Choice with Select Items Tag

  • Select One Choice with Select Items Tag. If you need to implement select one choice based on alternative data sources (not based on ADF BC) - you shouldn't use af:forEach inside af:selectOneChoice component. Don't get confused with af:forEach tag, this tag is supposed to generate multiple components and not to iterate over a collection of objects and render HTML for each item. There could be cases, when choice list data will come duplicated, with af:forEach tag applied. I would suggest to construct array of SelectItem objects and return it to the f:selectItems tag to be rendered.
    Download - CustomSelectListApp.zip

Thursday, June 11, 2015

JDev/ADF sample - How To Record ADF Client Side Request Performance Time

    Download - ADFAltaApp_v6.zip

Thursday, June 4, 2015

JDev/ADF sample - How to Apply New Label Text in MDS Customisation

  • How to Apply New Label Text in MDS Customisation. It may look simple, but really is not obvious how to apply new label text for the ADF BC attribute or UI component through MDS customisation. It is simple, if such label text already exists in the core bundle. If you need to create new label text in the customisation and use it - this becomes a bit tricky. Well, as usual - I'm going to explain how you could solve such task. You should read more about MDS customisation setup in ADF - MDS Seeded Customization Approach with Empty External Project.
    Download - mds_label_cust.zip

Sunday, May 31, 2015

JDev/ADF sample - Load More Scroll Policy for ADF 12c Table and Range Paging

    Download - ADFTableLoadApp.zip

Thursday, May 28, 2015

JDev/ADF sample - Responsive UI Support in ADF 12.1.3

  • Responsive UI Support in ADF 12.1.3. Responsive UI is a big deal nowadays, when enterprise applications should run on different platforms and devices. Often customers prefer to render simpler functionality screens for mobile devices and give full data entry access only when accessing through regular Web browser on the computer. ADF provides support for this, you can implement responsive UI designs relatively easy, check informative blog post from Shay Shmeltzer - ADF Faces Responsive Design - 12.1.3 Update.
    Download - ADFResponsiveUIApp.zip

Saturday, May 23, 2015

JDev/ADF sample - ADF 11.1.1.9 Goodies - Conveyor Belt Component and Alta UI

  • ADF 11.1.1.9 Goodies - Conveyor Belt Component and Alta UI. It doesn't seem to be announced, but newly released ADF 11.1.1.9 is shipped with Alta UI support. All you need to do, is to set alta skin name in trinidad config file. This enables applications running on ADF 11g platform to leverage new Oracle UI layout and to be prepared for ADF 12c upgrade. Besides Alta UI, there are several new UI components, one of them is Scrollable Bar (ConveyorBelt) - Displaying Components in a Scrollable Bar. This is simple, but quite useful component - I'm going to demonstrate how it works.
    Download - ConveyorBeltApp.zip

Saturday, May 16, 2015

JDev/ADF sample - ADF and Two-Way WebSocket Communication Architecture

    Download - ADFAltaApp_v5.zip

Monday, May 11, 2015

JDev/ADF sample - WebSocket Accelerated Live Data Synchronization for MAF

    Download - AltaMobileApp_v2.zip

Thursday, May 7, 2015

JDev/ADF sample - Oracle MAF and WebSockets Integration - Live Twitter Stream

  • Oracle MAF and WebSockets Integration - Live Twitter Stream. Oracle MAF and WebSockets - I will describe how it works together. WebSockets is a protocol providing full-duplex communication channel over a TCP connection. This channel is interactive (communication is both ways) and we can send messages from the server to the client (MAF application running on the device). There is no need to use push notifications, WebSockets provide JSON support and allow to send complex payload data. In a way it competes with REST, however REST is different with request is being initiated by the client. WebSockets data is received automatically - there is no need to trigger any event by the client.
    Download - AltaMobileApp_v1.zip

Tuesday, April 28, 2015

JDev/ADF sample - WebSocket Integration with ADF for PPR Request Monitoring

  • WebSocket Integration with ADF for PPR Request Monitoring. WebSocket is a protocol enabling communication over TCP connection. Communication is interactive, meaning data can be sent both ways - from the server to the Web client and back. Data is sent through WebSocket channel, without using using regular HTTP. This means we can enable communication between server and Web client without consuming bandwidth from HTTP. WebLogic 12c is shipped with required libraries for WebSocket support, we can use this protocol straight away in ADF 12c. WebSocket supports JSON format, this allows to send and receive JSON formatted data, just the same as REST. In this post I'm going to describe how WebSocket could be used, to report PPR request time measured on the Web client (Monitoring PPR Request Time on ADF UI Client Side), back to the server.
    Download - ADFAltaApp_v4.zip

Friday, April 17, 2015

JDev/ADF sample - Monitoring PPR Request Time on ADF UI Client Side

  • Monitoring PPR Request Time on ADF UI Client Side. We can measure how long it takes to process request on the server side, however it is equally important to measure how long PPR request takes on the client side. Mainly because this will be a key factor for application performance exposed to the end user. There is relatively easy approach in JSF 2.0 to measure PPR request time on client side - with a special ajax tag. ADF 11g R2 and ADF 12c are based on JSF 2.0, this means we can use such tag and measure request performance. Read in my previous post how to monitor page load time in ADF UI client - Monitoring Page Load Time on ADF UI Client Side.
    Download - ADFAltaApp_v3.zip

Wednesday, April 15, 2015

JDev/ADF sample - Monitoring Page Load Time on ADF UI Client Side

  • Monitoring Page Load Time on ADF UI Client Side. In certain situations, it might be useful to monitor ADF page load time. This is pretty easy to achieve with Navigation Timing API and Java Script. Navigation Timing API is supported by modern browsers and allows to retrieve client side load time. It takes into account data transfer time and actual rendering in the browser - real time it took for a user to see the content.
    Download - ADFAltaApp_v2.zip

Wednesday, April 8, 2015

JDev/ADF sample - Simple (Effective) Refresh Approach for ADF Regions

  • Simple (Effective) Refresh Approach for ADF Regions. I often hear developer asking about how to refresh different regions on the same page, when specific event happens in one of the regions - to refresh dependent regions. Usually developers would like to use something more simple than Contextual Event approach. There is more simple approach, may be it doesn't work for all the possible use cases - but it does it job, when just refresh is needed. This approach is based on dummy parameter value, being used as dependent region input parameter, with refresh option set to be ifNeeded.
    Download - SimpleReloadRegionApp.zip

Friday, April 3, 2015

JDev/ADF sample - Indicator for Background REST Service Access with A-Team Mobile Persistence Accelerator

    Download - MobileServiceBusApp_v8.zip

Sunday, March 29, 2015

JDev/ADF sample - Automatic ADF Popup Opening on Fragment Load

  • Automatic ADF Popup Opening on Fragment Load. I had a post about opening ADF Popup on page load - Opening ADF PopUp on Page Load. Approach is quite straightforward, developer needs to use showPopupBehavior operation with appropriate trigger type. When it comes to ADF Popup opening on fragment load, implementation is a bit more complex. There is a known method to implement hidden text field and in the getter method call your custom logic - getter will be executed when fragment loads. However, this is not very efficient, you will need to add condition to distinguish between first and subsequent calls to the getter (it will be executed multiple times). I will describe in this post different approach - using ADF poll component and forcing it to execute only once after fragment load.
    Download - FragmentPopUpLoadApp.zip

Sunday, March 22, 2015

JDev/ADF sample - Background REST Service Access with A-Team Mobile Persistence Accelerator

    Download - MobileServiceBusApp_v7.zip

Tuesday, March 17, 2015

JDev/ADF sample - ADF BC Property Set to Group Attribute Hints

  • ADF BC Property Set to Group Attribute Hints. There is one ADF BC component not mentioned often - Property Set. This is a bag of properties/hints, it can be applied for EO/VO attributes. Frequently used hints can be defined in Property Set once, without repeating the same for each attribute. This simplifies maintenance, if there will be a change required in the future - much easier to change it in single place. I will show below a practical example, where Property Set is applied for EO attribute to define a date type.
    Download - PropertySetApp.zip

Monday, March 16, 2015

JDev/ADF sample - REST Service Access with A-Team Mobile Persistence Accelerator

  • REST Service Access with A-Team Mobile Persistence Accelerator. A-Team Mobile Persistence Accelerator (AMPA) works on top of Oracle Mobile Application Framework (MAF) and provides tools to simplify consumption of REST services. It enables transparent persistent layer usage on the device with the option of synchronising offline data with the server side. In this post, I will be testing AMPA in the context of the use case implemented previously - MAF 2.1 Alta Mobile UI and Oracle Mobile Suite. Working MAF application, where REST service calls are coded by hand, will be changed to fetch REST service data through AMPA - reusing existing Data Control. This is unusual approach, most of the tutorials related to AMPA describe end-to-end scenario, where Data Control is generated on top of AMPA service class and UI is generated with AMPA wizard. Mobile UI in most of the cases will be custom made and we rarely generating it. This is why it is important to explain, how to use AMPA with custom UI and Data Control.
    Download - MobileServiceBusApp_v6.zip

Friday, March 6, 2015

JDev/ADF sample - Invoking REST Service from Oracle ACM Java Activity

  • Invoking REST Service from Oracle ACM Java Activity. In this post I will show you, how to call REST service from ACM Java activity class method. This could be useful in the situations, when you would like to have programmatic ACM activity integrated with REST service data. We could access ACM payload data from within the method overriden in the class implementing Case Activity Callback.
    Download - HotelBookingProcessing_v2.zip

Thursday, February 19, 2015

JDev/ADF sample - ADF BC Range Paging and REST Pagination

  • ADF BC Range Paging and REST Pagination. In this post I would like to explore and integrate two thing - ADF BC Range Paging and REST service pagination. It would inefficient to retrieve entire set of data in the REST service, ideally should be available option to specify number of rows and range number to fetch. ADF BC allows to query VO in Range Paging mode - SQL query will be constructed with row numbers, to query data in certain range of rows (this allows to fetch less data from DB). We could combine this with REST service and provide light interface to access data.
    Download - RestADFBCApp.zip

Monday, February 9, 2015

JDev/ADF sample - MAF 2.1 Alta Mobile UI and Oracle Mobile Suite

    Download - MobileServiceBusApp_v5.zip

Tuesday, February 3, 2015

JDev/ADF sample - Oracle Mobile Suite - Web Service Performance Optimisation with Result Caching

    Download - MobileServiceBusApp_v4.zip

Saturday, January 31, 2015

JDev/ADF sample - MAF 2.1 - Debugger Improvements and Mobile REST Client

  • MAF 2.1 - Debugger Improvements and Mobile REST Client. I was blogging previously about Oracle Mobile Suite and REST service transformation from ADF BC SOAP service. Today I'm going to blog the next step in the same series - MAF client consuming REST service exposed from Oracle Mobile Suite ESB. I'm going to highlight improvements in debugging process for MAF, provided with the latest 2.1 release. I had couple of challenges implementing and mapping programmatic MAF client for REST service, all these were solved and I would like to share the solution with you.
    Download - MobileServiceBusApp_v3.zip

Monday, January 26, 2015

JDev/ADF sample - How To Add New Operation in Oracle Mobile Suite Service Bus REST Service

    Download - MobileServiceBusApp_v2.zip

Friday, January 16, 2015

JDev/ADF sample - Reading MAF iOS Simulator Logging Output

  • Reading MAF iOS Simulator Logging Output. It could be very handy to know how and where to read MAF logging output from iOS simulator. This is not that obvious to find logging output on Mac OS system. All log is written into application.log file, this file is located inside temporary application directory. I will explain how to locate this directory and how to open application.log file. You can read more about MAF testing and logging here - 18.5 Using and Configuring Logging.
    Download - ADFMobileLogginApp.zip

Saturday, January 10, 2015

JDev/ADF sample - How To Start a Case in Oracle Adaptive Case Management 12c

  • How To Start a Case in Oracle Adaptive Case Management 12c. Blog reader was asking to describe how to start a new case in Oracle ACM 12c. You can read my previous blog post on ACM 12c topic - Adaptive Case Management 12c and ADF Human Tasks. There are multiple ways to start a case, depends if you want just to test the case or really use it. I would recommend to use SoapUI to test the case. In the real scenario, case most likely will be started from third party web service or through ACM 12c Java API. Here I would like to describe, how you could use SoapUI to test ACM process during development.
    Download - HotelBookingProcessing_v1.zip

Sunday, January 4, 2015

JDev/ADF sample - Oracle Mobile Suite Service Bus REST and ADF BC SOAP

    Download - MobileServiceBusApp_v1.zip

Tuesday, December 30, 2014

JDev/ADF sample - Custom ADF Application with New ADF 12c Alta UI

  • Custom ADF Application with New ADF 12c Alta UI. I was inspired by recently published WorkBetter application with ADF 12c Alta UI demo (you can read more about Alta UI and download WorkBetter application from here - Oracle Alta UI). I have decided to create my own application, using the same guidelines as described by Alta UI. While WorkBetter application is based on EJB, my application is using regular ADF BC model. Right now it displays a list of employees from HR schema and allows to edit selected employee data. In the future, I plan to add CRUD support and more advanced UI features. I would recommend to watch a video from Shay Shmeltzer, he describes how to build your first Alta UI application in ADF.
    Download - ADFAltaUI.zip

Wednesday, December 24, 2014

JDev/ADF sample - Configuring MDS Customisation Layer and Layer Value Combination in ADF

  • Configuring MDS Customisation Layer and Layer Value Combination in ADF. With this post I would like to dive a bit deeper into MDS customisation and layer combination handling. By default, there is defined customisation layer - site. Typically we set our own customisation values for this layer, as a result - all customisations usually are stored under site layer. There could be situations, when more advanced setup would be required - to be able to control layer and layer value combination in a custom way. In other words - to be able to define your own custom layer and then provide customisation values for this layer (MDS customisations will be stored under custom_layer/custom_layer_value, instead of default site/custom_layer_value). Oracle docs would not describe how to handle on runtime layer name to be dynamic and retrieve it from some sort of configuration file. I'm going to describe a technique for this, allowing to combine and group MDS customisations under custom layer and layer values folders.
    Download - MDSCustomizationsApp_v3.zip

Thursday, December 4, 2014

JDev/ADF sample - Adaptive Case Management 12c and ADF Human Tasks

  • Adaptive Case Management 12c and ADF Human Tasks. I'm diving into the new topic - Adaptive Case Management 12c and ADF integration. Today will be the first post in the category and there are more posts planned for the future. I strongly believe that ACM (Adaptive Case Management) makes a great extension for standard BPM. Mainly because it allows to define a loose process, without strict order steps. Process steps can be executed in different order, depending on the situation requirements, at given time. I will be explaining how to implement ADF Human Task for ACM activity and will share several tips, how to make it run in BPM Workspace application.
    Download - HotelBookingProcessing_v1.zip

Saturday, November 29, 2014

JDev/ADF sample - Adaptive Form with Dynamic ADF LOV Value Binding

    Download - DynamicAttributeBindingApp_v2.zip

Wednesday, November 26, 2014

JDev/ADF sample - Suppressing ADF LOV Like Operator Filtering V2

    Download - ADFTableApp_v2.zip

Wednesday, November 19, 2014

JDev/ADF sample - BPM Authentication On Behalf Business User from ADF

    Download - adfbpm11gr4.zip

Thursday, November 13, 2014

JDev/ADF sample - Dynamic ADF Buttons Solution for Oracle BPM Outcomes

  • Dynamic ADF Buttons Solution for Oracle BPM Outcomes. BPM Human Task activity is configured with outcomes. Based on these outcomes, buttons in ADF UI are constructed allowing user to perform different actions with the task. Auto generated ADF Human Task form contains a set of predefined buttons and this set is controller with rendered flag. My sample application is using different approach, it implements custom tasks table and dynamic ADF UI for the human task input form - Dynamic ADF Form Solution for Oracle BPM Process. Once user selects a task, action buttons are generated dynamically - using a set of outcomes configured for the particular task.
    Download - adfbpm11gr4.zip

Friday, November 7, 2014

JDev/ADF sample - Dynamic ADF Form Solution for Oracle BPM Process

    Download - adfbpm11gr4.zip

Monday, November 3, 2014

JDev/ADF sample - MdsMetadataResourceProvider Error in ADF 11.1.1.7

  • MdsMetadataResourceProvider Error in ADF 11.1.1.7. If you have migrated ADF application to ADF 11.1.1.7 version recently, you may see error in the log related to the internal MetadataResourceXmlImpl class usage. Runtime behaviour will not be affected, but there could be many redundant error messages in the log.
    Download - ADFMetadataInternalApp.zip

Tuesday, October 28, 2014

JDev/ADF sample - Handling Date Format and ADF Bindings

  • Handling Date Format and ADF Bindings. There are tips and tricks related to the date format handling and ADF bindings. When Oracle date type attribute is being used through ADF binding expression, it will be converted to String with default format (yyyy-MM-dd), no matter what original format was set. This is described in API for the Oracle date type - Date constructor with String. Below I'm going to explain how it works and how you could optimise ADF application to handle date type attributes from ADF bindings layer.
    Download - DateFormatApp.zip

Thursday, October 23, 2014

JDev/ADF sample - ADF BC View Object SQL Query Customization with MDS

    Download - MDSCustomizationsApp_v2.zip

Sunday, October 12, 2014

JDev/ADF sample - Workaround for ADF 12c Choice List Blank Selection Issue

  • Workaround for ADF 12c Choice List Blank Selection Issue. I would like to share a workaround for Choice List component in ADF 12c. There is specific issue, related to blank selection - as soon as user selects blank selection in the choice list, it starts to invoke value change listener for that list, each time when any other element is selected in the table. This is quite annoying and could lead to unexpected results, especially if you depend on logic implemented in value change listener.
    Download - ADFChoiceList12cApp.zip

Wednesday, October 8, 2014

JDev/ADF sample - New Alta UI for ADF UI Shell Application

    Download - MultiTaskFlowApp_v12c.zip

Saturday, September 27, 2014

JDev/ADF sample - Suppressing ADF LOV Like Operator Filtering

  • Suppressing ADF LOV Like Operator Filtering. ADF LOV component provides filtering option with STARTSWITH operation. This is used to check if similar value exists in the LOV, if such value exists - LOV popup is opened with all the suggested values. If user types 10 and there are 100, 1000 in the LOV, instead of accepting value 10 - LOV popup will be opened and all three values 10, 100, 1000 will be displayed. While this is useful, there is no option to turn off such functionality. My post describes a solution, that can be used to disable suggested LOV filtering.
    Download - ADFTableApp.zip

Tuesday, September 23, 2014

JDev/ADF sample - ADF Region Data Synchronisation with Change Event Policy

  • ADF Region Data Synchronisation with Change Event Policy. This post applies for multiple ADF regions, based on the same Data Control. I will show you can avoid using ADF Contextual Events to synchronise two ADF regions, when both are based on the same Data Control and this Data Control is shared between the two.
    Download - RegionCommunicationApp.zip