Using Refresh Container component in MAF

The new version 2.2 of Oracle MAF was release, and now we have a new useful component, called Refresh Container, to use when we need to refresh a list view component. In this post, I will show how you can use the Refresh Container component to update a list of employees instead of use a button component. As a starting point, I will use the application of this post: REST/JSON in MAF. Download the sample application: MAFRESJSONApp_v2.zip. Open the empList page. Go to Struture panel and right-click […]

MAF 2.0: Using Local Database

When you are building a MAF application, you may decide to use Web Services (SOAP / REST) or local Database to retrieve or persist your data. If you decide to use local Database, the SQLite is the default Database of MAF. SQLite is designed for use as an embedded database system, one typically used by a single user and often linked directly into the application. It is ACID-compliant, lightweight and portable. In this post I will create a CRUD of employees in Oracle MAF 2.0 using SQLite Database. […]

MAF: Deploy in Release Mode (Android)

You need to select Release for the Build Mode, when your application is ready to be published to an application marketplace, such as Google Play, or to test application performance. In this post, I will show how to configure the key options for a Release Mode. Open a command window and navigate to the <JDK_HOME>/bin directory. Create a new keystore file using the keytool utility. keytool -genkey -v -keystore <keystoreName>.keystore -alias <aliasName> -keyalg RSA […]

Form-Field Validation in MAF

The validation of required fields in web applications is important, and you have to do the same for mobile applications. In this post I will show how you can validate required fields in Oracle MAF 2.0. To do this, I will use the application of this post: REST/JSON in MAF. Download the sample application: MAFValidationApp.zip. Open empEdit page. Add the Validation Group component to validate required fields. Go to Components panel Operations, drag the Validation Group component and drop […]

REST/JSON in MAF

REST/JSON has several advantages over SOAP/XML, so it is preferred for mobile web services. As REST/JSON is a smaller than SOAP/XML, you will be passing much less data over the network. For mobile devices, it is a very important point. In this post we will create a CRUD of employees in Oracle MAF 2.0 using REST/JSON. I will use this REST application (Expose ADF BC as RESTful Web Service). Download the sample application: MAFRESTJSONApp.zip. Initialize the REST Web Service. Create a Mobile […]

Consuming SOAP Web Service in MAF

Lets create a MAF application to consume the ADF-BC Application Module exposed as SOAP Web Service (Expose Application Module as SOAP Web Service). As you must know, Oracle MAF, formerly Oracle ADF Mobile, is the new Oracle Mobile solution. In this post we will create a CRUD of employees in Oracle MAF 2.0.1. It will communicate with the ADF-BC through a SOAP Web Service. Download the sample application: MAFSOAPApp.zip. Let’s start! Create a Mobile Application Framework Application, […]

Empty REST DC in MAF 2.0.1 (Workaround)

There is an issue with Web Service Data Control component when you create a REST Service Connection, because it saves the absolute path of schema file in DataControls.dcx file. I faced this problem when I tried to open in Windows, a MAF project that I have created in Ubuntu. As the absolute path of schema file was different, the Data Control was empty. You can fix this error, changing the SchemaLocations to relative paths in DataControls.dcx file. To avoid this error, you can change the SchemaLocations […]