Sunday, October 12, 2014

How to implement Skins in ADF ?


This blog explains about how to apply skinning for any ADF application
- Create trinidad-skins.xml file 




-   Configure your .css file in above created trinidad-skin.xml as shown below

<?xml version="1.0" encoding="UTF-8" ?> 
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
 <skin>
  <id>mySkin.desktop</id>
  <family>mySkin</family>
  <render-kit-id>org.apache.myfaces.trinidad.desktop</render-kit-id>
  <extends>fusion.desktop</extends>
  <style-sheet-name>/css/fmStyle.css</style-sheet-name>
 </skin>
</skins> 

- Below is sample .css file



-  Refer the  CSS file entries in your page or page fragment as shown below .



For More info, Please refer below links

https://blogs.oracle.com/jdevotnharvest/entry/how_to_learn_adf_skinning


Wednesday, October 1, 2014

How to dynamically replace Hard coded values Programatically

This blog explains about how to eliminate hard coded URL's in any web application. Especially hard coding the environment specific WSDL URL's or any other string values.

- Create a properties file and define all the values as  key value pair. Key must contains host name.

For eg : dev340 is the host name
              dev340_EMPWSDL =dev340:9080/emp/EmployeeManage?WSDL





- Wherever you want to retrieve the values from the properties file dynamically where the application is running
// Below code gives the host name where the application is running.
String hostName = java.net.InetAddress.getLocalHost().getHostName();

For eg : If the application is running in DEV environment, hostName value will be obtained as 'dev340' ,


- You need to retrieve property value from .properties file by passing hostname, Follow below blog to how to read properties file

http://fortunefusionminds.blogspot.com/2014/02/how-to-read-properties-file-in-java.html

Monday, September 29, 2014

How to add application specific context root entries in OHS


This blog explains about how and where to add the entries in OHS in order to configure any Custom application specific context root related entries in order to access the applications which are deployed in Weblogic console


Locate the mod_wl_ohs.conf file in your OHS directory

Example : /Box/admin/box_hostname/config/OHS/ohs1
                /dkxx40/admin/dkxx40_fmohskend0xx/config/OHS/ohs1

open mod_wl_ohs.conf file and add the below entry into it



#fmPortal domain
<Location /fmportal>
 SetHandler weblogic-handler
 WebLogicHost fmohskend031.oracleoutsourcing.com
 WeblogicPort 44716
</Location>

fmPortal - Context root of an application
WebLogicHost : host name
WeblogicPort : Port Name

Stop and Start OHS server in order to take effective these changes.

Tuesday, September 16, 2014

How to Add Roles/ Map App Roles to UCM/LDAP Roles, Add Member, Delete Member in Webcenter Portal Administrator


This blog explains about

 - Add Application Role
 - Edit Application Role
 - Map Application Role to LDAP/UCM Role
 - How to Add Users to App Role
  - How to add Members to App Role
  - How to Delete Members from App Role
  - Delete App Role

            Using Webcenter Portal Administrator Console

- Login to Webcenter Admin Portal console
- Click on 'Security' Tab
 - Follow below screenshot...

How to see logged in User Roles in UCM


This blog explains about viewing the logged in user UCM Roles,

Login to CS and click on 'Load' or 'Logged in User ID' link on the top right hand corner of the page as shown below.
You will see all the logged in user UCM roles.