3 Replies Latest reply on Apr 12, 2007 11:12 AM by Pete Muir

    @Out and @Datamodel combination error

    Jason Long Master

      I had the following in a SFSB that worked until I upgraded to Seam 1.2.1.

       @Out(scope = ScopeType.CONVERSATION, required = false)
       @DataModel(value="dosRecordPend", scope=ScopeType.UNSPECIFIED)
       private List<Map> dosRecordPend;
      



      This was obviously an error on my part, but caused an runtime exception.

      java.lang.ClassCastException: java.util.ArrayList cannot be cast to javax.faces.model.DataModel


      Is there any reason to use @Out and @Datamodel in combination? If not, should this not throw and deployment error such as when you do not use

      scope=ScopeType.UNSPECIFIED or scope=ScopeType.Page


      with @Datamodel?