1 Reply Latest reply on Dec 18, 2009 8:41 AM by nickarls

    difference between weld and jsf

    ziqew

      Hi
           both weld and jsf have annotation like RequestScoped,etc,and their package name is different,any one can tell me what's the different between them?

        • 1. Re: difference between weld and jsf
          nickarls

          JSF has it's own annotation and concept of a request scoped bean for completeness so it can be run without CDI. This causes some confusion and can cause some subtle errors so for sanity, stick to CDI annotations and beans on servers where it's available. CDI beans are more powerful than JSF beans in regard of injection capabilities, interceptors, decorators etc.