Hello,
according to My Link the order of loading css and js does matter. However using Seam and richfaces, richfaces's scripts and css goes always before my resources. The code(template file):
<html> <f:view contentType="text/html" xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:s="http://jboss.com/products/seam/taglib"> <f:loadBundle basename="bundle.meta" var="metaBundle"/> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Cache-Control" content="max-age" /> <meta http-equiv="Expires" content="30758400" /> <meta http-equiv="Last-Modified" content="Last-Modified: Wed, 10 Nov 2010 06:00:00 GMT" /> <meta name="description" content="#{metaBundle.description}" /> <meta name="keywords" content="#{metaBundle.keywords}" /> <title>"#{metaBundle.titleHead}"</title> <link rel="shortcut icon" href="#{request.contextPath}/favicon.ico"/> <a4j:loadStyle src="/layout/stylesheet/theme.xcss"/> ...
Does not matter where I move a4j:loadStyle, richfaces' resources always go in front of mine in output html.
Is there any solution to this?