You've probably already figured it out, but for anyone reading this thread later, what Leonardo said explains it.
Component encodeEnd is called during the time that the response is rendered (between before and after phase listeners). "After" is too late. On Tue, Apr 19, 2016 at 2:41 PM, fischman_98 <mfisc...@powerconsultantsinc.com> wrote: > Mike, Thanks...yeah were all good with the understanding of the Lifecycle... > > I'm just curious why the addResource call *WORKS* in an /encodeEnd /of a > Custom Component, which is fired in the */Render Response/* phase, > > but... > > *DOES NOT WORK* when the addResource is called directly from a PhaseListener > during the same */Render Response/* phase... > > Any thoughts? > > > > -- > View this message in context: > http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121623.html > Sent from the MyFaces - Users mailing list archive at Nabble.com.