Filter results in adf table

Another day someone in the OTN forum asked how to clean the resutls in a af:table.
We can do it with code, working withe the ViewCriterias of the ViewObject, but also we can add a hide funcionality in the af:table.

If we add a new column with the property rowHeader a true, our table will have a new column with a button to clean the filter in the tables
Like the below image


Remove classes in JDeveloper 12c

Sometimes using  the last version Jdeveloper 12c.(12.1.3) I have had some problems when I debug and I test new changes in the code.

The application doesn’t get the changes despite I remove the classes.

In these cases you should check if you have a folder called classes in the web-inf folder.In this case, remove the classes folder and run it again.

Custom inputListOfValues

The inputListOfValues component  has a facet called searchcontent.
This facet is for customize the Search and Select popup dialog.

With this facet you can built your own popup LOV with af:query, trees,etc..

But always is interesting to think if we need a custom lov , because on this way we can lose productivity

Combination between JDeveloper and JSF versions

ADF Faces is built under JSF.
Is important to know the JSF version that runs in our application for make the best use of JSF and so, we can use the improvements or new components

Below, I write a list with the combination between JDeveloper and JSF versions

  • JDeveloper  –> JSF 1.2
  • JDeveloper  –> JSF 1.2
  • JDeveloper  –> JSF 2.0
  • JDeveloper  –> JSF 2.1

Note: In this another post by Timo you can see the combination between JDeveloper, ADF and WebLogic

Save your external tools in JDeveloper

If you have a custom external tools in your JDeveloper maybe the configuration of this tools are complex.

If you want save to migrate this tools in other computers or in another JDeveloper instance you can find the configuracion about your tools in

  • C:\Users\youName\AppData\Roaming\JDeveloper\systemxxxxxx\o.jdeveloper

Find a  <list n=”external-tools”> and here you can find your tools entry.

Dynamic dataSource in af:query

If you need a search region that depends about something the user must point to differents database schemas, there are several options.Here I explain two

You can do a envInfoProvider implementation

And if you need a more simple solution, you can define, in design time, the two DataControl and redirect one of them in your bean code

 <iterator Binds=”YourView” RangeSize=”25″ DataControl=”#{yourBean.dataControl}” id=”YourViewIterator”/>

JDeveloper is out.

A month ago that JDeveloper is out.

And came with a many bugs fixed and  many ADF new features.

I highlight some:

1. Many ADF DVT Components
2. New ADF deck component for carousel transactions
3. Client side CSS rules as @fontface
4. groovy support in debug mode and groovy in the UIhints
5. Support ADF DI in Windows 8 and new components and properties in this product

12c already has a year of life and every time is a more stable version and is a good choice for our projects. And comes with the last version of SOA, ADF and Mobile Application Framework

More info:1213nf-2222743.html

Custom UIShell: Close Tabs to the Right

Add a similar functionality to Firefox or other common browsers “Close Tabs to the Right” through right click in your uishell pattern or alternative uishell. I use this last

<af:commandMenuItem id="cm43" text="Close Tabs to the Right"
  <af:setPropertyListener from="#{source.attributes.menuInvokedOnTab}"
public void closeAllRight(ActionEvent action) {
   List<String> tabsToRemove = new ArrayList();
   for(int poss=getActiveTabList().indexOf(getTab( getMenuInvokedOnTab()))+1 ; poss <getActiveTabList().size() ; poss++) {
   for (String t : tabsToRemove) {

FootNotes: This post is based on adf-11g-adding-close-this-close-others.html