4 Replies Latest reply on Aug 28, 2009 7:23 AM by Prathamesh Gaddam

    Difference: Collection with and without @DataModel?

    Prathamesh Gaddam Novice
      Hi,

      1. Whats the difference is using the resultList with and without @DataModel? Which one is the good practise?

      Example:

      Scenerio 1: I'll use myEntityQuery.getResultList() in <rich/h:dataTable> to display the result list contents.

      Scnerio 2: I'll use @Model(scope=?) List myResult; and refer it in <rich/h:dataTable>

      The reverse-eng code from database creates view and specific QueryLists, as secnerio 1.   

      2. Any thumb rule how to determine the situations where @out or @DataModel can be used?

      Any related reply will be helpful. Thank you in advance.