Newly added af:table items are not sorted? Bug?

I have written a simple adf faces 10.1.3.0.4 screen with an af:table and made it sortable calling SortableModel.setWrappedData() with an ArrayList of VOs. When the user clicks a header, the rows are sorted as expected. So far, so good.
Now I do a PPR on the table and add some additional VOs to the ArrayList. Next the af:table re-renders itself and these new rows show up at the bottom of the af:table, IGNORING the user's chosen sort order. Is this a bug or am I missing a step/setting?
Or maybe the question is when adding these new items to the underlying ArrayList, is there a way to force the SortableModel to re-sort its contents?
I can post the sample code if the explanation is not clear. Thanks.

After additional investigation what I found was that the item most recently added to the table is not sorted, but it gets sorted once another item is added, etc, etc. So there is always one item not in the correct order. This simple example below (which demonstrates polling, PPR and height limited table scrolling) will show the behavior. Click on the header to sort the column, then watch the bottom of the list...after the table refreshes (5 seconds), the bottom row will not be sorted.
So my question is, "Can anyone think of a way to get the bottom item to participate in the sorting"?
AlertPage.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
  <af:document>
    <af:form id="alertForm">
      <af:table id="alertTable" value="#{backing_app_AlertPage.alerts}"
        var="alert" emptyText="No Alerts were found"
        partialTriggers="pollingId" width="100%" banding="row">
        <f:attribute name="height" value="150px"/>
        <af:column headerText="Deal" sortProperty="dealId" sortable="true">
          <af:outputText value="#{alert.dealId}"/>
        </af:column>
      </af:table>
      <af:poll id="pollingId"
        pollListener="#{backing_app_AlertPage.processPoll}"/>
    </af:form>
  </af:document>
