You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2007/08/09 12:52:47 UTC

[Myfaces Wiki] Update of "Trinidad Skinning FAQ" by StephenFriedrich

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by StephenFriedrich:
http://wiki.apache.org/myfaces/Trinidad_Skinning_FAQ

------------------------------------------------------------------------------
  A skinner is someone in charge of writing the skin itself, that is the CSS file.
  
  === I can't get my skin to show up ===
- You need to add tr:document tag to your page. This causes the skinning framework to kick off.
+ To cause the skinning framework to kick off, you need to do one of the following:
+  * Use <tr:document> to generate the <html>, <head> and <body> elements including the stylesheet.
+  * Use <trh:head> to generate the <head> element including the stylesheets.
+  * Add <trh:styleSheet> inside <head> to add the stylesheet.
  
  === Where do I define my custom skin? ===
  In a nutshell, a skinner creates a skin by creating a css file and using the skin selectors found in the skin-selectors.html document. Example skins are in the demo bundle - purple and beach. Then the skinner creates a skin object by creating a <skin> element in the trinidad-skins.xml file. Child elements are <id>, <family>,<render-kit-id>, <style-sheet-name>, <bundle-name>, <extends>. Then in trinidad-config.xml, the application developer can set the <skin-family>.