RE: @ExtendedObjectClassDefinition configuration page not available

thumbnail
Gianluca Fares, modified 6 Years ago. New Member Posts: 5 Join Date: 3/13/09 Recent Posts
Hi all,
I have a simple configuration class with some properties
@ExtendedObjectClassDefinition(scope = Scope.SYSTEM, category = "third-party")
@Meta.OCD(localization = "content/Language", name = "queue-publisher-configuration-name", description = "queue-publisher-configuration-description")
public interface QueuePublisherConfiguration {

    @Meta.AD(deflt = "admin", description = "username-description", name = "username", required = false)
    public String username();
}
but when i deploy the package there is no configuration page in Control Panel -> System Settings -> Third Party ... I'm missing something but what ?

Thanks in advance.


Liferay Community Edition Portal 7.1.2 CE GA3 (Judson / Build 7102 / January 7, 2019)
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Gianluca,

Did you make sure to add the this line to you bnd?​​​​​​​ 
[code]-metatype: *

.. I ask only because I have forgotten this line in the past (many times) and I believe that might be one of the things that is required to make it all wire up correctly.
This line lets bnd use your configuration interface to generate an XML configuration file. This provides a lot of information about your application’s configuration options. Enough, in fact, to generate a System Settings user interface automatically.

Also, the category you specified will appear in the "other" section, likely with third-party as a name if you haven't provided a language key. I mention this just in case you are looking for a heading (panel) called third-party
thumbnail
Gianluca Fares, modified 6 Years ago. New Member Posts: 5 Join Date: 3/13/09 Recent Posts
It works.
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Great! Glad to hear it. I'm sure you're not the first person to be bit by this one ... It happened to me just the other day in fact lol
André Biegel, modified 6 Years ago. Junior Member Posts: 31 Join Date: 11/11/13 Recent Posts
If anybody is interested .. i also tried to explore the new configuration api.. https://github.com/andrebiegel/liferay-configuration-api
greets
André