</f:view>MainGrid.java
package alertapp;
import java.util.ArrayList;
import javax.faces.component.*;
import javax.faces.context.FacesContext;
import javax.faces.event.*;
import javax.faces.model.ListDataModel;
import com.bofa.dealcal.model.alert.AlertVO;
import oracle.adf.view.faces.component.core.CorePoll;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.context.AdfFacesContext;
import oracle.adf.view.faces.event.*;
public class MainGrid implements PollListener {
    private ArrayList alertVOs;
    private CoreTable alertTable;
    public synchronized ArrayList getAlerts() {
        if (alertVOs == null) {
            alertVOs = new ArrayList(10);
        return alertVOs;
    public void setAlerts(ArrayList alerts) {
        this.alertVOs = alerts;
    public CoreTable getAlertTable() {
        return alertTable;
    public void setAlertTable(CoreTable alertTable) {
        this.alertTable = alertTable;
    public void processPoll(PollEvent pe) {
        Long newAlertId = Long.valueOf(Math.round(Math.random() * 1000000));
        alertVOs.add(new MainGrid.AlertVO(newAlertId));
    public class AlertVO {
        private Long dealId;
        public AlertVO(Long dealId) {
            super();
            this.dealId = dealId;
        public Long getDealId() {
            return dealId;
        public void setDealId(Long dealId) {
            this.dealId = dealId;
}faces-config.xml
     <managed-bean>
          <managed-bean-name>backing_app_AlertPage</managed-bean-name>
          <managed-bean-class>
               alertapp.MainGrid
          </managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>...

Similar Messages

  • Asset Line items are not updating in table ANEP

    Hi friends,
    I found that asset line items are not getting updated in ANEP table,.
    This is my precedure for posting of depreciation.
    I'll create Asset through AS01, then i'll use the T.Code: F-90.. then i'll run the depreciation program thru t.Code: AFAB.
    In but i am unable to capture the values of Planned and Depreciated or Posted values in ANEP.. Is there is any other table for this...
    Where is the mistake in my process..
    thanks in advance..
    Naveen

    HI Naveen
    The FI-AA documents are stored in tables ANEK (document header), ANEP (document line items) and ANEA (proportional values). You can use FI-AA standard report RABEWG_ALV01 to list all transactions to an asset in one fiscal year, and report RAABGA_ALV01 to list only retirement postings.
    ANEA should be the solution you are looking for.
    Hope it helps!
    Cheers
    Z

  • Document library items are not displaying in sorted order in sharepoint 2013

    Hi,
    I have a document library , I am storing document sets on it.
    28326 items are there in the library.
    I have configured sort on Name columns. Initially items are displaying in sorted order like (A,B,C,D,E...)
    Now Items are not displaying in a sorted order it is displaying like (A, B,C,D,E,A,C...) like this.
    Please help me on this sorting issue.
    Thanks,
    Samir

    Are the documents displaying in your image inside the document sets?  If so then your sets (folders) are displaying in alphabetical order and the documents inside the sets are displaying in alphabetical order.  This is what i would expect.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Few line items are not coming at the time of creation of delivery

    Dear Experts,
    When the user creating the delivery few line items are not picking in the delivery document
    the following checks i verified,
    Stock is available
    shpping condition is differ from sold to party and sales document
    Plants are same for all the line items
    why the few line items are not coming in the delivery document creation,
    please help me to sort out this issue
    Thanks and Best Regards,
    Muralidharan S

    Hi,
    Check below points.
    Point 1:
    When you create a delivery document, you create it for a Shipping Point.
    So whatever the line that came in to one delivery has determined same shipping point that you entered in VL01N screen.
    Others got a different shipping point and that's why it didn't come to the same delivery document.
    Shipping point determined based on below criteria
    - Shipping Condition - From customer master
    - Loading Group - Material
    - Plant  - Delivery Plant of the sales order line item
    You assign a proffered shipping point for above combination in configuration.
    If that combination is not find, those line items are not going in to the delivery.
    You can check the log of the delivery document for more information as well.
    Point 2:
    Check the line item Requested delivery date and the "Selection Date" you entered in the VL01N screen.
    Al  Requested delivery dates has to be on or before the  "Selection Date" you entered in the VL01N screen.
    Those line items which has a date more than that will dropped in the delivery.
    Best regards,
    Anupa

  • In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    In my library, under the Artist column only...items are not listed in alpha order.  How can I get that to happen?

    Same deal as your other thread but with Artist/Sort Artist:
    https://discussions.apple.com/message/25561674#25561674
    For more info. on how iTunes organizes things see Grouping tracks into albums.
    tt2

  • LeaveRequest Work Items are not shows in SBWP TCODE workplace under outbox

    Hi
    Friends
    I used work flow 12300111 for leave request process and I activated that work flow.
    I applied leave through ESS from portal(Employee login)employee sends a leave request sends good,
    and I got Leave request(work items) Managers in box(uwl in Manager Login in portal).
    Manger Approve the leave request has been approved successfully.
    can I check whether leave request is processed in R/3.
    in tcode se38-RPTARQDBVIEW - UNDER leave request(Leave)->STATUS>COMPLETED,
    But in r/3 i execute the Tcode SBWP...
    here is no work items are not showing in outbox..
    Please help me
    Rafi Shaik

    HI
    Sidhu
    Tanks For Ur Replay
    i am doing as for u r note..
    AFTER DEBUGGING....
    function module-- SWK_LOCAL_OUTBOX_GET-under THERE IS NO table->SWW_OUTBOX
    PARAMETER NAMES ARE THERE(AVAILABLE)..BUT THIS  (SWW_OUTBOX) IS NOT THERE IN TABLES OPTION
    WI_LIST_S
    WI_LIST_E
    WI_LIST_F
    STATUSFILTER
    TASK_FILTER
    yes it wont be shown in sbwp outbox as it is java wd after completion you ll only see for approval in his inbox use swi5...
    IN SWI5 TCODE>COMPLETED WORK ITEMS BY AGENT AND TASK-UNDER SHOWING MY LEAVE REQUEST(GOOD)..
    CAN PLEASE HELP ME
    HOW CAN I GET THE LEAVE WORK ITEMS UNDER SBWP(OUTBOX)
    TANKS
    RAFI SHAIK

  • When I sort bookmarks in "organize bookmarks" they are not sorted under the bookmarks pulldown menu. Latest additions are not integrated into the sort

    When I sort bookmarks in "Organize Bookmarks" they are not sorted under the pulldown menu on a regular page. Recently added bookmarks are not inegrated into to sorting.

    See this:
    [https://support.mozilla.com/en-US/kb/Sorting+bookmarks#Sorting_by_name]

  • CIN: Items are not displayed while updating the RG1 Register using T Code:

    Hi Experts,
    Items are not displayed while updating the RG1 Register using T Code: J1I5.
    System is not showing any error message.
    Can any one explain to update the RG1 Register?
    Thanks
    Chandra

    Hi,
    dont go the table again and again . the table is updated at intial stage only for stock update but not when SAP is running.
    In day to day bussiness the flow is as follows:
    Production - MB31 - to Unres stock
    Sales - VL02n - PGI - to customer - i.e out of unres stock
    Every day u can run TC J1i5 once in a day as decided and update the register so all transactions which have happend in that day gets updated i.e both input and output.
    and this will happen every day.
    hence dont use table as it is only for intial data upload i.e just before golive.
    Hope i am clear.
    krishna

  • Cannot join tables .item dependency not found in EUL

    cannot join tables.item dependency "a04 currency->b27 exchange rate 1" not found in EUL
    I am not able to open a workbook in discoverer in user edition.
    It seems I unwittingly deleted a join in the end user layer. I have tried to redo the join but I have not been able to replicate the join required. Is there any way I can work around this join without having to scrap my workbook? Rebuilding the workbook took a long time.
    Any suggestions would dig me out of a deep hole

    Hey,
    I got this Error after our environment was cloned from APPS Production (PRD) instance to Development (DEV). I saved my workbooks that were 'under construction' as *.DIS files as local copies to the network.
    After the clone was finished I imported the latest Business Areas back onto DEV, but there was no way I could open my saved local workbooks due to the error "cannot join tables .item dependency not found in EUL".
    After some hours of rage, by accident we found out that one of our Functional Consultants was able to open these workbooks! It turned out that when I logged on to APPS under the user_name (from FND_USER) of this person I could indeed open the workbooks and save them to the database after which I could open them again with my own user.
    So -in this case- I solved the problem by using a different user to open the workbooks. But who knows next time...
    Good luck, you'll need it.

  • Newly added Cal.View Measure does not appear in the BEX Designer

    Hi,
    anybody come about this :
    A newly added Cal.View Measure does not appear in the BEX Designer:
    I got a runnig query in Bex Designer, based on a transient InfoProvider which is based on a HANA Calculation View
      and
    added a new measure to the Calculation View
      and
    added a Reference InfoObject in the Publisher to the (transient) InfoProvider.
      and
    see the newly added filed in the Listccube of the(transient)   InfoProvider with a technical generated name
      and do not
    get the newly added measure in the BEX Designer.
    Whats wrong ? What needs to be done ?
    Thank You
    Martin

    Hi Martin,
    Are you trying to consume the HANA Calc View in BEx Front End Tool - Query Designer.Could you also check the data preview of the Calc View shows the newly added Measure.Check the definition of Calc View under SYS_BIC schema ->Column Views.
    Rgds,
    Murali

  • Delete records from tableA which are not in tableB

    Table A contains milions of records which is the best way to delete records from tableA which are not in tableB
    delete from tableA where empno not in (select empno from tableb)
    or
    delete from tableA where empno not exists (select empno from tableb
    where b.empno=a.empno)
    any help

    Hi
    If you can do this, do with this:
    create table tableC
    as select a.*
    from tableA a,
    (select empno from tableA
    minus
    select empno from tableB) b
    where a.empno = b.empno;
    drop table tableA;
    rename table tableC to tableA;
    Ott Karesz
    http://www.trendo-kft.hu

  • Reg: Certain Open Items are not showing in open item clearing F-44

    HI all,
    I want clear open items using with f-44 but cetain open items are not showing in opeing item clearing.   i checked in FBL1N all open items are shwoing i want see all open items inf-44 how to see plz help me
    with regards
    JK Rao

    Hi,
    Check whether you r giving some additional selection take it as none and are the items in the account have any special indicator  you might not be giving here.
    reward pts if useful
    regds

  • Line items are not appearing for some users

    Hi
    In one module pool program some line items are not appering for specific users. For Ex: Out of 5 line items user1 is able to see only 3 and user2 able to see all the line items. what might be the reason.
    Regards
    John.

    Hi,
    What do you mean by line items? Are you talking about screen fields in your module pool program or output of the program?
    Please clarify your issue.
    Regards,
    RS

  • Line items are not coming on next page in Bill of Lading

    When I am printing Bill of Lading, if it has around 8 line items then its printing on the first page, but if line items are more then its not printing the remaining line items on second page.
    I have one delivery with 10 line items, when I am printing it then on first page 7 line items are coming and for 8 line item only material is printing and on second page its description is printing but last two line items are not printing at all.
    Kindly help me to resolve the issue as it is very critical.

    Hi,
    Check below points.
    Point 1:
    When you create a delivery document, you create it for a Shipping Point.
    So whatever the line that came in to one delivery has determined same shipping point that you entered in VL01N screen.
    Others got a different shipping point and that's why it didn't come to the same delivery document.
    Shipping point determined based on below criteria
    - Shipping Condition - From customer master
    - Loading Group - Material
    - Plant  - Delivery Plant of the sales order line item
    You assign a proffered shipping point for above combination in configuration.
    If that combination is not find, those line items are not going in to the delivery.
    You can check the log of the delivery document for more information as well.
    Point 2:
    Check the line item Requested delivery date and the "Selection Date" you entered in the VL01N screen.
    Al  Requested delivery dates has to be on or before the  "Selection Date" you entered in the VL01N screen.
    Those line items which has a date more than that will dropped in the delivery.
    Best regards,
    Anupa

  • We are using SAP SRM to punch out external catalogs. Firefox version 3.5 and below works fine and the items from the catalogs are brought back to SRM .But when we use version 3.6.12 the items are not getting transferred back to SRM from the Catalogs.

    SRM is a procurement system from SAP which we use to purchase goods and service. We have external catalogs like officemax, cdw etc which we punchout the items and bring it to SRM for ordering.
    When we use firefox version 3.5 and below the items which we add from the Catalogs are correctly brought back to SRM for us to order. But when we use versions 3.6.12 the items are not brought back to SRM.
    Internet Explorer 7 and 8 works fine. Is there anyway you can help us.
    Thanks
    Jayant

    Hi,
    Firstly I would suggest you to upgrade your database from Oracle Release 11.2.0.1.0 to Oracle Release 11.2.0.2 . This is the recommended Oracle 11g database version  for SAP solutions. Many of your problem will get resolved with it.
    Question 1:
    So my first question would be is there any other suggestions besides adjusting the mentioned parameter above in order to ensure that no work processors going into hang state due to RFCs' occupying it as this issue always happens at the end of the month only when there are massive users accessing it.
    For immediate resolution the approach you have followed is correct viz limiting number of dialog processes for RFC. Secondly you need to analyze why RFC processing takes so much time. You need check which programs are getting executed by those RFC.
    Generate EarlyWatch report for more detailed view
    Question 2:
    My second question is what went wrong with the libttsh11.so file. How could it be 0 size in PRD when no signs of changes had happen to the PRD system. Is this a proven Oracle Bug or something else since I have never encountered anything like this before.
    The libttsh11.so library cannot be found in the related directory.
    Cause
    The file system is mounted using CIO option, but per Note 257338.1 Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L, an ORACLE_HOME on a filesystem mounted with "cio" option is not supported.
    Such a configuration will cause, installation, relinking and other unexpected problems.
    Solution
    Disable the CIO option on the filesystem.
    References
    NOTE:257338.1 - Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L
    Hope this helps.
    Regards,
    Deepak Kori

Maybe you are looking for