3 Replies Latest reply on Dec 20, 2007 2:57 PM by Ravi Nallakukkala

    New Skin file with background as transparent problems with T

    Ravi Nallakukkala Newbie

      Hi all,

      Following is the declaration in my skin file

      Colors
      headerBackgroundColor=#EEEEEE
      headerGradientColor=#787878
      
      #headerBackgroundColor=transparent
      #headerGradientColor=transparent
      headerTextColor=#000000
      headerWeightFont=bold
      
      #back ground of the panel previous 333333 #999999
      generalBackgroundColor=transparent
      generalTextColor=#000000
      generalSizeFont=11px
      generalFamilyFont=Arial, Verdana, sans-serif
      ......
      ...
      
      tabBackgroundColor=#C6DEFF
      tabDisabledTextColor=#8DB7F3
      ....
      ....
      
      


      This works as expected with panels, when i have tab panel, I get the following exception

      java.lang.IllegalArgumentException: Parameter "color" for convert from HTML to java can not be decoded: [transparent], reason: For input string: "transparent"
       at org.ajax4jsf.util.HtmlColor.decode(HtmlColor.java:73)
       at org.richfaces.renderkit.html.BaseGradient$Data.getColorValueParameter(BaseGradient.java:222)
       at org.richfaces.renderkit.html.BaseGradient$Data.<init>(BaseGradient.java:198)
       at org.richfaces.renderkit.html.BaseGradient.getDataToStore(BaseGradient.java:181)
       at org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:215)
       at org.ajax4jsf.renderkit.compiler.ResourceElement.getString(ResourceElement.java:83)
       at org.ajax4jsf.renderkit.compiler.ClassElement.getString(ClassElement.java:94)
       at org.ajax4jsf.renderkit.compiler.ClassElement.encode(ClassElement.java:59)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:105)
       at org.ajax4jsf.renderkit.compiler.RootElement.encode(RootElement.java:64)
       at org.ajax4jsf.renderkit.compiler.ElementBase.encode(ElementBase.java:73)
       at org.ajax4jsf.resource.TemplateCSSRenderer.send(TemplateCSSRenderer.java:81)
       at org.ajax4jsf.resource.InternetResourceBase.send(InternetResourceBase.java:373)
       at org.ajax4jsf.resource.ResourceLifecycle.sendResource(ResourceLifecycle.java:223)
       at org.ajax4jsf.resource.ResourceLifecycle.send(ResourceLifecycle.java:148)
       at org.ajax4jsf.resource.InternetResourceService.load(InternetResourceService.java:336)
       at org.ajax4jsf.cache.LRUMapCache.load(LRUMapCache.java:116)
       at org.ajax4jsf.cache.LRUMapCache.get(LRUMapCache.java:87)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:198)
       at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:265)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Unknown Source)
      
      


      on debug found the property "generalBackgroundColor" having a value "transparent" is what is causing this exception.

      Any suggestion, how would i over come this problem?

      Thanks,
      Ravi