Daily Archives: May 4, 2010

Scroll to specific row in a table on pageload

Following code will help you to scroll to a specific row in a af:table on page load.

//Code to scroll to a specific row
RowKeySet ps = this.tableBinding.getSelectedRowKeys();

Also set the displayRow=selected for the table

How normal jar library is different from ADF Library?

Whenever you create a deployment profile for the model project in ADF you will select the ADF Library type rather an ordinary library type (java jar type)

Both act as a library archive supporting jar and zip files

What is the difference then?

  • ADF library differ in a way that it behaves. It has the uniqueness of automatically pulling in the dependent jar files that is referred by any of the files and written in to the manifest files. The dependent libraries that are needed at runtime is pulled n by Jdeveloper as secondary imports.
  • The library exposes the meta data files likes task flows allowing the user to drag and drop in their files as dependent files which normal jar will not expose and support. The dropped taskflow will be added as a region in the page.

Fix ClassNotFoundException – oracle.ecsf.util.contextFactory

If you face issues like

java.lang.ClassNotFoundException: oracle.ecsf.util.contextFactory

then the solution is to add ECSF(Enterprise Core Solutions Framework) library to the project. There are two libraries that will make an impact

  • ECSF Client
  • ECSF Runtime

AutoHeightRows along with detailStamp

When a table has AutoHeightRows set to a value greater than 0 (eg 10),

clicking on the expand icon (+) in the row header does not display the

detailStamp area of the table

We have to set the AutoHeightRows to a value greater than 0 because if we

leave it as -1, a blank white area is displayed in the table

Do you know the fix for this?

simple fix was to add this attribute to the table:



FixAutoHeightRows is the bean bounded to the page

pprTable is the table binding or the binding for the component that is surrounding the table