Pages

Friday, September 27, 2013

Dynamic Region Refresh Issue


In general when we use dynamic region, we have multiple buttons/links which change the taskflowId and partial trigger on dynamicRegion . This refreshes the taskflow loaded in dynamic Region. Recently I encountered a usecase where dynamic region is not refreshing or reset is not happening.




InputText fields has required="true" and CommandButtons in the above page have immediate="true" so that it is able to navigate to another taskflow. Now as we go ahead with implementation of changing the taskflowId and partialTrigger on dynamicRegion, the value in the inputText field is retained, even though taskflow is reloaded .

Finally I was able to resolve this reset issue with help on Jdeveloper And ADF Forum..https://forums.oracle.com/thread/2585988 . Thanks to Frank.

Solution is to switch the taskflow using below code :
oracle.adf.view.rich.util.ResetUtils.reset(regionId_in_here);

Download the sample from here


Wednesday, September 4, 2013

How to get the current userName in UCM Service Handler


It is very often that current user's username is required in UCM service. Username of the user executing the service can be retrieved using below code :


import java.util.Properties;
import intradoc.shared.UserData;
import intradoc.server.Service;

    private String getCurrentUsername(Service service) {
        UserData userData = service.getUserData();
        Properties properties = userData.getProperties();
        String userName = userData.getProperty("dName");
        return userName;
    }

Enjoy

Sunday, July 14, 2013

Review : Oracle ADF 11gR2 Development Beginner's Guide

Though we have couple of ADF books available in market, but this one Oracle ADF 11gR2 Development Beginner's Guide has is own importance. The book is a real starter for beginners having basic knowledge of Java. Author has explained ADF concepts in below steps :
1. a description of the issue,
2. performance of the execution ("time for action"),
3. an explanation of how the solution works ("what just happened?"),
4. Explore things ("Have a go hero") and
5. Finally a quiz as check for reader to understand whether he learnt concepts or just mugged them up.

Book covers the ADF concepts distributed in 11 chapters as follows:


Chapter 1, Installing and Configuring JDeveloper IDE, familiarization with JDeveloper which is the official IDE for Oracle ADF applications.

Chapter 2, Getting Started with ADF, explains key concepts of Oracle ADF : MVC, Entity Objects, View Objects and Applications Modules.

Chapter 3, Understanding the Model Layer, explains the entity and viewobjects in details.

Chapter 4, Validating and Using the Model Data, covers the validations governed through Model layer. Declaration validation and Groovy usage is explained with simple example.

Chapter 5, Binding the Data, explains the binding between model and view layers of an Oracle ADF application and key concepts involved.

Chapter 6, Displaying the Data. Concept of Page Template and other ADF Components are explained which are required for building Web Pages.

Chapter 7, Working with Navigation Flows, presents the concept of a Task flow and the different types of task flows that ADF offers. ADF Lifecycle is also covered in this chapter.

Chapter 8, Layout with Look and Feel, explains skinning for ADF Applications. Create and deploy skins is also covered with example.

Chapter 9, Implementing Security, is about roles, permissions, and other security concepts related to Oracle ADF security.

Chapter 10, Deploying the ADF Application, explains the deployment of ADF Application. It covers the deployment profile creation including structure of the deployment files and deployment descriptors.

Chapter 11, Advanced Features of ADF, this chapter is all about advance configurations including: tuning Entity Objects, tuning View Objects, debugging ADF applications, among others.


Over all it's a good starter for beginner and reference for intermediate level ADF learners.