Tuesday 28 June 2016

Web.xml + css content compression.

Add below lines in web.xml to see uncompressed css names

 <context-param>
        <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
        <param-value>true</param-value>
    </context-param>

Wednesday 22 June 2016

Conditionally Required Fields in Oracle ADF For Dependent Dropdown values.


Even skipValidation= true on bindings page will not work in case of dependent dropdown values.

Follow the below blog  from Andrejus.



To refer skipValidation="true" and its working 


Cheers
Abhishek

Thursday 16 June 2016

Implement MultiSelect Deletion using check box in ADF.

Implement MultiSelect Deletion using check box in ADF

There are two approaches defined in various blogs.

Creating a transient attribute(Common in all blogs),   will discuss about code execution on button click.

Code 1
    public String deleteCheckedRows() {
    DCBindingContainer bindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iter =
      (DCIteratorBinding)bindings.findIteratorBinding("EmployeesView1Iterator");
    System.out.println("iter.getViewObject().getEstimatedRowCount()::" +
                       iter.getViewObject().getEstimatedRowCount());
    for (int i = 0; i < iter.getViewObject().getEstimatedRowCount(); i++) {
      Row row = iter.getRowAtRangeIndex(i);
      if (true == row.getAttribute("SelectedRow"))
        row.remove();
    }
    return null;
  }

Code 2

    public void deleteMultiple(ActionEvent actionEvent) {
            DCBindingContainer bindings = getBindings();
            DCIteratorBinding iteratorBinding = bindings.findIteratorBinding("EmployeesEOView1Iterator");
            Row[] r = iteratorBinding.getViewObject().getFilteredRows("TestBool", true);
            for (int i = 0; i < r.length; i++) {
                r[i].remove();
            }
        }

1)With code 1 you are most likely to getNull pointer Exception or set rangeSize = -1 for code 1 to work.
2) Code 1 is not deleting all selected rows .

I am using Jdev 11.1.17.0 because of some client requirements.

http://www.baigzeeshan.com/2010/06/deleting-multi-selected-rows-from-

adf.htmlhttp://adfsonal.blogspot.in/2013/07/adf-deleting-multi-selected-rows-

http://adfsonal.blogspot.in/2013/07/adf-deleting-multi-selected-rows-from.html

Wednesday 15 June 2016

Skinning Adf table 11.1.1.7.0 which doesn't support Alta skin.

Skinning Adf table 11.1.1.7.0  which doesn't support Alta skin.

Jdev 11.1.17.0 doesn't support Alta skin, to skin ADF table , follow the below blog in such case.

Please select selective code as it will change the color coding for all tables in the application.

Skinning Adf Table 

Unable to obtain credential store using jps-config


Below error in your Jdeveloper while connecting to Database, follow below solution to resolve.

Unable to obtain credential store using jps-config

Solution : Take backup of 'cwallet.sso' and delete this file from /Application/src/META-INF/ and the n redeploy the application. I resolved while deploying in Integrated weblogic server.