-
1. Re: RHQ Plugin simple-property "default" attribute?
arun2arunraj Jul 19, 2013 11:59 PM (in response to mbidewell)Hi Mark,
Mark Bidewell wrote:
How to I set these properties without default?
Pretty simple, Just leave that attribute. That attribute is not mantatory.
Regards,
ArunRaj
-
2. Re: RHQ Plugin simple-property "default" attribute?
mbidewell Jul 20, 2013 9:43 AM (in response to arun2arunraj)Thanks, so the default attribute still works as it does in 3.x?
-
3. Re: RHQ Plugin simple-property "default" attribute?
pilhuhn Jul 21, 2013 2:59 AM (in response to mbidewell)1 of 1 people found this helpfulMark,
yes.
We were thinking of removing it, as having default & defaultValue are pretty confusing and they apply to different scenarios, so they could be unified.
That deprecation marker is in since a looong time (one should use the templates (iirc)), but effectively there are no plans to remove that in the near
future.
-
4. Re: RHQ Plugin simple-property "default" attribute?
mbidewell Jul 21, 2013 4:13 PM (in response to pilhuhn)Pardon my ignorance, but what templates are you referring to? is there a way other than "default" to specify values?
Thanks!
-
5. Re: RHQ Plugin simple-property "default" attribute?
pilhuhn Jul 22, 2013 4:06 AM (in response to mbidewell)Yes, in a <c:template> section -- this can even have more than one deault and the user can choose from them.
the JMX-Plugin is probably the best example - see https://git.fedorahosted.org/cgit/rhq/rhq.git/tree/modules/plugins/jmx/src/main/resources/META-INF/rhq-plugin.xml#n49
If you go to a platform, inventory tab, children subtab, you can at the bottom run "manual import" - select the JMX server and you'll then be presented with a screen to choose from those templates.