Hi AddResource API in its default implementation use a buffer to render resources, but on render response phase, so you should aim to add your resources in that phase. A custom phase listener or a custom component using the code in encodeXXX should work.
Regards, Leonardo On Apr 19, 2016 8:05 AM, "fischman_98" <mfisc...@powerconsultantsinc.com> wrote: > So are you confirming/agreeing that the result of an addResource call is > handled in the Apply Request phase? > > And as to /only need to adjust the code a bit/, what code and where? I was > trying in a phaselistener, are you suggesting a custom ViewHandler, custom > component or ? > > Matt > > > > -- > View this message in context: > http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121611.html > Sent from the MyFaces - Users mailing list archive at Nabble.com. >