April 3, 2020
Estimated Post Reading Time ~

OSGI bundle is not displaying the edit button to configure settings

The Problem
Your newly minted custom OSGI bundle is using annotations for configurable properties, but there is no edit button visible to edit your properties in the Felix Config Console.

The Solution
In your @Component or @SlingServlet or similar annotation, you need to set metatype=true for the edit settings to appear.

Before:
@Property(name="MY-PROPERTY", description="", value="http://www.google.com")

After:
@Property(name="MY-PROPERTY", description="", value="http://www.google.com", metatype=true)


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.