Monday, September 30, 2013

Cascaded List using ExecuteWithParams in ADF

Cascaded or dropdown list is one of them most common part of use case which is required to implement.
In this post we will create a cascaded dropdown using executewithparams.

I will enhance the application we created in last post  Retrieve selected value from selectOneChoice without writing a single line of code.

Requirement :- Having two drop down list. Region and Country. On selecting region, country dropdown list should refresh to have countries of the selected region in the first list.

The App can be downloaded from Here

Sunday, September 29, 2013

Retrieve selected value from selectOneChoice without writing a single line of code

While using selectOneChoice in the page to implement drop downs, it becomes very cumbersome to get the selected value from the list. One often has to write some lines of code in the managed bean to get the selected value from the drop down.


So in this post we will see how to get the selected value from the drop down list (af:seclectOneChoice) without writing a single line of code and without using any bean.

This uses the use of Variable Iterator which we discussed in the previous post.Variable Iterator in ADF to store values between requests


Friday, September 27, 2013

Variable Iterator in ADF to store values between requests

Variable Iterator is a powerful features provided by ADF which is being often not taken into consideration during implementation of Use Cases.

By Using Variable Iterator , variables can be saved between the requests and they can be refereed just by bindings name inside you beans. So using variables to store values between request is the way where variables can be accessed inside managed beans both having loose coupling between each other. You do not need to define a property(variable) inside a bean and bind it to the UI component.

So lets get started and see how we can use the power of Variable Iterator in ADF. We will be starting from the scratch and going step by step for clear understanding.

The application can be downloaded Here

Tuesday, September 24, 2013

Refreshing parent table on Closing Pop Up using returnListener : ADF

In this post we will see how to refresh parent table on adding a new row using a pop up.

So while creating a new row in the table component using pop up, after adding mandatory fields and pressing OK, the parent table is not refreshed to have the new row. Instead it shows a blank row. If you refresh the page then it shows the newly added row. We will fix this later in this post. Lets first dive in and create a basic sample app that will be used for this use case from scratch.

The application can be downloaded from here TableRefreshOnPopUp.zip

selectManyShuttle with prepolulated list : ADF

This post talks about how to use af:selectManyShuttle component. Not only how to use it, but to display already selected set of values as pre populated list out of complete list.


So shuttle component has two tags which are of importance. 

<af:selectManyShuttle value = "selected values" has value attribute which refers to selected values and inside this tag there is <f:selectItems  value="all values". This selectItems tag refers to complete set of list.