3 Replies Latest reply on Sep 15, 2008 2:03 AM by mcarrizo

    MyList to ArrayList in a conversation datamodel

    fphilip

      Dear Forum,


      I have my detached criteria paginated list, that's works great, but if I use it to DataModel, the same is converted to ArrayList in a conversation context. How I do to prevent the array list convert?

        • 1. Re: MyList to ArrayList in a conversation datamodel
          mcarrizo

          Im just having the same problem !! Best regards

          • 2. Re: MyList to ArrayList in a conversation datamodel
            mcarrizo

            There is a very simple way to verify this behavior. Create a DataModel in a conversation context, open debug page, select current conversation, and click over dataModel variable. You will see something like this:



            -   Component (permissionRolesList)
            class   class org.jboss.seam.jsf.ListDataModel
            dataModelListeners      []
            rowAvailable    false
            rowCount        10
            rowData         java.lang.IllegalArgumentException[null]
            rowIndex        -1
            wrappedData     it.ma.dpn.util.view.PaginatorList@1150b68
            toString()      org.jboss.seam.jsf.ListDataModel@1e31f72

            And IllegalArgumentException is the problem !!

            • 3. Re: MyList to ArrayList in a conversation datamodel
              mcarrizo

              Again !!



              -   Component (permissionRolesList)
              class      class org.jboss.seam.jsf.ListDataModel
              dataModelListeners      []
              rowAvailable      false
              rowCount      10
              rowData      java.lang.IllegalArgumentException[null]
              rowIndex      -1
              wrappedData      it.ma.dpn.util.view.PaginatorList@1150b68
              toString()      org.jboss.seam.jsf.ListDataModel@1e31f72