[Tobago] Simplified theme handling

2006-03-04 Thread Udo Schnurpfeil

Hello,

the theme handling was simplified, so you need to change something in 
your build process. See https://issues.apache.org/jira/browse/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---THEME.jar is no longer needed.
   You need only the tobago-theme--.jar
   So you may remove some tags the pom, if using maven2:
  THEME
  provided

Regards

Udo


Re: [Tobago] Simplified theme handling

2006-03-07 Thread Udo Schnurpfeil

I've forgotten something:

Put the tag
   org/apache/myfaces/tobago/renderkit
in your tobago-config.xml. Instead of
   tobago

In further versions, this will be unnecessary. The resource-dir will
be automatically resolved by the theme configuration.

Sorry for any trouble.

Udo

Udo Schnurpfeil schrieb:

Hello,

the theme handling was simplified, so you need to change something in 
your build process. See https://issues.apache.org/jira/browse/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---THEME.jar is no longer needed.
   You need only the tobago-theme--.jar
   So you may remove some tags the pom, if using maven2:
  THEME
  provided

Regards

Udo