Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

Not able to navigate to custom object summaryView created on top of objectViewTemplate summaryViews extension

$
0
0

I have the following entries in the plugin.xml for a custom object using templates.   

 

<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisACategory">
<extendedPoint>vise.navigator.nodespecs</extendedPoint>
<object>
<title>#{chassisAppCategory}</title>
<parentUid>vsphere.core.navigator.virtualInfrastructure</parentUid>
</object>
</extension>
<templateInstanceid="com.dell.pg.spectre.html.WebClientUI.lists.allChassis">
<templateId>vsphere.core.inventorylist.objectCollectionTemplate</templateId>
<variablename="namespace"value="com.dell.pg.spectre.html.WebClientUI.chassisa_collection"/>
<variablename="title"value="#{chassisLabel}"/>
<variablename="icon"value="#{chassis}"/>
<variablename="objectType"value="spectre:DellChassis"/>
<variablename="listViewId"value="com.dell.pg.spectre.html.WebClientUI.chassisa.list"/>
<variablename="parentUid"value="com.dell.pg.spectre.html.WebClientUI.chassisACategory"/>
</templateInstance>
 
<!-- Chassis object view template instance,
which creates the object workspace (right hand side) for Chassis objects.
Variables:
- namespace: The prefix used in extension points and extension Ids.
- objectType: The view's object type, which should be qualified by
its own namespace to avoid collisions, i.e "samples:ChassisA".
-->
<templateInstanceid="com.dell.pg.spectre.html.WebClientUI.chassisa.viewTemplateInstance">
<templateId>vsphere.core.inventory.objectViewTemplate</templateId>
<variablename="namespace"value="com.dell.pg.spectre.html.WebClientUI.chassisa"/>
<variablename="objectType"value="spectre:DellChassis"/>
<!-- remove the Related Objects tab since it is empty -->
<excludedExtension>com.dell.pg.spectre.html.WebClientUI.chassisa.related</excludedExtension>
</templateInstance>
 
<!-- Getting Started view -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisGettingStarted">
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.gettingStartedViews</extendedPoint>
<object>
<name>#{summary.view}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/chassisa/resources/empty.html</url>
</root>
</object>
</componentClass>
</object>
</extension>
 
<!-- Chassis summary view -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.SummaryView">
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.summaryViews</extendedPoint>
<object>
<name>#{summary.view}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/webclienthtml/index.html?view=dellchassis-summary</url>
</root>
</object>
</componentClass>
</object>
</extension>
 
<!-- Chassis monitor views -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.MonitorView1">
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.monitorViews</extendedPoint>
<object>
<name>#{monitor.view1}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/webclienthtml/index.html?view=dellchassis</url>
</root>
</object>
</componentClass>
</object>
</extension>
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.MonitorView2">
<extendedPoint>com.vmware.samples.chassisa.monitorViews</extendedPoint>
<object>
<name>#{monitor.view2}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/webclienthtml/index.html?view=dellchassis</url>
</root>
</object>
</componentClass>
</object>
</extension>
 
<!-- Chassis manage views -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.ManageView1">
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.manageViews</extendedPoint>
<object>
<name>#{manage.view1}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/webclienthtml/index.html?view=dellchassis</url>
</root>
</object>
</componentClass>
</object>
</extension>
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.ManageView2">
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.manageViews</extendedPoint>
<object>
<name>#{manage.view2}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/webclienthtml/index.html?view=dellchassis</url>
</root>
</object>
</componentClass>
</object>
</extension>
 
<!--
Chassis columns, displayed in the Objects tab list.
-->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.list.sampleColumns">
<!-- This extension point is created by objectViewTemplate above -->
<extendedPoint>com.dell.pg.spectre.html.WebClientUI.chassisa.list.columns</extendedPoint>
<object>
<!-- XML representation of com.vmware.ui.lists.ColumnSetContainer -->
<items>
 
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassisname</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<!-- Column header -->
<headerText>#{nameColumn}</headerText>
<!-- Object property whose text value will be displayed (array of 1 element) -->
<requestedProperties>
<String>chassisName</String>
</requestedProperties>
<!-- Use sortProperty to allow column to be sorted with header click -->
<sortProperty>chassisName</sortProperty>
<!-- Use exportProperty to allow column data to be exported -->
<exportProperty>chassisName</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.name</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<!-- Column header -->
<headerText>#{IP}</headerText>
<!-- Object property whose text value will be displayed (array of 1 element) -->
<requestedProperties>
<String>name</String>
</requestedProperties>
<!-- Use sortProperty to allow column to be sorted with header click -->
<sortProperty>name</sortProperty>
<!-- Use exportProperty to allow column data to be exported -->
<exportProperty>name</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
<!-- Chassis serviceTag column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassisservicetag</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<requestedProperties>
<String>chassisServiceTag</String>
</requestedProperties>
<exportProperty>chassisServiceTag</exportProperty>
<headerText>#{svcTagColumn}</headerText>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
<!-- CMC Url column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassiscmcurl</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{cmcUrl}</headerText>
<requestedProperties>
<String>cmcUrl</String>
</requestedProperties>
<exportProperty>cmcUrl</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
 
