You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/07/25 19:19:25 UTC

[sling-org-apache-sling-app-cms] 01/03: Adding component annotation to textarea

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch dklco/form-framework
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit 150c5f5cb4cd9f9a93c4484e5416294374918600
Author: Dan Klco <dk...@apache.org>
AuthorDate: Thu Jul 25 14:50:43 2019 -0400

    Adding component annotation to textarea
---
 .../apache/sling/cms/reference/forms/impl/fields/TextareaHandler.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/fields/TextareaHandler.java b/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/fields/TextareaHandler.java
index 26b0036..0b27346 100644
--- a/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/fields/TextareaHandler.java
+++ b/reference/src/main/java/org/apache/sling/cms/reference/forms/impl/fields/TextareaHandler.java
@@ -23,9 +23,11 @@ import org.apache.sling.api.SlingHttpServletRequest;
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.cms.reference.forms.FieldHandler;
 import org.apache.sling.cms.reference.forms.FormException;
+import org.osgi.service.component.annotations.Component;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Component(service = FieldHandler.class)
 public class TextareaHandler implements FieldHandler {
 
     private static final Logger log = LoggerFactory.getLogger(TextareaHandler.class);