The 'structural css' is the stuff that is in primefaces.jar all the jquery stuff and primeface components. These define how a paginator should look, or how tabs should look etc. (without it, it'd just be a html list):
Code: Select all
<link href="/Showcase/javax.faces.resource/jquery/ui/jquery-ui.css.jsf?ln=primefaces&v=3.0.RC1-SNAPSHOT" rel="stylesheet" type="text/css">
<link href="/Showcase/javax.faces.resource/paginator/paginator.css.jsf?ln=primefaces&v=3.0.RC1-SNAPSHOT" rel="stylesheet" type="text/css">
<link href="/Showcase/javax.faces.resource/datatable/datatable.css.jsf?ln=primefaces&v=3.0.RC1-SNAPSHOT" rel="stylesheet" type="text/css">
etc
After this is loaded (which is really the bare minimum in terms of css and a viewable page) THEN all other CSS should be loaded (the 'design' css) which consists of the defined theme and any manually included:
Code: Select all
<link href="/Showcase/faces/javax.faces.resource/theme.css?ln=primefaces-ACT" rel="stylesheet" type="text/css">
If the theme is loaded after the structural stuff, then people won't have to edit the primefaces.jar to alter these defaults, it will simply override it if it is specified in theme.css.
Simply put, if you want to use a default style for something, just don't redefine it in theme.css or any other.css.