Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problems with theming in the WAR-File
Problems with theming in the WAR-File [message #985343] Thu, 15 November 2012 10:20 Go to next message
Michael Fritscher is currently offline Michael FritscherFriend
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 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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/
Re: Problems with theming in the WAR-File [message #986199 is a reply to message #985838] Mon, 19 November 2012 12:32 Go to previous messageGo to next message
Michael Fritscher is currently offline Michael FritscherFriend
Messages: 43
Registered: September 2012
Member
Hi Ralf,

thanks for the hints - Yes, I had tried 2.0 M2 or 3 some time ago, but removed it. But I'll try 2.0 anyway Wink

>> (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"

Yes, so the tooltip in eclipse, but it also says that I can use the id "org.eclipse.rap.rwt.theme" as a sort of special ID if I want to change the default theme.

Thanks,
Michael
Re: Problems with theming in the WAR-File [message #986263 is a reply to message #986199] Mon, 19 November 2012 16:39 Go to previous message
Michael Fritscher is currently offline Michael FritscherFriend
Messages: 43
Registered: September 2012
Member
Ok, I got it running in 2.0 M3 - I think I missed the extension / application thing a bit. Thanks for the hints!
Previous Topic:require document for deploy rwt standalone to jee container like tomcat or jboss?
Next Topic:CTabFolder strange border
Goto Forum:
  


Current Time: Fri Apr 19 04:07:01 GMT 2024

Powered by FUDForum. Page generated in 0.02317 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top