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.css" 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