Posts

Showing posts from April, 2016

Best Practices

Best Practices & Notes:  =================== please watch every day update : ------------------------------------- ADF - TABLE : Primary Key While working with table, ADF always expects a predefined primary key for the table.  We can create a primary key using DB sequence or other alternative options. If you do not have a PK for a table, during scrolling or selecting a row within the table or creating an empty row and scrolling to next set of rows, we will get a weird result. Example for Sequence PK: (Groovy Expression) (new oracle.jbo.server.SequenceImpl("TEST_SEQ",adf.object.getDBTransaction())).getSequenceNumber() Just a note: ADF - TABLE : Custom Partial Trigger We can add table selection listener programmatically with declarative component using the following snippets  of code : _getTable().addSelectionListener(new SelectionListener(){             @Override ...

RowLimit configuration in ADF

RowLimit Configuration Parameter Example what is rowLimit configuration :      we have a table with certain number of rows.  if  anyone need to instruct the application user with rowLimit warning when the user cross the predefined rowLimit within the table, here is the way: <?xml version="1.0" encoding="UTF-8" ?> <adf-config xmlns="http://xmlns.oracle.com/adf/config"             xmlns:config="http://xmlns.oracle.com/bc4j/configuration"             xmlns:adf="http://xmlns.oracle.com/adf/config/properties"             xmlns:sec="http://xmlns.oracle.com/adf/security/config">   <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">     <defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true"               useBindValuesInFindByKey="true" mapNegativeScaleToIntegerTypes="...

showRowKey functionality

How to create showRowKey functionality in ADF (ADF table rowkey/RowKey) If you want to create a showRowKey functionality in ADF through managed bean, here is the way : showRowKey is a cool functionality which leverage the user to easily navigate to a particular row within the table. If the table consist of thousand of rows, user can easily navigate to row which he is interested on. As a first step, you  have to populate the table with rows using TreeModel. Then, use the below code to implement the showRowKey functionality.   public void displayRowKey(ActionEvent event)   {     UIComponent parentComponent = event.getComponent().getParent();     UIComponent table =  parentComponent.findComponent("<table_id>");     // clear out the displayRow first     _setCurrentDisplayRow(null, table);     EditableValueHolder edit = (EditableValueHolder)           ...

ADF Debug Parameters

ADF Debug Parameters: web.xml: <context-param>  <description>Set to true to disable compression of CSS class names for skinning keys and have more human readable class names</description> <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name> <param-value>true</param-value> </context-param> <context-param> <description>Set to true to disable obfuscation and compaction of ADF javascript that also removes comments and whitespace.</description> <param-name>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT</param-name> <param-value>true</param-value> </context-param> <context-param> <description>Set the level of client side javascipt logging. Default is OFF, other allowed values are SEVERE,WARNING,INFO,CONFIG, FINE,FINER,FINEST, and ALL</description> <param-name>oracle.adf.view.rich.LOGGER_LEVEL</param-name> <param-va...