Java Magazine, Jan/Feb 2016
Component Libraries Utility Libraries PrimeFaces RichFaces ICEfaces JSR 372 JSF Implementations Application Servers JavaServer Faces JSF Apache MyFaces JSR 314 JavaServer Faces ORACLE COM JAVAMAGAZINE JANUARY FEBRUARY 2016 26 web apps achieved by removing from the UIViewRoot all the separate script and stylesheet resources that have the target attribute set to head and combining them for all scripts and separately combining them for all stylesheets So instead of firing a GET request per resource the browser will fire a single GET request for all scripts and another one for all stylesheets Further the CombinedResourceHandler is responsible for sequentially returning all the resources combined in these requests Visually speaking something like this stylesheets h outputStylesheet name css style css h outputStylesheet name css page css scripts h outputScript library default name js my_ js js target head h outputScript library custom name js custom1 js target head h outputScript library custom name js custom2 js target head deferred scripts o deferredScript library default name js js2 js o deferredScript library default name js js2 js becomes this for stylesheets link type text css rel stylesheet href MyApp faces javax faces resource css ln omnifaces combined amp v 1433659201062 for scripts script type text javascript src MyApp faces javax faces resource js ln omnifaces combined amp v 1433659204389 for deferred scripts script type text javascript OmniFaces DeferredScript add MyApp faces javax faces resource js ln omnifaces combined v 1433659201450 script The in these resources indicates an app specific string of characters removed for legibility Ed To get it to run this handler needs to be registered as follows in faces config xml OmniFaces DeltaSpike JSFUtils GlassFish Wildfly WebLogic JSR 344 application resource handler org omnifaces resourcehandler CombinedResource Handler Figure 1 Where OmniFaces fits
You must have JavaScript enabled to view digital editions.