Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RWT standalone, css theming wont work
RWT standalone, css theming wont work [message #1035039] Sat, 06 April 2013 08:01 Go to next message
ark ark is currently offline ark arkFriend
Messages: 2
Registered: April 2013
Junior Member
i try to small change default theme. App is example.rwt.simple.ds from github.com/ralfstx/rap-helpers (or RAP HelloWord Template from eclipse)
So i place into the project root file sample.css, like this:
* {
font: 10 px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
background-color: #ff0000;
}

Display {
font: 10 px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
background-color: #ff0000;
}
and tried to add it into the config:
package rwt.simple;

import java.util.HashMap;
import java.util.Map;

import org.eclipse.rap.rwt.RWT;
import org.eclipse.rap.rwt.application.Application;
import org.eclipse.rap.rwt.application.ApplicationConfiguration;
import org.eclipse.rap.rwt.application.Application.OperationMode;
import org.eclipse.rap.rwt.client.WebClient;


public class SimpleConfiguration implements ApplicationConfiguration {

  @Override
  public void configure( Application application ) {
    Map<String, String> properties = new HashMap<String, String>();
    application.addStyleSheet(RWT.DEFAULT_THEME_ID, "sample.css");
    properties.put( WebClient.PAGE_TITLE, "Simple RWT Example" );
    application.addEntryPoint( "/simple", SimpleEntryPoint.class, properties );
  }

}
and it has no effect. I try to extract default.css and others from org.eclipse.rap.rwt_xxxyyy.jar/resource.theme and register default.css as new theme, and anyway have no luck. Have i try to do some additional actions except this to make css work?
Re: RWT standalone, css theming wont work [message #1036642 is a reply to message #1035039] Mon, 08 April 2013 16:36 Go to previous messageGo to next message
Phill Perryman is currently offline Phill PerrymanFriend
Messages: 214
Registered: July 2009
Senior Member
someone replied with this link a little while ago which explains it, I just have not had time to try it yet. I think you have to add the style sheet using your own id and then put the RWT.DEFAULE_THEME_ID to your own style sheet id you just added.

http://www.eclipse.org/rap/developers-guide/devguide.php?topic=theming.html&version=2.0#rwt
Re: RWT standalone, css theming wont work [message #1037506 is a reply to message #1035039] Tue, 09 April 2013 16:36 Go to previous message
ark ark is currently offline ark arkFriend
Messages: 2
Registered: April 2013
Junior Member
now i see that problem is configure() method from ApplicationConfiguration isnt called.
Previous Topic:Servlet Filter extension point not instantiated.
Next Topic:How disable output exception in browser?
Goto Forum:
  


Current Time: Fri Apr 19 03:21:43 GMT 2024

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

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

Back to the top