Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12362

skin color parameters do not support "transparent"

    XMLWordPrintable

    Details

      Description

      Hi,

      Whith the component rich:fileUpload
      In my file skin.properties, when I set the property
      tableFooterBackgroundColor=transparent
      I catch the excetpion

      Caused by: 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:78) [richfaces-core-impl-4.3.0-20120704.041156-53.jar:4.3.0-SNAPSHOT]
      	at org.richfaces.skin.AbstractSkin.decodeColor(AbstractSkin.java:44) [richfaces-core-impl-4.3.0-20120704.041156-53.jar:4.3.0-SNAPSHOT]
      

      With a color like #123456, it works fine.
      Maybe in org.ajax4jsf.util.HTMLColor you can add something like
      colorNames.put("transparent", new Color(0xFF,0xFF,0xFF,0x00);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                margasy s m
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: