Showing posts with label ADF and Jdeveloper. Show all posts
Showing posts with label ADF and Jdeveloper. Show all posts

Friday, November 30, 2012

Use of Input Range Slider

ADF has a long list of Rich look component. They are very easy to use and they give rich look to an application. One of these cool component is Range(selector).



This component is very use full to select two number values. It has some properties by which it is controlled. these are :



Minimum : Range start point.
Maximum : Range end point
Minimum Increment : The smallest possible increment or possible increment when user presses + or – button one time
Major Increment : Distance between two major ticks, major ticks has label.
Minor Increment : Distance between two minor ticks, minor ticks do not show label.


In image:
Minimum : 0
Maximum : 100
Minimum Increment :1
Major Increment : 10
Minor Increment : 5



The main property of this component is value. It contains two values maximum and minimum. Its contains value of form oracle.adf.view.rich.model.NumberRange object.
To get its value first bind this component to java bean class.
private RichInputRangeSlider range; 

Get its value
NumberRange sliderValue =getRange().getValue(); 
To get minimum and maximum selected value :
Integer minVal = sliderValue.getMinimum().intValue(); 
Integer maxVal = sliderValue.getMaximum().intValue(); 
Now use these value as you need. Play with another component of ADF 

Adios. 

Friday, November 2, 2012

Installation Of ADF Runtime Environment to Weblogic Server

In previous post I show the Installation process of Weblogic server. This post is in continuation. 
Now to run ADF application on weblogic server first we have to install ADF runtime in to Weblogic server. This will provide needed ADF library in weblogic server so that ADF application can be deployed in to the server. ADF run time is not installed in to weblogic server autometically, it is done manually.
To do this we need Jdeveloper installer. Run Jdeveloper Installer in welcome screen click next to start setup.



Go to next screen , this will show option to select existing middleware home or to create a new middleware home. Choose an existing home where weblogic server is installed. Here home for weblogic server is (C:\Oracle\Middleware). Then click next.


This screen shows Components this installer can install. Weblogic server component will come disabled as it is already installed in this middleware home, we just need ADF runtime, So we will select this option . No need to install jdeveloper. Click Next to proceed.




On JDK selection option, SUN SDK already selected as weblogic is installed with SUN SDK. So simply click next in this step.



Next step is for selection of installation directory. As this middleware home is created previously so skip this step and press next button.



Now screen is showing installation summary. Click next to proceed.



Now installation process is started .



At the end installation is complete message comes. Click on done button will exit the installation.


Weblogic server is now ready for ADF application Deployment. Next step is to Create a new domain in weblogic server for production mode.

Thursday, November 1, 2012

Installation Of Weblogic Server

Oracle have provided Weblogic Server to run ADF application created in Jdeveloper. when we install Jdeveloper Weblogic Server also get installed. This is our scenario for development. Now we need to install stand alone Weblogic Server to a machine for production purpose.

Here I will show the steps of installation of stand alone Weblogic Server.

Run setup for weblogic server.


A welcome window will come up to start installation of weblogic server. Click next button to start installation.


 Next screen will ask for a middleware home. If you want to use existing home then select one of the appeared home or simply create a new one.


Click next to go to next step. Select custom installation type. In typical it installs Oracle coherence and Oracle Enterprise pack for Eclipse. We do not need them, so choose custom installation


Go to next step by clicking next.  This screen shows components to install. Select Weblogic server and leave other option unchecked


Go to next step. There are two option for java installation first one is Sun SDK and other is Oracle JRockit . Choose Sun SDK and click next.


In next window it will show where weblogic server will be installing.


Now select no option for Node manager service. We will do this later manually.


Choose shortcut option for weblogic server. Click next.


Next window shows summery of installation.


Clicking next button will start process of installation.


After installation it shows complete message in window. Done will exit the process. 

This is the process of weblogic server installation.

Monday, August 1, 2011

ADF-BC Validations


This framework provides very good feature of validation. In ADF we can validate user inputs at different levels. Which are
  • Attribute level: Fires on value change.
  • Entity level: Fires on moving from one record to another.
  • Transaction level: Fires after attribute and entity level validations are complete. It validates Master-detail validations.
These validations are defined in Entity object and View object level. There are many rules of possible validations and ADF-BC provide lots of them. These validations rules are:
  • Compare: Attribute value compared with other attribute's value or an expression or a literal.
  • List: Value is validated against a list of values.
  • Key Exists: Its like a foreign key validator, it checks the value whether it exists or not. Like value for employee will check for the department to check whether it is present or not.
  • Regular Expressions: Value compared against provided regular expression. Like for email validation, Number Format validation.
  • Script Expression: Groovy expression are used to do validations.
  • Method Validator: When a method validator is created it adds a method in corresponding entityImpl calss. Like
public boolean validateEname(String ename) {  
return true;
}