Thursday, February 14, 2013

WebCenter PS5 : Make sure you have all lib loaded

If you running in to issue where you cant find the lib for particular webcenter services , Please check following in Jdeveloper.

Help -> About (Extensions)

image

When you create new application in jdeveloper you will notice three different application type.

image

Monday, November 12, 2012

Component Palette : Add Component to Favorite

We use many ADF Faces , HTML , JSF Component for User Interface ,So I would suggest adding most important component to favorite

 

Add to Favorite Final Outcome
image image

Thursday, November 8, 2012

Managed vs Backing Bean

Backing Bean is Type of Managed Bean which contains one to one mapping to JSF Component.

However , Managed Bean hold data and logic for application. Managed Bean is defined in faces-config.xml , adfc-config.xml , taskflow.

ADF BC : Showing Attribute Label using Groovy

While throwing exception from BC Validator you can throw exception from Message Bundle with some custom message. However ,If you want to include some attribute label from control hint in your message then you can use following expression.

source.hints.COLUMNNAME.label

image

Tuesday, November 6, 2012

Sunday, November 4, 2012

PageDefinition Parameter

Your page might be dependent on multiple id from external source which may be in different scope and It is good practice to create temporary variable in page definition file and assign it with value coming from different scope , So you can access that variable from page using only one standard #{bindings.VariableName} instead of pageflow , session or application scope access. This provided more consistency in user interface.

I created following two variable in parameters section of page definition and assigned it value with #{sessionScope.variablename} and #{pageFlowScope.variablename} , Now I don’t have to access this two different scope from my user interface , But I have to access only #{bindings.DeptId} and #{bindings.ExternalId} which provided a good standard to adopt while developing application.

image

SetCurrentRowWithKey and SetCurrentRowWithValue

ADF Table component handle the selection of row automatically ,However in some cases  you may need dynamic row setting mechanism there comes above operations provided by framework SetCurrentRowWithKey and SetCurrentRowWithValue.

Both operation require parameter ,But following explanation will differentiate between them.

SetCurrentRowWithKey

This operation require rowKey parameter and framework has already provided value in inbuild parameter i.e. #{row.rowKeyStr}.

SetCurrentRowWithValue

This operation on other hand require value which can be OrderId for Order table , EmployeeId for employee table and similar primary key for identifying the row.

Example :-  I designed simple table –> detail page each on separate page and I binded Link with Key and two buttons with Value. So when I clicked link it went to particular row pointing to rowKeyStr and when I clicked button seperately it went to each row which was specified in button setting as depicted in below diagram.

Page definition three bindings that is called

image

image

Each button was called from User Interface as below.

image