3 Replies Latest reply on Feb 18, 2008 4:53 PM by Pete Muir

    Seam binding performance

    Tom Goring Apprentice

      Hi,


      I have a backing bean like:



      @Name(“messageBoard”)
      Public class MessageBoard {
      ..
      Public List<MessageThread> getThreadList() {
      …
      }
      }
      





      And a Facelet like:



      <c:forEach items=#{messageBoard.threadList} var=”row”>
      …
      



      N.b. I’m using c:forEach due to ajax requirements I have within the repeated area.  Also getThreadList is quick (i.e. not the problem).


      During render response it takes ages due to loads of Seam events firing (even for 20 rows taking 10sec).  I think this is due to bi-injection occurring lots of times during the facelet render phase.  If I change the loop to iterate like follows things speed up quite a bit:


      @Factory(“messgeBoardList”)
      Public List<MessageThread> getThreadList() {
      …
      }
      


      <c:forEach items=#{messageBoardList} var=”row”>
      …
      



      Any advise or explanation would be helpful.