Search code examples
jsfjsf-2resources

What advantages do JSF's h:outputScript/ h:outputStylesheet have over plain HTML script/style elements


Is it preferable to use JSF's h:outputScript or h:outputStylesheet when script/style elements may just work for you ? What advantages does former offer over the latter ?


Solution

  • The JSF builtin resource handling has at least the following advantages:

    See also: