code: @Override
  	public void processEvent(ComponentSystemEvent event) throws AbortProcessingException {
  		if (event instanceof PostAddToViewEvent) {
  			if ("non-sticky".equals(getFixed()) || ("bottom".equals(getPosition()) && (!isSticky()))) {
  				AddResourcesListener.addExtCSSResource("sticky-footer-navbar.css");
  				/*UIOutput resource = new UIOutput();
  				resource.getAttributes().put("name", "css/sticky-footer-navbar.css");
  				resource.getAttributes().put("library", C.BSF_LIBRARY);
  				resource.getAttributes().put("target", "head");
  				resource.setRendererType("javax.faces.resource.Stylesheet");
  				FacesContext.getCurrentInstance().getViewRoot().addComponentResource(FacesContext.getCurrentInstance(),
  						resource);*/
  			}
  		}
  		super.processEvent(event);
  	}
docs: Dario D'Urzo <br>
  Dynamically add custom css to manage non-sticky footer. In this way, only
  if fixed attribute is "non-sticky" the system load the correct css that
  manages all style aspect of this functionlity.
  
  This is also cross-theme.