Skip to Main Content

Chinese

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Table row reordering inside an iterator

3192010Mar 7 2016 — edited Mar 8 2016

Hi,

I am a beginner in ADF. I am trying to perform adf table row reordering. The table is placed inside an iterator. This is the jsf code which I am using.

<af:panelGroupLayout id="pgl1" layout="horizontal" valign="top"

                                         binding="#{backingBeanScope.horizontal.pgl1}">

                                  

                        <af:iterator id="i1" value="#{bindings.PmpProductBacklogView1.collectionModel}" var="master"

                                     binding="#{backingBeanScope.horizontal.i1}">

                       

                            <af:panelHeader text="#{master.PbList}" id="ph1" size="1"

                                            binding="#{backingBeanScope.horizontal.ph1}">

                                 <af:panelGroupLayout id="pgl2" layout="vertical"

                                                     binding="#{backingBeanScope.horizontal.pgl2}">

                                  

                                    <af:table var="row" rowBandingInterval="0" id="t1" value="#{master.PmpPbUserstoriesView}"

                                      binding="#{backingBeanScope.horizontal.t1}">

                                <af:column sortable="false" headerText="#{bindings.PmpPbUserstoriesView3.hints.UserstoryDesc.label}" id="c1">

                                    <af:outputText value="#{row.UserstoryDesc}" id="ot1"/>

                                </af:column>

                                <af:dragSource actions="MOVE" defaultAction="MOVE" discriminant="rowmove"/>

                         <af:collectionDropTarget     dropListener="#{backingBeanScope.horizontal.handleDragNdroP}"

                                                    actions="MOVE"

                                                      modelName="rowmove"/>

                            </af:table>

                                </af:panelGroupLayout>

                              

                            </af:panelHeader>

                          </af:iterator>

                     

                    </af:panelGroupLayout>

But when  executing this code I got an error

" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.List"

The same code is working  fine the table row reordering without iterator.

Please help me to find out a solution...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2016
Added on Mar 7 2016
0 comments
707 views