Hi,
I am Facing an issue after deploying a Plugin to VSphere webclient 5.5 which was developed/compile using SDK 5.1 .
plugin is developed using 5.1 SDK and is working fine in Webclient 5.1 however when i am trying to deploy same binaries(service and war) to webclient 5.5 its not displaying icons in object navigator conditionally.
Reffered to sample CHASIS-UI
The list of racks uses a different icon and adds the label "(Empty)" for racks that don't contain any chassis:
Following is code used for development.
<extension id="com.sample.UIv2i.virtualmachine.iconLabelSpecCollection">
<extendedPoint>vise.inventory.representationspecs</extendedPoint>
<object>
<objectType>sample:VirtualMachine</objectType>
<specCollection>
<com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<iconId>#{vm_poweron}</iconId>
<labelId>#{vmLabel}</labelId>
<conditions>
<com.vmware.data.query.PropertyConstraint>
<propertyName>vmState</propertyName>
<comparator>EQUALS</comparator>
<comparableValue>
<String>POWERON</String>
</comparableValue>
</com.vmware.data.query.PropertyConstraint>
</conditions>
</com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<iconId>#{vm}</iconId>
<labelId>#{vmLabel}</labelId>
<conditions>
<com.vmware.data.query.PropertyConstraint>
<propertyName>vmState</propertyName>
<comparator>EQUALS</comparator>
<comparableValue>
<String>POWEROFF</String>
</comparableValue>
</com.vmware.data.query.PropertyConstraint>
</conditions>
</com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<iconId>#{vm_suspended}</iconId>
<labelId>#{vmLabel}</labelId>
<conditions>
<com.vmware.data.query.PropertyConstraint>
<propertyName>vmState</propertyName>
<comparator>EQUALS</comparator>
<comparableValue>
<String>SUSPENDED</String>
</comparableValue>
</com.vmware.data.query.PropertyConstraint>
</conditions>
</com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<iconId>#{vm_deleted}</iconId>
<labelId>#{vmLabel}</labelId>
<conditions>
<com.vmware.data.query.PropertyConstraint>
<propertyName>vmState</propertyName>
<comparator>EQUALS</comparator>
<comparableValue>
<String>DELETED</String>
</comparableValue>
</com.vmware.data.query.PropertyConstraint>
</conditions>
</com.vmware.ui.objectrepresentation.model.IconLabelSpec>
</specCollection>
</object>
</extension>
Also Attached the screen shot of issue.
PLEASE NOTE: The issue is seen only when the Web Client Plugin binaries are build using VSphere Web CLient SDK 5.1 and deployed in VSphere Web Client Server 5.5
The Icons are properly shown in case the Web Client Plugin is Build using VSphereWebClient SDK 5.1 and deployed on VSphere Web Client Server 5.1
Kindly advice.
Thanks ,