Pages

Saturday, June 14, 2014

Select Boolean Check Box in ADF

Here I got a requirement like on select boolean check box, while selecting a row corresponding row check box should be selected.


Step 1: As per requirement, I added a Transient Attribute as Boolean and also i make it is as passivated.



Step 2: Then I drag and drop as Table. By default it will input text box. select the Check Box field then use right click select 'Convert To..' option. Another panel box will opens in that choose "Select Boolean Check box". Click OK button. Finally it looks like following image



Step 3: Two things need to do.

First one remove the existing Selection Listener.Then use edit option it will direct you to create a bean and register then bean in adfc-config.xml(automatically).

Second one bind your af:table in bean.



Step 4: With help of ADF Utilities make our work easy. Our af:table work functionality based on 'Collection Model' Class. 'makeCurrent' will identify the user row selection.




Grab the Current Row, based on selection set value as true. 
Make PPR on af:table.

Step 5: Finally requirement accomplished.




Download Here

No comments:

Post a Comment