ADF Table refresh odd behaviour: is it a bug?

Hi,
I am using JDev 11.1.2.3.0.
I found a strange behaviour of ADF table, that looks like a bug.
I am using the following scenario:
1). I have a page with a table on it. The table displays the VO content and all it's columns are filterable.
2). There is another more complex filter with one parameter. The filter is always applied in addition to all existing filters and is implemented in VO implementation class by overriding the  buildWhereClause() method. The parameter value is stored in the VO as a property, and the property setter is exposed via client interface.
3). The filter parameter value is specified using Select One Choice component, the value is stored in the pageFlowScope variable (AutoSubmit=true).
4). The filter parameter setter is binded in the PageDef file as a method action and obtains the value from the corresponding pageFlowScope variable. When user press a button, the filter should be applied. The button has PartialSubmit=true, the table has a reference to the button in the PartialTriggers.
Here is some code:
// MyViewObjectImpl code fragment
private String filter;
public String getFilter() {
  return filter;
public void setFilter(String filter) {
  boolean valueChanged = true;
  if (this.filter != null && filter != null) {
    valueChanged = !this.filter.equals(filter);
  this.filter = filter;
  if (valueChanged) {
    clearCache();
// Backing bean code fragment
private RichTable table;
public void setTable(RichTable table) {
  this.table = table;
public RichTable getTable() {
  return table;
public String onApplyFilter() {
  BindingContainer bc = BindingContext.getCurrent().getCurrentBindingsEntry();
  OperationBinding op = bc.getOperationBinding("setFilter");
  op.execute();
  FilterableQueryDescriptor fm = (FilterableQueryDescriptor)table.getFilterModel();
  table.queueEvent(new QueryEvent(table, fm));
  return null;
All works fine except for one thing: the 26-th row of the table always remains from the previous filter value. More precisely, this number equals to iterator RangeSize+1.
Is this my fault or a bug?
Thanks.

Sorry, I forgot about the detailed instructions.
1). Setup database connection to match the real DB server address, username and password.
2). Run the ViewController project.
3). Choose character 'a' in the filter and push "Apply". This will give the countries, ending with the letter a.
4). Change filter to 'e' and push "Apply". This should give the countries, ending with the letter e, but in fact the second row is 'Argentina' (the first row from the previous query). Pressing the button again produces correct results.
Thanks.

Similar Messages

  • ADF table refresh on update of database field in the background

    Hi,
    I have an ADF Read Only table based on Toplink mapping for a database table. In my scenario, one of the columns (Name) gets updated in the background (through DB adapter from ESB.
    The problem is the ADF table does not refresh to reflect the updated name, on navigating to other pages and coming back (basically page reload).
    The updated name does not reflect until I logout of the session.
    I have used the explicit refresh option for the "findALL" method used by the ADF table. I have also tried setting "NoIdentityMap" option in Toplink Identity Map.
    Please let me know how can I get the table refreshed. I'm using JDev 10.1.3.1 with Toplink.
    Rgds
    Vikas

    I have same problem, and I tried af:poll . It only works when I insert a new record or delete a new record. It doesn't work when I update records.
    I followed this example from Frank Nimphius
    http://thepeninsulasedge.com/frank_nimphius/2007/09/18/adf-faces-using-afpoll-to-refresh-a-table/
    Plus the selection action is not work at all. (My case is multiple selection).
    I just want to know is it possible using af:poll conponment to autorefresh ADF table when I update a record ?
    JDeveloper 10.1.3.3
    Message was edited by:
    xpp

  • ADF table refresh

    Hi All,
    <<Jdeveloper Studio Edition Version 11.1.2.3.0>>
    I have a ADF table with EditingMode as "click to edit", so user can edit only one row at a time.
    My requirement is as below
    1. Table should be refreshed every 5 mins
    2. If the user is in the middle of editing a particular row and the table is refreshed, the values entered by the user should not be reset.
    Is there any way of doing this.
    Thanks in advance
    Best Regards,
    bnkr

    DCIteratorBinding iter = bindings.findIteratorBinding("Iterator");
    RowSetIterator rs = iter.getRowSetIterator();
    while (rs.hasNext()){
                   Row r = rs.next();
                   r.refresh(r.REFRESH_WITH_DB_ONLY_IF_UNCHANGED);
    You need to reset your RowSetIterator because this while loop will execute only for first af:pool event.
    Also, it's not good idea to iterate through default RowSetIterator because UI components are bound to this iterator(you can iterate, but then you need to add logic to restore current row...)
    Instead, try something like this:
    RowSetIterator rs = iter.getViewObject().createRowSetIterator(null);
    while (rs.hasNext()){
        Row r = rs.next();
        r.refresh(r.REFRESH_WITH_DB_ONLY_IF_UNCHANGED);
    rs.closeRowSetIterator();
    Dario

  • ADF Table Refreshing?

    Hi,
    I have a problem with my ADF table which needs to be resolved ASAP. Somebody please help me here..Here are the details..
    I have an ADF table based on a VO.
    I Have a parameter to this view object and i am defaulting a value to this parameter
    I created a parameter form by draggign and dropping the "ExecutewithParams" operation.
    Now, when the page was loaded, the data looks good. When i change the parameter value and click on the executewithParams button, i see rows being repititive.
    When i run teh same query with these 2 parameter value in sql or Toad, i see correct results. Do i have to refresh the table or anything?
    Thanks,
    Lakshmi.

    As always, you should give us your jdev version...
    Have you tried this with -Djbo.debugoutput=console set as start parameter? This will show you the query generated when you query the VO.
    Timo

  • ADF Table Refresh/Commit on Delete

    ADF 11g in jDeveloper 11.1.1.1.0
    So, I have an ADF Table component in a panel collection. Within the collection, I added a menu with menu item to delete the current row. The delete row is not being committed. Is there a way to do a row delete in one operation?
    Note:
    I just drug the delete operation form the data control onto the menu item.
    Action Listener: #{bindings.Delete.execute}
    Partial Submit: true
    Edited by: SK Jennings on Aug 13, 2009 10:14 AM
    Added more info
    Edited by: SK Jennings on Aug 13, 2009 10:17 AM

    You can easily solve it if you just bind the table to a property in the bean as it is in the link poste by Frank.
    I usually do it this way. I have not used findComponent().
    My table ID is "table1".Here are a few tests I tried:
        private RichTable rt;
        FacesContext fc = FacesContext.getCurrentInstance();
        System.out.println(rt.getClientId(fc));     // returns something like this : pt1:dynam1:1:drvpc1:table1
        fc.getViewRoot().findComponent("table1");  // returns null
        fc.getViewRoot().findComponent(rt.getClientId(fc));   // returns null, I expected that one to work
        AdfFacesContext.getCurrentInstance().addPartialTarget(rt); // This one works.I hope that helps,
    Valery
    Edited by: Valhery on 2009-9-18 4:16

  • Issue in ADF Table Refresh

    Hi All,
    I have a requirement where I need to change the timezone and display the dates in a Table. There is a dropdown above table and as the user changes the
    timezone value ,the dates changes accordingly in the Table.
    The following steps are followed to achieve this:
    1) The following attributes are present in the DB object on which the EO(TaskTableEO) is based :
    - TASK_ID
    - TASK_NAME
    - TASK_NUMBER
    - TASK_OWNER
    - END_DATE
    - START_DATE
    - SUMMARY
    2) VO Query :
    SELECT TaskTableEO.TASK_ID,
    TaskTableEO.TASK_NAME,
    TaskTableEO.TASK_NUMBER,
    TaskTableEO.TASK_OWNER,
    test_util.convert_timezone(TaskTableEO.END_DATE,:timezone1) END_DATE,
    csf_util_pvt.convert_task_table_timezone(TaskTableEO.START_DATE,:timezone2) START_DATE,
         TaskTableEO.SUMMARY
    FROM TASK_TABLE TaskTableEO
    Note that the timezones are converted in the VO based on the bind parameter passed to the function test_util.convert_timezone. The function returns the date converted to
    the timezone specified.
    When the value is changed in the dropdown , the value change listener is called. The timezone selected is picked, the bind variables is set , executeQuery()
    is called on the VO , and the table is refreshed . But the date does not show the change in Timezone , but instead it take the default from database.
    Can you please suggest if am missing something. Also let us know if we can achieve this using some alternate method.
         Sample Code in Managed Bean:
    BindingContext bindingctx = BindingContext.getCurrent();
    oracle.binding.BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("TaskVO1Iterator");
    ViewObject vo =dciter.getViewObject();
    vo.setNamedWhereClauseParam("timezone1",tzId);
    vo.setNamedWhereClauseParam("timezone2",tzId);
         vo.executeQuery();
         RichPanelCollection rpc = (RichPanelCollection)ADFUtil.findComponentInRoot("taskPc");
    System.out.println("RichPanelCollection : " + rpc);
    AdfFacesContext adfCtx = AdfFacesContext.getCurrentInstance();
    adfCtx.addPartialTarget(rpc);

    Why not using declaratively dropdown to partialTrigger in table?
    However, instead of panelcollection, try refreshing table instance in code.

  • Refresh adf table and selection row

    Hi,
    I create web application. I have created entity Users from MySQL database and managed Bean. In this managed Bean (sessionScope) is method for connection to database and method for adding new row (data) in database. It works.
    I have 2 problems.
    The first.
    I have form for adding User and commandButton Add.
    How I can refresh (update) adf table after executing SQL command (in commandButton Add) ? Now I must reconnect session.
    The second problem:
    I want to show a panel with data from one row from adf table.
    How I can selection this row in popup ?
    My table:
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  selectionListener="#{userController.selectedUser}"> ---- Here I have problem.
                                            <af:column sortProperty="#{user.user_id}"
                                                       sortable="false"
                                                       headerText="ID"                            
                                                       id="c11" width="33">
                                                <af:commandLink id="ot34" text="#{user.user_id}">
                                                    <af:showPopupBehavior popupId="p4" triggerType="action"/>
                                                </af:commandLink>
                                            </af:column>
                                            <af:column sortProperty="#{user.firstname}"
                                                       sortable="false"
                                                       headerText="Firstname"
                                                       id="c20" width="111">
                                                <af:outputText value="#{user.firstname}" id="ot27"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.lastname}"
                                                       sortable="false"
                                                       headerText="Lastname"
                                                       id="c12">
                                                <af:outputText value="#{user.lastname}" id="ot31"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.address}"
                                                       sortable="false"
                                                       headerText="Address"
                                                       id="c9" width="95">
                                                <af:outputText value="#{user.address}" id="ot32"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.city}"
                                                       sortable="false"
                                                       headerText="#City"
                                                       id="c10" width="76">
                                                <af:outputText value="#{user.city}" id="ot33"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.username}"
                                                       sortable="false"
                                                       headerText="Username"
                                                       id="c7" width="102">
                                                <af:outputText value="#{user.username}" id="ot29"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.email}"
                                                       sortable="false"
                                                       headerText="E-mail"
                                                       id="c21" width="106">
                                                <af:outputText value="#{user.email}" id="ot28"/>
                                            </af:column>
                                            <af:column sortProperty="#{user.regdate}"
                                                       sortable="false"
                                                       headerText="Registration"
                                                       id="c8" width="108">
                                                <af:outputText value="#{user.regdate}" id="ot30">
                                                    <af:convertDateTime pattern="#{user.regdate}"/>
                                                </af:outputText>
                                            </af:column>
                                        </af:table>userController is name managed Bean.
    users is list of users.
    My panel window (popup):
    <af:popup childCreation="deferred" autoCancel="disabled" id="p4">
                                        <af:panelWindow id="pw9" title="Delete user">
                                            <af:panelFormLayout id="pfl6">
                                                <af:panelLabelAndMessage label="ID:"
                                                                         id="plam16">
                                                    <af:outputText value="#{userController.selectedUser.user_id}" id="ot50"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Firstname:"
                                                                         id="plam17">
                                                    <af:outputText value="#{userController.selectedUser.firstname}" id="ot51"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Lastname:"
                                                                         id="plam18">
                                                    <af:outputText value="#{userController.selectedUser.lastname}" id="ot52"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Address:"
                                                                         id="plam19">
                                                    <af:outputText value="#{userController.selectedUser.address}" id="ot53"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="City:" id="plam20">
                                                    <af:outputText value="#{userController.selectedUser.city}" id="ot54"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Username:"
                                                                         id="plam21">
                                                    <af:outputText value="#{userController.selectedUser.username}" id="ot55"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="E-mail:" id="plam22">
                                                    <af:outputText value="#{userController.selectedUser.email}" id="ot56"/>
                                                </af:panelLabelAndMessage>
                                                <af:panelLabelAndMessage label="Registration:"
                                                                         id="plam23">
                                                    <af:outputText value="#{userController.selectedUser.regdate}" id="ot57">
                                                        <af:convertDateTime pattern="#{userController.selectedUser.regdate}"/>
                                                    </af:outputText>
                                                </af:panelLabelAndMessage>
                                            </af:panelFormLayout>
                                            <af:commandButton text="Delete" id="cb18"
                                                              inlineStyle="width:80pt; margin:10px 0px 0px 0px;"/>
                                        </af:panelWindow>
                                    </af:popup>When I cut out row: selectionListener="#{userController.selectedUser}
    Popup (for deleting user) looks like this:
    http://imageshack.us/photo/my-images/404/popupc.jpg/
    I need to get the outputs from <af:outputText> in this popup.
    Thanks for help.
    Edited by: user9202624 on 26.2.2013 7:52

    thanks for answer.
    I added partialTriggers in af:table
    <af:table var="user" rowBandingInterval="0" id="t2"
                                                  inlineStyle="margin:20px 30px; width:578pt; height:160pt;"
                                                  value="#{userController.users}"
                                                  rows="15"
                                                  emptyText="#{bindings.UsersprototypView11.viewable ? 'No data to display.' : 'Access Denied.'}"
                                                  fetchSize="#{bindings.UsersprototypView11.rangeSize}"
                                                  editingMode="clickToEdit" rowSelection="single"
                                                  selectedRowKeys="#{userController.selectedUser}"
                                                  partialTriggers="::t1" >What next ? What should I do next ? Sry, I'm newbie in adf and jDev.
    Edited by: user9202624 on 26.2.2013 8:55

  • Refreshing only the single row of  ADF Table

    Hi All,
    I have a webcenter application where the ADF Applications has been deployed.Now the Data is coming onto the ADF Tables from a webservice.In that particular table i need to refresh only the single row(whichever selected by the user to edit ) or even a particular field with the updated values as well as need to validate and to create a message box saying about the errors if the validation goes wrong.
    Please suggest!!

    Hi,
    if "updated value" mean that the value got changed on the middle tier (not the browser client) then the update requires the table to be partially refreshed. If the user edits a row and in this row has dependent fields, then this can be achieved by partially refreshing the column. Note that ADF Faces tables don't refresh just one cell
    Frank

  • Scrollbar refresh issue in ADF Table

    Hello, All
    We have an issue regarding the ADF Tables. Please let me know if it is a Oracle bug. All of us know that 'ExecuteQuery' operation refreshes the cache in View Objects.
    But, based on our testing results, there might be a table refresh issue on vertical scrollbars after this opertion is executed.
    Settings:
    In the attached example project, we have a ADF RichTable included in a PanelCollection.
    In addition, We set 'AutoHeightRows' property on this ADF RichTable in order to show scrollbars on the PanelCollection.
    Furthremore, a standard CommandButton is created on the toolbar to execute queries.
    Experimental Steps:
    1. Use your mouse to move the vertical scrollbar to around the center of its range. This behavior causes the scrollbar scrolling vertically.
    2. Click on any row showing in the table right now, make it to be the active row.
    3. Press the 'ExecuteQuery' button, waiting for the table refresh.
    Results:
    1. Active row moves to the first row in the rowset.
    2. Vertical scrollbar stay in the center of its range without moving to the first row.
    3. The first row is hidden from end users. The user can not see the active row in this case.
    FYI:
    The attached project can be accessed from the following link:
    http://www.4shared.com/zip/Xn4Ki0DP/Application3.html
    In this project, we tried to set 'partialTriggers' on RichTable and its surrounding PanelCollection separately. But, the refreshing issue still exists.
    Regards,
    David He

    Welcome David to forums.
    Always mention your exact Jdev version. For more information read this: https://forums.oracle.com/forums/ann.jspa?annID=56
    I too faced the similar kind of issue in one of my application.
    As you have not mentioned the exact jdev version, I will tell you what I did in my application which was developed using Jdev 11.1.2.0
    After the VO is executed, you can write the below line of code to show the first rows in the table.
    applicationsRichTable.setDisplayRow(applicationsRichTable.DISPLAY_ROW_FIRST);
    //applicationRichTable is the binding for the RichTable in managed beanHope it helps.

  • Focus on next navigatble item in ADF Table after refresh

    Hi,
    How to set the focus in the ADF table to next navigable item after Table Refresh.
    I have valueChangeListner set to one of the columns in the table. Once the Value is changed in the Column we perform calculations based on the value and update the RowIterator.
    To get the updated values I refresh the Table. It shows the updated values correctly.
    After refresh the contorl/focus moves to the Table header.
    Instead We would like to have the focus on the next navigable Item in the Table.
    Or is there a way to change the values in the Table without refreshing by Partial trigger on the Table.
    Thanks,
    Satya

    Hi Arun,
    I did that but it doesn't seems to be working as it need to refresh its own column.
    eg:
    Row COL1 COL2
    R1: Rxxxx Val1
    R2: Lxxxx Val2
    R3: Exxxx Val3
    R4: Fxxxx Val4
    When I modify Val1 Val4 need to be calculated using val1-val3/val2
    I'm doing this in ValueChangeListener. and setting attribute values by finding the correct row using RowsetIterator.
    When I refresh the Table Iterator in Row R4 Val4 is showing the correct values.
    But If I refresh the COL2 it doesn't change the value in row R4
    I have tried by setting IterartorBinding Refresh to always / ifneeded. Tried both declarative and Dynamically. There is no effect.
    Thanks,
    Satya

  • Refreshing an ADF Table After update

    I have an ADF Table which has multiple records. I want the table should refresh after I change some field and press commit.

    Hi,
    Assuming you are using ADF Faces your can double click on the command button and add a backing bean method, in which you call the commit and then also execute (for execute query).
    Let Jdev generate the backing bean code for you and then add the execute binding manually in the page definition and then add it after the commit code in the backing bean.
    Brenden

  • ADF table data not refresh

    hi,
    i am create a adf table using data control. value of adf table depend on view object. where i bind a variable in where clause.
    now i am giving the value of whereClauseParam using using view object instance in backing bean method.
    when i pressed command button method run properly but adf table not refresh and not showing data.
    thanks in Advance

    public void callData(ActionEvent ae) {
    String amDef = "com.jagran.in.model.view.updatable.AppModule";
    String config = "AppModuleLocal";
    ApplicationModuleHandle handle = null;
    ApplicationModule am;
    try {
    handle = Configuration.createRootApplicationModuleHandle
    (amDef, config);
    //am = Configuration.createRootApplicationModule(amDef,config);
    // ApplicationModule sam = handle.useApplicationModule();
    am=handle.useApplicationModule();
    am.processChangeNotifications();
    ViewObject svo = am.findViewObject("BindView1");
    svo.setNamedWhereClauseParam("id","JK0554");
    svo.executeQuery();
    ((ViewObjectImpl)svo).refreshCollection(null, false, false);
    am.processChangeNotifications();
    svo.reset();
    while (svo.hasNext()) {
    Row r = svo.next();
    System.out.println( (String)r.getAttribute(1));
    } catch(Exception e)
    System.out.println(e);
    finally {
    if (handle != null)
    Configuration.releaseRootApplicationModuleHandle(handle, false);
    }

  • How to avoid table refresh on row selection

    Hi,
    I have a table where the row selection happens on selecting the check box in the first column of the row. The check box is bound to the transient Boolean attribute of my VO to support this functionality which is missing in new version of ADF. The selection is working fine, however I am facing the issue with table refresh. Everytime I click checkbox to select or unselect a row my whole table is getting refreshed which is very unusual for user point of view. This is my code for the checkbox column:
    <af:column sortProperty="isSelected" sortable="true"
    headerText="#{bindings.pricingObjects.hints.isSelected.label}"
    id="c4"
    inlineStyle='#{(row.isSelected)?"background-color: #E7E7E7":""};'>
    <af:selectBooleanCheckbox value="#{row.bindings.isSelected.inputValue}"
    required="#{bindings.pricingObjects.hints.isSelected.mandatory}"
    shortDesc="#{bindings.pricingObjects.hints.isSelected.tooltip}"
    id="it4" simple="true"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.isSelected.validator}"/>
    </af:selectBooleanCheckbox>
    I have to keep autoSubmit="true" on selectBooleanCheckbox because the table has to change color of the row everytime the checkbox is selected or deselected. Also, there are multiple commandToolbarButton such as "Delete" which needs to be enabled/disabled depending on the row selection.
    Is there anyway, I can achieve this behaviour with minimal refresh of table?

    Hi Marge,
    Yes I do have Add and Delete toolbar button in the panelCollection and also set partialTrigger="tableId" on them. I need this partialTriggers because Delete button should enable/disable depending on number of rows added in the table. However, I tried removing them but it did not work for me, table is still refreshing. BUT this solution does work in combination of other solution i.e. removing ChangeEventPolicy="ppr" on the iterator. I need ppr because I have a form which is bound to the same iterator and should change on table selection. The design is like this,
    - Read-only Table on top
    - Editable Form below
    - Select the row in table and edit the fields in the form
    If I remove ppr then my form is not updating with the row selection.
    Regards,
    Afroz

  • ADF table skins

    I have used jdev 11.1.1.6.0
    I have create ADF table , In table header row ,if i drag column header to resize column,it will resize column data only first time, if i refresh column data, column will comes its original size and header remains in resize position. Can i bind column to column header using any skin property.

    Hi,
    The normal behaviour of af:table is that column header and column always have the same width.
    I guess there is something wrong with your table or your existing skinning?
    (I can remember very gloomy a similar behaviour but unfortunately I can't remember the root cause. It was at least 2-3 years ago).
    Do you use custom skins?
    Have you already tried to create a simpel test application with an table to reproduce this issue?
    regards
    Peter

  • Table refresh is not working in case of data fetched from OUCM

    Hi All,
    I have created a Content Repository data control for a OUCM connection in an ADF application.
    I have five methods inside that. (advancedSearch, getURI, getAttributes, getItems, search)
    I have dragged and dropped the Return inside search method, as an ADF table in a jspx page. The table displays the list of documents in OUCM.
    The table code looks as follows.
    <af:table value="#{bindings.Return.collectionModel}" var="row"
    rows="#{bindings.Return.rangeSize}"
    emptyText="#{bindings.Return.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Return.rangeSize}"
    rowBandingInterval="0"
    disableColumnReordering="true"
    selectionListener="#{bindings.Return.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t2"
    binding="#{MyDocumentBean.documentTable}"
    filterModel="#{bindings.ReturnQuery1.queryDescriptor}"
    queryListener="#{bindings.ReturnQuery1.processQuery}"
    filterVisible="true" varStatus="vs"
    immediate="true" partialTriggers="delete"
    columnStretching="column:c2" width="948"
    columnResizing="disabled"
    contentDelivery="immediate" verticalGridVisible="false"
    displayRow="selected" summary="document table">
    I have a remove button with code as follows
    <af:commandButton text="Remove" actionListener="#{MyDocumentBean.deleteDoc}" id="delete" partialSubmit="true">
         </af:commandButton>
    In the MyDocumentBean's deleteDoc method , I am connecting to OUCM using RIDC and then deleting the content from OUCM.
    I have set the partialTrigger on table on partialSubmit of the remove button. But after I remove a document, the content is deleted from OUCM, but the table that shows the list of documents is not refreshed.
    I have to manually click a refresh button to refresh the table's content . The code for refresh button is
    <af:commandButton actionListener="#{bindings.search.execute}" text="Refresh" disabled="#{!bindings.search.enabled}" id="refresh" >
         </af:commandButton>
    I even tried using the below code for the search to be executed in the deleteDoc method
         BindingContext bindingContext = BindingContext.getCurrent();
         BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
         OperationBinding operationBinding = (OperationBinding) bindings.get("search");
         operationBinding.execute();
    But it also didn't work.
    I have even tried the following in the pageDefinition file. But in vain :(
    <methodIterator Binds="search.result" DataControl="OUCMDataControl"
    RangeSize="25"
    BeanClass="OUCMDataControl.search_return"
    id="searchIterator" Refresh="always"/>
    Please let me know how to refresh the table.
    Thanks in advance,
    Harini.

    Hi,
    can you try to refresh table "deleteDoc" action listener method using the below code
    AdfFacesContext.getCurrentInstance().addPartialTarget(tableBinding);if this doesn't work you can try to refresh the whole page (dont know whether its a good practice)
                            FacesContext context = FacesContext.getCurrentInstance();
                            String currentView = context.getViewRoot().getViewId();
                            ViewHandler vh = context.getApplication().getViewHandler();
                            UIViewRoot x = vh.createView(context, currentView);
                            context.setViewRoot(x);~Abhijit

Maybe you are looking for

  • How do i get my laserjet 1020 to print from my mac? the 1020/1022 driver won't download!

    I followed the instructions on the HP website to download the latest printer software. But when I try to add my printer to the queue manually, it asks me to select a driver to use with it, and neither the 1020 nor the 1022 software is in there! There

  • HDMI Adapter no longer charges new iPad ?

    I bought a shiny new iPad 3rd Gen, and am having difficulties with my existing Apple HDMI Adapter, which, apart from the "This accessory is not supported" popup, will not charge the device even when being plugged to an iPad Power Adapter. Have any of

  • How to remove Business content objects that are not required?

    Hi all of you, I had extracted some of the objects from business content from FI such as General LEdger and Asset Accounting. After extracting it, my c drive is full and I am not able to open any other file. So I want to remove these FI objects that

  • Where is the serial number for CC downloads

    where is the serial number for CC downloads

  • 3D environment greyed out

    Hello I had it working one time but now it's not. I am trying to change properties in the environment tab such as reflections & roughness but every time am unable to select those options, they are greyed out, i had it working one time but not sure ho