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

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

You have 2 possibilities:

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

   2. For production:
      a) Put the theme jar in the classpath *)
      b) Unpack the resources (no classes and no properties) 
         of the theme into the war. You may use the maven-theme-plugin
      c) Set load-theme-resources-from-classpath=false 
         in tobago-config.xml 
      You can see the use 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