[ 
http://issues.apache.org/jira/browse/TOBAGO-20?page=comments#action_12369297 ] 

Udo Schnurpfeil commented on TOBAGO-20:
---------------------------------------

 You have to make the next steps. There are 2 possibilities, one for easy setup 
and development and one for production:

   a) Put the theme jar in the classpath *)
   b) Put the tag 
<resource-dir>org/apache/myfaces/tobago/renderkit</resource-dir>
        in your tobago-config.xml. In further versions, this will be 
unnecessary.

   1. For easy development:
      c) Define a ResourceServlet in the web.xml
         and bind it to the url-pattern of the theme-path
      d) Ensure load-theme-resources-from-classpath=true
         in tobago-config.xml (is default)
      You can see the usage in the tobago-example-blank

   2. For production:
      c) Unpack the resources (no classes and no properties)
         of the theme into the war. You may use the maven-theme-plugin
      d) Set load-theme-resources-from-classpath=false
         in tobago-config.xml
      You can see the usage in the tobago-example-demo

*) The tobago-theme-<name>-<version>-THEME.jar is no longer needed.
   You need only the tobago-theme-<name>-<version>.jar
   So you may remove some tags the pom, if using maven2:
      <classifier>THEME</classifier>
      <scope>provided</scope>


> Simplify the Theme Handling
> ---------------------------
>
>          Key: TOBAGO-20
>          URL: http://issues.apache.org/jira/browse/TOBAGO-20
>      Project: MyFaces Tobago
>         Type: Improvement
>     Reporter: Udo Schnurpfeil
>     Assignee: Udo Schnurpfeil
>      Fix For: 1.0.7

>
> In the moment the user need to unpack all the tobago-theme-xxx.jar files into 
> the war under a directory e.g. tobago.
> It may be done by the maven-theme-plugin when building with maven2.
> The goal is: only putting the theme in the lib directory of the war, for 
> making the theme usable.
> Next steps for that are:
> * modify the maven-theme-plugin to the new structure
> * hold configuration in the META-INF/tobago-theme.xml
> * decide which information the xml-file holds e.g. 
>   - the resource-path and 
>   - the stuff of the Theme-Class
>   - enable loading directly from the jar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to