Problem Statement:
we are working on a vsphere webclient plugin running in both flex and HTML client. Developed using webclient SDK 6.7 .
While testing we found actions [Right Click] are not visible on any custom objects datagrid in HTML-Client only. Where as same actions are visible on Flex client and working as expected.
In my ModelObject we defined scheme as 'XXX'.
Code Snip:
public abstract class ModelObject implements Serializable {
private static final long serialVersionUID = 1L;
public static final String SCHEME = "xxx";
public static final String NAMESPACE = "xxxxUI";
public static final char URI_SEPARATOR = ':';
public static final char FRAGMENT_SEPARATOR = '/';
public static final String UID_PREFIX = SCHEME + URI_SEPARATOR + NAMESPACE;
We found a Solution:
After looking into some sample codes we found that in ModelObject we need to modify SCHEME = “urn:XXX”, whereas urn: is a prefix. Post these changes actions are visible on HTML-Client.
We want to ensure that above approch is valid and doesn't fall into further regression as we are not able to find any documentation from VMware for the namespace convention.
Should ModelObject namespace maintain XXX:XXX format?
Hi,
We have not stated this explicitly in the documentation but the "urn" is a required prefix for custom objects.
For more information and an example, you can take a look at the ChassisB sample from 6.5U1 SDK.
Thank you for your feedback! We will make sure to update the documentation.
Best Regards,
Denis