<!-- Chassis Model column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassismodel</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{modelColumn}</headerText>
<requestedProperties>
<String>chassisModel</String>
</requestedProperties>
<exportProperty>chassisModel</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
 
<!-- Chassis Location column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassislocation</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{locationColumn}</headerText>
<requestedProperties>
<String>chassisLocation</String>
</requestedProperties>
<exportProperty>chassisLocation</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
 
<!-- Chassis Last Inventory column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassislastinventory</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{lastInventoryColumn}</headerText>
<requestedProperties>
<String>chassisLastInventory</String>
</requestedProperties>
<exportProperty>chassisLastInventory</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
<!-- Chassis Free Slots column -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassisfreeslots</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{availableSlots}</headerText>
<requestedProperties>
<String>availableSlots</String>
</requestedProperties>
<exportProperty>availableSlots</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
<!-- Chassis Profile Name -->
<com.vmware.ui.lists.ColumnContainer>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.column.chassisprofilename</uid>
<dataInfo>
<com.vmware.ui.lists.ColumnDataSourceInfo>
<headerText>#{profile.name}</headerText>
 
<requestedProperties>
<String>chassisProfileName</String>
</requestedProperties>
<exportProperty>chassisProfileName</exportProperty>
</com.vmware.ui.lists.ColumnDataSourceInfo>
</dataInfo>
</com.vmware.ui.lists.ColumnContainer>
 
</items>
</object>
</extension>
 
<!-- Chassis Actions -->
 
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.actionSet">
<extendedPoint>vise.actions.sets</extendedPoint>
<object>
<actions>
<!-- Edit Chassis -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.editChassis</uid>
<label>#{chassis.editAction}</label>
<icon>#{editChassis}</icon>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<!-- execute the action on client-side (html view in a modal dialog) -->
<actionUrl>/vsphere-client/chassisa/resources/editChassisAction.html</actionUrl>
<dialogTitle>Title changed at runtime</dialogTitle>
<dialogSize>490,240</dialogSize>
<dialogIcon>#{editChassis}</dialogIcon>
</root></object>
</delegate>
</com.vmware.actionsfw.ActionSpec>
 
<!-- Delete Chassis -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.deleteChassis</uid>
<label>#{chassis.deleteAction}</label>
<icon>#{deleteChassis}</icon>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<!-- actionUrl maps to ActionsControlleron the java side -->
<actionUrl>/vsphere-client/chassisa/rest/actions.html</actionUrl>
</root></object>
</delegate>
</com.vmware.actionsfw.ActionSpec>
 
<!-- Additional actions without implementation, used to show a submenu -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.otherAction</uid>
<label>Other Action</label>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<actionUrl>/vsphere-client/chassisa/rest/actions.html</actionUrl>
</root></object>
</delegate>
</com.vmware.actionsfw.ActionSpec>
 
<com.vmware.actionsfw.ActionSpec>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.otherAction2</uid>
<label>Other Action2</label>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<actionUrl>/vsphere-client/chassisa/rest/actions.html</actionUrl>
</root></object>
</delegate>
</com.vmware.actionsfw.ActionSpec>
 
</actions>
</object>
<metadata>
<!-- This filters the actions to be visible only on Chassis -->
<objectType>spectre:DellChassis</objectType>
</metadata>
</extension>
 
<!-- 'createChassis' list action is defined in a separate extension without any
objectType metadata because it is global. It should not show up in the
chassis object menu as it does not belong to any chassis object. -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.listActionSet">
<extendedPoint>vise.actions.sets</extendedPoint>
<object>
<actions>
<!-- Create Chassis -->
<com.vmware.actionsfw.ActionSpec>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.createChassis</uid>
<label>#{chassis.createAction}</label>
<icon>#{addChassis}</icon>
<delegate>
<className>com.vmware.vsphere.client.htmlbridge.HtmlActionDelegate</className>
<object><root>
<!-- execute the action on client-side (html view in a modal dialog) -->
<actionUrl>/vsphere-client/chassisa/resources/editChassisAction.html</actionUrl>
<dialogTitle>Title changed at runtime</dialogTitle>
<dialogSize>490,240</dialogSize>
<dialogIcon>#{addChassis}</dialogIcon>
</root></object>
</delegate>
<!-- All context-less actions should be marked as private to prevent them
from showing up in all menus.-->
<privateAction>true</privateAction>
</com.vmware.actionsfw.ActionSpec>
</actions>
</object>
</extension>
 
