myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: TOBAGO-1914 tc:style attribute 'customClass' attribute doesn't work on tc:image
Date Fri, 09 Nov 2018 11:02:52 GMT
This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new b9df353  TOBAGO-1914 tc:style attribute 'customClass' attribute doesn't work on tc:image
b9df353 is described below

commit b9df35320ef7a68ad51ffbd805326a3d61406996
Author: Henning Noeth <hnoeth@apache.org>
AuthorDate: Fri Nov 9 12:02:42 2018 +0100

    TOBAGO-1914 tc:style attribute 'customClass' attribute doesn't work on tc:image
    
    * customClass now work for tc:image if using fontawesome
---
 .../myfaces/tobago/internal/renderkit/renderer/ImageRenderer.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/ImageRenderer.java
b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/ImageRenderer.java
index ed39fea..651ca0a 100644
--- a/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/ImageRenderer.java
+++ b/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/renderkit/renderer/ImageRenderer.java
@@ -60,7 +60,8 @@ public class ImageRenderer extends RendererBase {
       writer.writeClassAttribute(
           Icons.FA,
           Icons.custom(value),
-          disabled ? BootstrapClass.DISABLED : null);
+          disabled ? BootstrapClass.DISABLED : null,
+          image.getCustomClass());
       writer.writeAttribute(HtmlAttributes.TITLE, title, true);
       writer.endElement(HtmlElements.I);
     } else {


Mime
View raw message