Friday, April 19, 2013

ADF Popup - have to click button twice to close popup

Usecase:
User has adf popup with table. User launches popup and select a row from table and click "OK" button. But popup doesn't get closed. Popup is closed only on second click

An immediate="true" in the adf table definition could be the culprit. 

Sample table definition snippet
                         id="myid" var="myvar"
                        rowSelection="single"
                        immediate="true"                                             
                        contentDelivery="immediate">
                       
                                                .....
                       


Removing  immediate="true" will fix this issue.

Thursday, January 28, 2010

ADF table - How to partial refresh on a specific column

Usecase:

adf table where a column has text field and a link to open a popup. Value for the text field is picked from popup. On return from popup, selected value need to be refreshed in text field. And each row has a check box to allow row selection.

Problem:
On return from popup, a partial refresh is preformed on the table, so that selected value is displayed in the text field. But this partial refresh will reset the selected check boxes.


Solution:
Instead of partial refresh to the whole table, do partial refresh on the specific column.

For example If the table name is "itemsTable" and column name is "catgName"
Do a partial refresh on "itemsTable:catgName"

Since the column is repeated for each row, ADF adds postfix like :1, :2 to make it unique. In this case the actual id of the text field will be catgName:1, catgName:2 etc. But we are giving partial refresh on "catgName" only. ADF is smart enough to figure out which column should be refreshed.

Tuesday, August 11, 2009

ADF Popup sample

I have published an ADF Popup sample at adfsamples.googlecode.com

Tuesday, January 6, 2009

How to stretch a particular column in table

Usually columnStretching="last" is used to fill the available space. But some times another column need more space to show data. ADF allows stretching a particular column by specifying the column name. I.e. columnStretching="column:address", where address is the column which need to be stretched.

adf recommends to use fixed column width, as resizing content at client side is expensive.