You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by jw...@apache.org on 2010/12/16 20:14:59 UTC
svn commit: r1050103 -
/myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml
Author: jwaldman
Date: Thu Dec 16 19:14:59 2010
New Revision: 1050103
URL: http://svn.apache.org/viewvc?rev=1050103&view=rev
Log:
document where resource bundle files go a user's custom skin jar.
Modified:
myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml
Modified: myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml?rev=1050103&r1=1050102&r2=1050103&view=diff
==============================================================================
--- myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml (original)
+++ myfaces/trinidad/trunk/src/site/xdoc/devguide/skinning.xml Thu Dec 16 19:14:59 2010
@@ -715,9 +715,10 @@ so the medium panelBox's body will be pi
<P>Let's go through an example. Let's say you want to skin the ShowDetail disclosed tip.
Let's say the 'key' is af_showDetail.DISCLOSED_TIP. You would:
<ul>
- <li> Create a ResouceBundle file that sets your new value for this key and any other
- keys you want to change the value for.</li>
+ <li> Create a ResourceBundle file(s) that sets your new value for this key and any other
+ keys you want to change the value for, one file per language.</li>
<li> Set bundle-name in the trinidad-skins.xml file for your custom skin.</li>
+ <li> Package your skin and resource bundle classes together in the jar.</li>
</ul>
</P>
@@ -755,6 +756,12 @@ so the medium panelBox's body will be pi
org.apache.myfaces.trinidaddemo.resource.SkinBundle
</bundle-name>
</skin>]]></source>
+ <source><![CDATA[
+ The directory structure of your skin jar would look like:
+ META-INF
+ META-INF/trinidad-skins.xml
+ META-INF/org/apache/myfaces/trinidaddemo/resource/SkinBundle.class & SkinBundle_fr.class
+ ]]></source>
<P>Then when the renderer renders the text, it will look in your resource bundle first for the key's value.
It is highly recommended if you do skin text that you provide all the translated bundles
for the key you are skinning. Therefore you will have many other files, like SkinBundle_fr, etc.,