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

    difference between weld and jsf

    alex wing Newbie

           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
          Nicklas Karlsson Master

          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.