Saturday, April 6, 2013

ADF 11.1.1.7 New Feature: HTML5 Placeholder


Many of us have waited for it some time now. With the arrival of ADF 11.1.1.7 the Input components have got a new attribute: placeholder.

Use Case
Provide a prompt text inside an input component.

Usage

In order to use this feature just fill in the newly added attribute from the property inspector or directly in the source code.


On runtime it is properly rendered as placeholder-HTML5 Attribute.

Works on all modern browsers ;)

Wednesday, February 20, 2013

JDeveloper Code-Template for ADFLogger


 Environment: JDeveloper 11.1.1.6

To make the Logger-Declaration a not so tedious work you can make use of JDeveloper Code Template features which is available in the preferences.
In JDeveloper:

1. Open from the menu: Tools > Preferences
2. Open: Code Editor > Code Templates
3. Click "+" to add a new code template


4. Goto the Code-Tab and add the following:

private static final ADFLogger LOGGER = ADFLogger.createADFLogger($clazz$.class);

5. Goto Imports-Tab and add needed classes:

oracle.adf.share.logging.ADFLogger

6. Confirm Changes by clicking 'OK'.

=>> The Code-Template 'logger' is now available inside the Java-Editor.


Using the Code-Template in JDevelopers Editor

1. Open a Java class
2. Place cursor right inside class definition, type 'logger' and press 'Ctrl+Enter'.


Afterwards the ADFLogger is available inside the Java class.


On the following Blog posts you can find more information around ADFLogger + a CodeTemplates XML which you can import in your JDeveloper.

More information