Hello Bernd, I've examined this problem once again and I can provide one more detail to you: If you use your own package path to style.css, the reference to style.css is always listed at first in the HTML page.
For example: ... >GENA</title><link rel="stylesheet" >href="/gena/de/wlps/ndr/wf/webapp/gena/renderkit/html/gena/standard/style/style.css" > media="screen" type="text/css" ><link rel="stylesheet" >href="/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css" > media="screen" type="text/css" ><link rel="stylesheet" >href="/gena/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css" > media="screen" type="text/css" ><link rel="stylesheet" >href="/gena/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css" > media="screen" type="text/css" ><link rel="stylesheet" >href="/gena/org/apache/myfaces/tobago/renderkit/html/speyside/mozilla/style/style.css" > media="screen" type="text/css" ><script >src="/gena/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/prototype.js" > type="text/javascript" .. But it should be listed at last, after the fallback theme. If you use the standard package path /org/apache/myfaces/tobago/renderkit, the sequence of the references is correct. If you agree with me, that's a bug, I will add a jira issue for it. Regards Helmut >Hello Helmut, > >I didn't see any reason why this should not work. > >Can you add a jira issue for it. >Please add some example code. > >http://issues.apache.org/jira/secure/BrowseProject.jspa?id=12310273 > > > >Regards > > >Bernd > >H. Swaczinna wrote: >> Hello, >> >> I've defined my own theme and an additional markup. It works, >> when I use the standard resource path >> org/apache/myfaces/tobago/renderkit. >> But when I change the path to my own package de/wlps/ndr/tobago/renderkit, >> it doesn't work. The class defintion in my style.css has no effect. >> I can see the reference to my own style.css in the html source. When I >> enter this URL in my browser, I can see the style class defintion. >> So the resource location seems to work properly. The defined class is >referenced in the generated html code for the tc:in tag. >> >> This is the tobago-theme.xml >> >> <tobago-theme> >> <name>gena</name> >> <deprecated-name>de.wlps.ndr.tobago.context.GenaTheme</deprecated-name> >> <resource-path>de/wlps/ndr/tobago/renderkit</resource-path> >> <fallback>speyside</fallback> >> <renderers> >> <renderer> >> <name>In</name> >> <supported-markup> >> <markup>number</markup> >> <markup>modified</markup> >> </supported-markup> >> </renderer> >> </renderers> >> </tobago-theme> >> >> In web.xml, I setup a ResourceServlet: >> >> <servlet-mapping> >> <servlet-name>ResourceServlet</servlet-name> >> <url-pattern>/de/wlps/ndr/tobago/renderkit/*</url-pattern> >> </servlet-mapping> >> >> >> This is the generated html code: >> >> ... >> <link rel="stylesheet" >href="/gena-demo/de/wlps/ndr/tobago/renderkit/html/gena/standard/style/style.cs >s" media="screen" type="text/css"> >> ... >> <input type="text" name="gena:_idJsp108" id="gena:_idJsp108" value="566756" >style="width: 100px; height: 20px;" class="tobago-in-default >tobago-in-markup-modified "> >> ... >> >> And finally, this is my style.css: >> >> .tobago-in-markup-modified { >> background-color: yellow; >> } >> >> Is there something else, I have to setup? >> Thanks for help >> Helmut >> >> >

