| Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #117224] | 
Sat, 27 December 2008 12:29   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, since last CVS update I'm getting this Exception and I don't what is  
wrong. I think, I don't made any change on my code. 
 
Can anybody explain this? 
 
 
Roland 
 
 
java.lang.IllegalArgumentException: Undefined key: 'text.SINGLE.padding'  
in theme 'RAP Default Theme' 
	at  org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:257 ) 
	at  org.eclipse.rwt.internal.theme.Theme.getValue(Theme.java:229 ) 
	at  
 org.eclipse.rwt.internal.theme.AppearancesUtil.substituteMac ros(AppearancesUtil.java:55) 
	at  
 org.eclipse.rwt.internal.theme.ThemeManager.createAppearance Theme(ThemeManager.java:966) 
	at  
 org.eclipse.rwt.internal.theme.ThemeManager.registerThemeFil es(ThemeManager.java:758) 
	at  
 org.eclipse.rwt.internal.theme.ThemeManager.registerResource s(ThemeManager.java:407) 
	at  
 org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:297) 
	at  
 org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:33) 
	at  
 org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36) 
	at  
 org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 01) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:61) 
	at  
 org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:89) 
	at  
 org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:50) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150) 
	at  
 org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:46 ) 
	at  
 org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:34) 
	at  
 org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157) 
	at  
 org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101) 
	at  org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63) 
	at  
 org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51) 
	at  javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 
	at  
 org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90) 
	at  
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111) 
	at  
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59) 
	at  javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 
	at  
 org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269) 
	at  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428) 
	at  
 org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677) 
	at  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568) 
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) 
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) 
	at org.mortbay.http.HttpServer.service(HttpServer.java:909) 
	at  org.mortbay.http.HttpConnection.service(HttpConnection.java: 820) 
	at  org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986) 
	at  org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37) 
	at  
 org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245) 
	at  org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57) 
	at  org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
 |  
 |  
  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
| Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118394 is a reply to message #118386] | 
Tue, 13 January 2009 08:36    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
New Yop Javeloper wrote: 
> Hi & thank you! 
> I took a look to the upload widget source especially the *.js sources 
> and I found what was the error. 
>  
> There's an error en the 
>  org.eclipse.rwt.widgets.internal.uploadkit.Upload.appearance s.js file. 
> We have in the source code : 
>  
> return { 
>        // 
>        padding :THEME_VALUE("text.SINGLE.padding"), 
>        // 
> }; 
 
 
This is indeed an outdated version. The current version of this file reads: 
 
 
    "upload-field" : { 
      style : function( states ) { 
        var tv = new org.eclipse.swt.theme.ThemeValues( states ); 
        return { 
          border : tv.getCssBorder( "Text", "border" ), 
          font : tv.getCssFont( "Text", "font" ), 
          padding : tv.getCssBoxDimensions( "Text", "padding" ), 
          textColor : states.disabled 
                        ? tv.getColor( "widget.graytext" ) 
                        : tv.getCssColor( "Text", "color" ), 
          backgroundColor : tv.getCssColor( "Text", "background-color" ) 
        }; 
      } 
    } 
 
 
> that sould be replaced by : 
>  
> return { 
>        // 
>        padding :THEME_VALUE('text.SINGLE.padding'), 
>        // 
> }; 
 
No, it should not. You should get the actual version from CVS like Ivan 
advised 5 postings before. 
 
> It was just a simple quotes matter, doubles ones in the source having to 
> be replaced by single one. 
> 
> I now have no error at lauching time but when seeked the upload wigets 
> brings new problem that is explained here : 
>  http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04480.html 
> ; 
> *.js files are not delivered to the client. I'm now learning more. 
>
 |  
 |  
  | 
| Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118408 is a reply to message #118394] | 
Tue, 13 January 2009 11:27    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Yes everything works fine now! 
 
it's just this psf file that brang the pain: 
 
 
=============== 
<?xml version="1.0" encoding="UTF-8"?> 
<psf version="2.0"> 
<provider id="org.eclipse.team.cvs.core.cvsnature"> 
<project  
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.fileupl oad,org.apache.commons.fileupload,v1_2 "/> 
<project  
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.io,org. apache.commons.io,v1_3_2 "/> 
<project  
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload,org.eclipse.rwt.widgets.upload "/> 
<project  
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload.demo,org.eclipse.rwt.widgets.upload.demo "/> 
</provider> 
</psf> 
=============== 
 
Thank You All!
 |  
 |  
  | 
| Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #118414 is a reply to message #118408] | 
Tue, 13 January 2009 12:39    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi, 
 
thanks for pointing this out. I updated the psf file. 
 
Regards, Ralf 
 
New Yop Javeloper wrote: 
> Yes everything works fine now! 
>  
> it's just this psf file that brang the pain: 
>  
>  
> =============== 
> <?xml version="1.0" encoding="UTF-8"?> 
> <psf version="2.0"> 
> <provider id="org.eclipse.team.cvs.core.cvsnature"> 
> <project 
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.fileupl oad,org.apache.commons.fileupload,v1_2 "/> 
>  
> <project 
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/tools,org.eclipse.orbit/org.apache.commons.io,org. apache.commons.io,v1_3_2 "/> 
>  
> <project 
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload,org.eclipse.rwt.widgets.upload "/> 
>  
> <project 
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/technology,org.eclipse.rap/sandbox/org.eclipse.rwt .widgets.upload.demo,org.eclipse.rwt.widgets.upload.demo "/> 
 
>  
> </provider> 
> </psf> 
> =============== 
>  
> Thank You All! 
>
 |  
 |  
  | 
 | 
 | 
| Re: Undefined key: 'text.SINGLE.padding' in theme 'RAP Default Theme' [message #119371 is a reply to message #118428] | 
Fri, 23 January 2009 05:43   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
I agree with Andreas. Furthemore is there any plan to include the upload  
widget in the rap project ? 
 
Emmanuel 
 
> Hi Ralf, 
 
> to prevent further problems with the outdated upload widget, maybe the old  
> code at cvsroot/technology should be removed. 
> Your new *.psf file and a README with a comment could be placed instead. 
> The same problem occured also for me and it works now with the new CVS  
> location. 
 
> Regards, 
> Andreas
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.41396 seconds