0 Replies Latest reply: Feb 12, 2014 5:56 AM by 1943f252-399e-462b-95e1-b5bcf5eb1190 RSS

Migration of ADF table selection code to Trinidad code problem with RowKeySet

1943f252-399e-462b-95e1-b5bcf5eb1190 Newbie
Currently Being Moderated

we found a conversion problem as described below in one of the java files related to Manual UI.

 

    public void setPsdTable(CoreTable psdTable) {

        this.psdTable = psdTable;

        if (globalBean.isResetCreateRequestPsdQuarters()){

   ADF -code         this.psdTable.setSelectionState(new RowKeySet());

   Trinidad code     this.psdTable.setSelectedRowKeys(new RowKeySet());

            globalBean.setResetCreateRequestPsdQuarters(false);

        }

    }

 

In Trinidad RowKeySet is abstract class whereas in ADF the same is normal class. Hence I found the below error message.

 

  • Error(364,45): org.apache.myfaces.trinidad.model.RowKeySet is abstract; cannot be instantiated

Please guide me if you have an idea on how to change the adf statement to Trinidad code statement “this.psdTable.setSelectionState(new RowKeySet());

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points