Categories
Oracle

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 […]
Categories
Oracle

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. […]
Categories
Oracle

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 […]
Categories
Oracle

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 […]
Categories
Oracle

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 […]