<!--
This solutionMenus extension uses the actions defined above to create the chassis menu,
i.e. menu items are in a specific order, sub-menu and separators can be added.
-->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.menu">
<extendedPoint>vsphere.core.menus.solutionMenus</extendedPoint>
<object>
<!--
No <label> here because it is the main menu, not an extension to an existing menu
The Client adds a default menu title "Actions - {object-name}"
-->
<children>
<Array>
<com.vmware.actionsfw.ActionMenuItemSpec>
<!-- Edit chassis -->
<type>action</type>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.editChassis</uid>
</com.vmware.actionsfw.ActionMenuItemSpec>
 
<com.vmware.actionsfw.ActionMenuItemSpec>
<!-- Remove chassis -->
<type>action</type>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.deleteChassis</uid>
</com.vmware.actionsfw.ActionMenuItemSpec>
 
<com.vmware.actionsfw.ActionMenuItemSpec>
<!-- Add a separator between menus items -->
<type>separator</type>
</com.vmware.actionsfw.ActionMenuItemSpec>
 
<com.vmware.actionsfw.ActionMenuItemSpec>
<!-- sub-menu example -->
<uid>other-actions</uid>
<label>Other actions</label>
<children>
<Array>
<com.vmware.actionsfw.ActionMenuItemSpec>
<type>action</type>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.otherAction</uid>
</com.vmware.actionsfw.ActionMenuItemSpec>
<com.vmware.actionsfw.ActionMenuItemSpec>
<type>action</type>
<uid>com.dell.pg.spectre.html.WebClientUI.chassisa.otherAction2</uid>
</com.vmware.actionsfw.ActionMenuItemSpec>
</Array>
</children>
</com.vmware.actionsfw.ActionMenuItemSpec>
</Array>
</children>
</object>
<metadata>
<objectType>spectre:DellChassis</objectType>
</metadata>
</extension>
 
<!-- UI info associated with the chassis type owned by this plugin.
This is used in conjunction with prioritization extensions, to verify that
only this plugin can modify prioritization settings on chassis. -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.objectType">
<extendedPoint>vsphere.core.objectTypes</extendedPoint>
<object>
<types>
<String>spectre:DellChassis</String>
</types>
<label>#{chassisLabel}</label>
<labelPlural>#{chassisPlural}</labelPlural>
<icon>#{chassis}</icon>
</object>
</extension>
 
<!-- Chassis icon -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassisa.iconLabelSpecCollection">
<extendedPoint>vise.inventory.representationspecs</extendedPoint>
<object>
<objectType>spectre:DellChassis</objectType>
<specCollection>
<com.vmware.ui.objectrepresentation.model.IconLabelSpec>
<iconId>#{chassis}</iconId>
</com.vmware.ui.objectrepresentation.model.IconLabelSpec>
</specCollection>
</object>
</extension>
 
<!-- Global actions in the chassis list, i.e. actions that don't require a
selected object and appear in the toolbar LHS => createChassis here. -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassis.listAction">
<extendedPoint>vmware.prioritization.listActions</extendedPoint>
<object>
<prioritizedIds>
<String>com.vmware.samples.chassisa.createChassis</String>
</prioritizedIds>
<regionId>com.vmware.samples.chassisa.list</regionId>
</object>
</extension>
 
<!-- Host summary sample portlet -->
<extensionid="com.dell.pg.spectre.html.WebClientUI.chassis.hostSummary">
<extendedPoint>vsphere.core.host.summarySectionViews</extendedPoint>
<object>
<name>#{summary.view}</name>
<componentClassclassName="com.vmware.vsphere.client.htmlbridge.HtmlView">
<object>
<root>
<url>/vsphere-client/chassisa/resources/host-portlet.html</url>
<dialogTitle>#{summary.view}</dialogTitle>
<dialogIcon>#{chassis}</dialogIcon>
</root>
</object>
</componentClass>
</object>
</extension>
 
Also attached my error screenshort also ,Please let me know where is the problem in my plugin
 

Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>