Problems with theming in the WAR-File [message #985343] |
Thu, 15 November 2012 10:20 |
Michael Fritscher Messages: 43 Registered: September 2012 |
Member |
|
|
Hi,
I've problems theming the version exported as war-File to use it in an external application server (tjws in my case). The program is running fine, as well in the rap's internal appserver (jetty) during running it in eclipse itself.
But it seems that the exported war file ignores my theming settings.
As a sidenote, i need to access it via http:// localhost:8182/stationaer/rap?startup=stationaer, while using eclipse I can use http:// 127.0.0.1:10080/stationaer ...
I tried following:
In the plugin.xml:
...
<extension
point="org.eclipse.rap.ui.entrypoint">
<entrypoint
class="de.mifritscher.stationaer.rap.EntryPoint"
id="stationaer.entrypoint1"
path="/stationaer"
parameter="stationaer">
</entrypoint>
</extension>
<extension
point="org.eclipse.rap.ui.branding">
<branding
defaultEntrypointId="stationaer.entrypoint1"
id="stationaer.branding1"
servletName="stationaer"
themeId="stationaer.defaulttheme" <-- (1) changing to the business theme does only work in eclipse+jetty...
title="Stationaer">
</branding>
</extension>
<extension
point="org.eclipse.rap.ui.themes">
<theme
file="css/defaulttheme.css"
id="stationaer.defaulttheme"
name="Standard">
</theme>
<themeContribution
file="css/defaulttheme.css"
themeId="org.eclipse.rap.design.example.business.theme">
</themeContribution>
<themeContribution
file="css/defaulttheme.css"
themeId="org.eclipse.rap.rwt.theme"> <-- (2) the tooltip says that I can use this id to change the default theme, but I get a warning in the eclipse's editor saying that this id doesn't exist
</themeContribution>
</extension>
...
build.properties:
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
libs/,\
pictures/,\
html/,\
css/,\
ormliteLocalLog.properties,\
js/
But nor my defaulttheme.css nor trying to use the business theme (1) works. See also (2) - The tooltip says that I can use this id to change the default theme, but I get a warning in the eclipse's editor saying that this id doesn't exist.
What can I do? I'm using RAP 1.5.1 btw.
|
|
|
Re: Problems with theming in the WAR-File [message #985838 is a reply to message #985343] |
Fri, 16 November 2012 10:29 |
|
Hi Michael,
Here are a few hints, hope they are helpful:
> As a sidenote, i need to access it via http://
> localhost:8182/stationaer/rap?startup=stationaer, while using
> eclipse I can use http:// 127.0.0.1:10080/stationaer ...
Brandings don't work for entrypoints by path in RAP 1.5 [1]. This
problem has been resolved in RAP 2.0 M3 [2]. If it works for you in
Eclipse, maybe you're using different RAP versions in the IDE and in the
WAR deployment?
BTW, you can add the context path ("/stationaer/") also to your launch
configuration in the IDE to have the same paths as in deployment.
> (2) the tooltip says that I can use this id to change the default
> theme ...
This attibute is used to specify an existing theme to contribute to. At
least in master, the documentation states "the id of the theme this
extension contributes to"
[1] 377424: Hooking an Entrypoint to a branding does not work
https://bugs.eclipse.org/bugs/show_bug.cgi?id=377424
[2] http://eclipse.org/rap/noteworthy/2.0/?build=M3
HTH, Ralf
--
Ralf Sternberg
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03110 seconds