Thursday 28 July 2016

How to import SSL certificate in Jdeveloper KeyStore

In order to consume Secured SOAP services (https) we need to import Certificates in Jdeveloper KeyStore.

1) Get the certificate from WSDL by opening it in any preferred browser .



2) Click on "Export" & save the certificate as .crt file.


3) Now move the saved certificate to the jdeveloper keystore(cacerts) using the command below.

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_verizon_cacert1 -file C:\Users\Vikas\Desktop\VeriSignClass3PublicPrimaryCertificationAuthority-G5.crt

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_symantec_cacert1 -file C:\Users\Vikas\Desktop\SymantecClass3SecureServerCA-G4.crt

keytool -keystore C:\Oracle\Middleware\jdk160_29\jre\lib\security\cacerts -importcert -alias erp_ehiw_test_root1 -file C:\Users\Vikas\Desktop\rootca.crt

4) Cacerts location is being referred in ADF client web proxy project as TrustStore.
 private final String trustStore = "C:\\Oracle\\Middleware\\jdk160_29\\jre\\lib\\security\\cacerts";

Monday 11 July 2016

Change the Date Format at global level for ADF Application

Specifying Global data & format for application .

To change the date format of your application, without necessarily affecting other locale settings like Language(localized text) ,or to established a standard global date format across different locales/countries, define the <formatting-locale> element of the trinidad-config.xml as illustrated below: 


<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
  <formatting-locale>en-GB</formatting-locale>
</trinidad-config>


<?xml version="1.0" encoding="windows-1252"?>
<trinidad-config xmlns="http://myfaces.apache.org/trinidad/config">
  <formatting-locale>#{userSession.formattingLocale}</formatting-locale>
</trinidad-config>

Refer the blog below ..



Saturday 9 July 2016

Frame Busting in web.xml (Run ADF application inside EBS)

In order to invoke ADF application from OAF  rich container frame inside EBS, set  "org.apache.myfaces.trinidad.security.FRAME_BUSTING" to "never".








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.