myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwald...@apache.org
Subject svn commit: r638504 - /myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml
Date Tue, 18 Mar 2008 18:54:43 GMT
Author: jwaldman
Date: Tue Mar 18 11:54:36 2008
New Revision: 638504

URL: http://svn.apache.org/viewvc?rev=638504&view=rev
Log:
TRINIDAD-1013 add better documentation on what can go into trinidad-skins.xml's style-sheet-name
parameter
on trunk_1.2.x

Modified:
    myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml

Modified: myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml?rev=638504&r1=638503&r2=638504&view=diff
==============================================================================
--- myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml (original)
+++ myfaces/trinidad/trunk_1.2.x/src/site/xdoc/devguide/skinning.xml Tue Mar 18 11:54:36 2008
@@ -226,7 +226,23 @@
         </li>
         <li>
         <b>style-sheet-name</b> - This is your skin's stylesheet name url.
+        We try a few different means to get the style-sheet-name file as an URL object.
+        <p>
+        First, we try to get an URL for the non static urls, that is, urls that could change
+        after the server has started:
+        <ol>
+        <li>
+        If style-sheet-name starts with "http:", "https:", "file:", "ftp:", or "jar:",
+        then we create the URL by calling new java.net.URL(style-sheet-name).</li>
+        <li>
+        Else we create the URL by calling FacesContext's ExternalContext's getResource(style-sheet-name).
+        (we prepend '/' if it isn't already there)
         </li>
+        </ol>
+        If we still don't have an URL, we try to create the style-sheet-name URL using the
ClassLoader's getResource.
+        </p>
+        </li>
+
         <li>
         <b>extends</b> - This is how you can extend another skin rather than
the default simple skin. Say you like 
         the purple skin but only want to change the font size. You'd extend the purple.desktop
skin and 



Mime
View raw message