Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: @ExtendedObjectClassDefinition configuration page not available
Hi all,
I have a simple configuration class with some properties
Thanks in advance.
Liferay Community Edition Portal 7.1.2 CE GA3 (Judson / Build 7102 / January 7, 2019)
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)
Hi Gianluca,
Did you make sure to add the this line to you bnd?
.. 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.
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
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
It works.
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
If anybody is interested .. i also tried to explore the new configuration api.. https://github.com/andrebiegel/liferay-configuration-api
greets
André
greets
André