Skip to content

Instantly share code, notes, and snippets.

@nileshk
Created April 11, 2013 14:16
Show Gist options
  • Save nileshk/5363729 to your computer and use it in GitHub Desktop.
Save nileshk/5363729 to your computer and use it in GitHub Desktop.
How to get a CSS file to load after Primefaces CSS (tested with Primefaces 3.5.0)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:pe="http://primefaces.org/ui/extensions">
<h:head>
<f:facet name="last">
<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/resources/css/screen.css" />
</f:facet>
</h:head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment