Hi:
Here is the resource configuration definition:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value"/> </c:map-property> </c:list-property>
Below is the result I respect:
Name Value Name_1 Value_1[Read Only] // this is read only Name_2 ******* // this is confidential Name_3 Value_3 // this is normal configuration
The value of the 'Name_1' needs to be read only, and the value of the 'Name_2' needs to be in password type. Do you have any idea on that?
The point is that: the read only and password type are pre-defined in the rhq-plugin.xml file, but the real data is dynamic, some of the values are read only, some of the values are not.
Try the readOnly="true" and type="password" attributes.
Use the rhq-plugin.xsd/rhq-configuration.xsd schemas to help you write the plugin descriptors - if you import them into your XML editor, the XML editor (a good one anyway :) would provide you with auto-completion and help that should assist in discovering these types of features and syntax. Our schemas have schema annotations with help text documentation.
They are here:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/core/client-...
On 02/10/2011 12:04 AM, Lin Gao wrote:
Hi:
Here is the resource configuration definition:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value"/> </c:map-property> </c:list-property>
Below is the result I respect:
Name Value Name_1 Value_1[Read Only] // this is read only Name_2 ******* // this is confidential Name_3 Value_3 // this is normal configuration
The value of the 'Name_1' needs to be read only, and the value of the 'Name_2' needs to be in password type. Do you have any idea on that?
The point is that: the read only and password type are pre-defined in the rhq-plugin.xml file, but the real data is dynamic, some of the values are read only, some of the values are not.
Hi:
Sorry, I think I did not make myself clear to you.
I know the attributes of: readOnly="true" and the type="password".
The point is:
The attributes of:
readOnly="true" and the type="password"
are pre-defined in the rhq-plugin.xml, like:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value" readOnly="true"/> </c:map-property> </c:list-property>
but actually, there are 2 PropertyMap instances in this PropertyList. For example:
PropertyMap map1 = new PropertyMap("config-property"); map1.put(new PropertySimple("name","Name_1")); map1.put(new PropertySimple("value","Value_1")); // This PropertySimple needs to be writable.
PropertyMap map2 = new PropertyMap("config-property"); map2.put(new PropertySimple("name","Name_2")); map2.put(new PropertySimple("value","Value_2")); // This PropertySimple needs to be read only.
Because we defined the simple-property of the 'value' to read only, which means all 'value' PropertySimple instances in the above PropertyMaps are read only. But I need one of them is writable, the other is read only.
The same with the type="password".
Do you have any idea?
On 02/10/2011 09:19 PM, John Mazzitelli wrote:
Try the readOnly="true" and type="password" attributes.
Use the rhq-plugin.xsd/rhq-configuration.xsd schemas to help you write the plugin descriptors - if you import them into your XML editor, the XML editor (a good one anyway :) would provide you with auto-completion and help that should assist in discovering these types of features and syntax. Our schemas have schema annotations with help text documentation.
They are here:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/core/client-...
On 02/10/2011 12:04 AM, Lin Gao wrote:
Hi:
Here is the resource configuration definition:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value"/> </c:map-property> </c:list-property>
Below is the result I respect:
Name Value Name_1 Value_1[Read Only] // this is read only Name_2 ******* // this is confidential Name_3 Value_3 // this is normal configuration
The value of the 'Name_1' needs to be read only, and the value of the 'Name_2' needs to be in password type. Do you have any idea on that?
The point is that: the read only and password type are pre-defined in the rhq-plugin.xml file, but the real data is dynamic, some of the values are read only, some of the values are not.
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
That is not possible. If your metadata says a property is read-only, ALL values of that property are read-only (same with password and all other types).
You only option would be to define two properties, each with a different type:
<c:simple-property name="readOnlyValue" required="false" readOnly="true"/> <c:simple-property name="readWriteValue" required="false" readOnly="false"/>
Note that "required=false" because you will only set one of them - the other will be left unset.
On 02/11/2011 12:28 AM, Lin Gao wrote:
Hi:
Sorry, I think I did not make myself clear to you.
I know the attributes of: readOnly="true" and the type="password".
The point is:
The attributes of:
readOnly="true" and the type="password"
are pre-defined in the rhq-plugin.xml, like:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value" readOnly="true"/> </c:map-property> </c:list-property>
but actually, there are 2 PropertyMap instances in this PropertyList. For example:
PropertyMap map1 = new PropertyMap("config-property"); map1.put(new PropertySimple("name","Name_1")); map1.put(new PropertySimple("value","Value_1")); // This PropertySimple needs to be writable.
PropertyMap map2 = new PropertyMap("config-property"); map2.put(new PropertySimple("name","Name_2")); map2.put(new PropertySimple("value","Value_2")); // This PropertySimple needs to be read only.
Because we defined the simple-property of the 'value' to read only, which means all 'value' PropertySimple instances in the above PropertyMaps are read only. But I need one of them is writable, the other is read only.
The same with the type="password".
Do you have any idea?
On 02/10/2011 09:19 PM, John Mazzitelli wrote:
Try the readOnly="true" and type="password" attributes.
Use the rhq-plugin.xsd/rhq-configuration.xsd schemas to help you write the plugin descriptors - if you import them into your XML editor, the XML editor (a good one anyway :) would provide you with auto-completion and help that should assist in discovering these types of features and syntax. Our schemas have schema annotations with help text documentation.
They are here:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/core/client-...
On 02/10/2011 12:04 AM, Lin Gao wrote:
Hi:
Here is the resource configuration definition:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value"/> </c:map-property> </c:list-property>
Below is the result I respect:
Name Value Name_1 Value_1[Read Only] // this is read only Name_2 ******* // this is confidential Name_3 Value_3 // this is normal configuration
The value of the 'Name_1' needs to be read only, and the value of the 'Name_2' needs to be in password type. Do you have any idea on that?
The point is that: the read only and password type are pre-defined in the rhq-plugin.xml file, but the real data is dynamic, some of the values are read only, some of the values are not.
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
Hi:
Can we make the RHQ 4 to support this:
Some attributes in the Property of the Configuration can override what the UI rendering/operations defined in the PropertyDefinition?
Where can I open a feature proposal for RHQ 4?
On 02/11/2011 09:41 PM, John Mazzitelli wrote:
That is not possible. If your metadata says a property is read-only, ALL values of that property are read-only (same with password and all other types).
You only option would be to define two properties, each with a different type:
<c:simple-property name="readOnlyValue" required="false" readOnly="true"/> <c:simple-property name="readWriteValue" required="false" readOnly="false"/>
Note that "required=false" because you will only set one of them - the other will be left unset.
On 02/11/2011 12:28 AM, Lin Gao wrote:
Hi:
Sorry, I think I did not make myself clear to you.
I know the attributes of: readOnly="true" and the type="password".
The point is:
The attributes of:
readOnly="true" and the type="password"
are pre-defined in the rhq-plugin.xml, like:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value" readOnly="true"/> </c:map-property> </c:list-property>
but actually, there are 2 PropertyMap instances in this PropertyList. For example:
PropertyMap map1 = new PropertyMap("config-property"); map1.put(new PropertySimple("name","Name_1")); map1.put(new PropertySimple("value","Value_1")); // This PropertySimple needs to be writable.
PropertyMap map2 = new PropertyMap("config-property"); map2.put(new PropertySimple("name","Name_2")); map2.put(new PropertySimple("value","Value_2")); // This PropertySimple needs to be read only.
Because we defined the simple-property of the 'value' to read only, which means all 'value' PropertySimple instances in the above PropertyMaps are read only. But I need one of them is writable, the other is read only.
The same with the type="password".
Do you have any idea?
On 02/10/2011 09:19 PM, John Mazzitelli wrote:
Try the readOnly="true" and type="password" attributes.
Use the rhq-plugin.xsd/rhq-configuration.xsd schemas to help you write the plugin descriptors - if you import them into your XML editor, the XML editor (a good one anyway :) would provide you with auto-completion and help that should assist in discovering these types of features and syntax. Our schemas have schema annotations with help text documentation.
They are here:
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=tree;f=modules/core/client-...
On 02/10/2011 12:04 AM, Lin Gao wrote:
Hi:
Here is the resource configuration definition:
<c:list-property name="config-property"> <c:map-property name="config-property"> <c:simple-property name="name"/> <c:simple-property name="value"/> </c:map-property> </c:list-property>
Below is the result I respect:
Name Value Name_1 Value_1[Read Only] // this is read only Name_2 ******* // this is confidential Name_3 Value_3 // this is normal configuration
The value of the 'Name_1' needs to be read only, and the value of the 'Name_2' needs to be in password type. Do you have any idea on that?
The point is that: the read only and password type are pre-defined in the rhq-plugin.xml file, but the real data is dynamic, some of the values are read only, some of the values are not.
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users mailing list rhq-users@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/rhq-users
rhq-users@lists.stg.fedorahosted.org