2 Replies Latest reply on Sep 20, 2007 7:06 AM by gersonk

    Seam and JSF EL Expression

    gersonk

      what's the difference about the two examples bellow (and benefits of one versus another)? How do I choose one or another?

      <rich:dataTable id="..." value="#{someService.messageList}" ...>
      ...
      </rich:dataTable>
      


      and

      <rich:dataTable id="..." value="#{messageList}" ...>
      ...
      </rich:dataTable>
      





        • 1. Re: Seam and JSF EL Expression
          thejavafreak

          The first one will get the instance of messageList from someService component

          The second one will get the messageList that is created by the @Factory

          I prefer using the second one since sometimes I need to get the rowCount from the messageList but the first one is good also. It's a matter of preference and your coding style

          • 2. Re: Seam and JSF EL Expression
            gersonk

             

            "thejavafreak" wrote:

            The second one will get the messageList that is created by the @Factory


            but it's not necessary to use any factory method to get it to work...

            Is it about dependency injection?