Send parameter to actionListener in ADF

January 4th, 2011 | Posted by Pompei Avram in Oracle ADF | 4 Comments

I recently needed to invoke an actionListener and in the mean time to send a parameter to the method invoked.
The problem is that the methods that can be invoked by actionListeners have only one parameter of type ActionEvent. So how can we send some parameter to that bean method who’s signature is something like “public [...]

(+) Read the rest of this entry

JDeveloper 11.1.1.3, JavaMail and SSLHandshakeException

October 1st, 2010 | Posted by Pompei Avram in Oracle ADF | 7 Comments

Some time ago I was trying to send mail from an ADF application and it took me a few good hours to get rid of the following error:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
So I hope this post will save other programmers time when facing the [...]

(+) Read the rest of this entry

Add dragging behaviour programatically in Oracle ADF

August 15th, 2010 | Posted by Pompei Avram in Oracle ADF | 2 Comments

As we saw in a previous post in order to simulate the COPY action for dragging components we need to create new ones at run-time.
Now if we want to make those new components draggable we have to add dragging behavior on those components programatically. We would need this feature if we further want [...]

(+) Read the rest of this entry

SelectOneChoice table filter execute automatically

August 6th, 2010 | Posted by Pompei Avram in Oracle ADF | 4 Comments

I created a table filter with a SelectOneChoice component and I was very disappointed to find out that I have to press the ENTER in order to actualy filter the table.
I was expecting to see the filtered results as soon as I selected the desired option or at least at leaving the SelectOneChoice component but [...]

(+) Read the rest of this entry

Select one choice default selection

July 30th, 2010 | Posted by Pompei Avram in Oracle ADF | No Comments

When you create an entity, like an employee, and one attribute of that entity is tied to a list of values you usualy use a SelectOneChoice component for that attribute. That way you are going to get for that attribute only the values you expose trough the SelectOneChioce component.
But there is a usability problem when [...]

(+) Read the rest of this entry

Add functionality on command components created at runtime

July 25th, 2010 | Posted by Pompei Avram in Oracle ADF | 2 Comments

Few days ago I have described how to create ADF rich components at runtime simulating a drag and drop COPY action which is not possible in the standard way with the “Component Drag Source” operation (this operation only allows the MOVE action).

(+) Read the rest of this entry

Overcome ADF restrictions on copying components with drag ‘n drop

July 18th, 2010 | Posted by Pompei Avram in Oracle ADF | 6 Comments

First of all if your bowser is Firefox and you are up to date with latest version you need to know that ADF drag and drop will not work unless you upgrade your JDeveloper to version 11.1.1.3. In version 3.6 of Firefox some API which was used by JDeveloper for drag and drop was removed [...]

(+) Read the rest of this entry