You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2018/12/12 10:52:04 UTC
[myfaces-tobago] branch tobago-4.x updated: TOBAGO-1914 tc:style
attribute 'customClass' attribute doesn't work on tc:image
This is an automated email from the ASF dual-hosted git repository.
hnoeth pushed a commit to branch tobago-4.x
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git
The following commit(s) were added to refs/heads/tobago-4.x by this push:
new 9225b82 TOBAGO-1914 tc:style attribute 'customClass' attribute doesn't work on tc:image
9225b82 is described below
commit 9225b8229942a16bf1adfaeb6f8c4a43743825b7
Author: Henning Noeth <hn...@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
(cherry picked from commit b9df35320ef7a68ad51ffbd805326a3d61406996)
---
.../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 {