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

HTML5 Client SDK - Trouble getting an extension point to appear in Object Navigator

$
0
0

Hi,

 

I'm having trouble getting an extension point for the category id vsphere.core.navigator.solutionsCategory for Object Navigator Extension to appear using the HTML5 Client Fling SDK. (Screenshots provided below)

I have the same plugin loaded for the HTML Bridge for vSphere and it works fine.

Also, I did change the dependencies for HTML5 Client SDK (mentioned in the Getting Started pdf) when migrating from HTML Bridge.

 

Here is the structure in the plugin.xml file:

 


 ......

 <!-- Add link to the Object Navigator -->   <extension id="com.mycompany.testpluginui.sideLink">      <extendedPoint>vise.navigator.nodespecs</extendedPoint>      <object>         <title>My test plugin</title>         <parentUid>vsphere.core.navigator.solutionsCategory</parentUid>         <navigationTargetUid>com.mycompany.testpluginui.mainView</navigationTargetUid>         <viewOpenedUponFocus className="com.vmware.ui.objectnavigator.views.CategoryNodeTreeView" />      </object>   </extension>    <!-- Page 2 -->   <extension id="com.mycompany.testpluginui.pageTwo">      <extendedPoint>vise.navigator.nodespecs</extendedPoint>      <object>         <title>Page 2</title>         <navigationTargetUid>com.mycompany.testpluginui.mainView</navigationTargetUid>         <parentUid>com.mycompany.testpluginui.sideLink</parentUid>      </object>   </extension>  <!-- Page 3 -->   <extension id="com.mycompany.testpluginui.pageThree">      <extendedPoint>vise.navigator.nodespecs</extendedPoint>      <object>         <title>Page 3</title>         <navigationTargetUid>com.mycompany.testpluginui.mainView</navigationTargetUid>         <parentUid>com.mycompany.testpluginui.sideLink</parentUid>      </object>   </extension>   <!-- Main view -->   <extension id="com.mycompany.testpluginui.mainView">      <extendedPoint>vise.global.views</extendedPoint>      <object>         <name>#{app.name}</name>         <componentClass className="com.vmware.vsphere.client.htmlbridge.HtmlView">            <object>               <root>                  <url>/vsphere-client/testpluginui/resources/mainView.html</url>               </root>            </object>         </componentClass>      </object>   </extension>
......

......

 

The first screenshot is from HTML Bridge, and the extension point is visible from the Object navigator and works when is clicked.

The second screenshot is from HTML5 Fling and doesn't show the extension point.

html-bridge-screenshot.png

html-fling.png

 

I have tried other Category IDs listed here, such as vsphere.core.navigator.virtualInfrastructure and vsphere.core.navigator.administration, and they both work

fine for the HTML5 Client but they do not display the view I'm looking for.

 

I also tried modifying the sample plugins (ChassisA,B, Global App) plugin.xml files but to no avail.

From the Virgo logs there's this snippet from: vsphere-ui/server/serviceability/logs/osgi.log

 

[2016-08-17T13:07:25.156-07:00] [DEBUG] http-bio-9443-exec-18        70000203 100002 200001 o.s.w.servlet.mvc.method.annotation.RequestMappingHandlerMapping  Looking up handler method for path /resources/ui/views/objectnavigator/CategoryNodeTreeView.html
[2016-08-17T13:07:25.157-07:00] [DEBUG] http-bio-9443-exec-18        70000203 100002 200001 o.s.w.servlet.mvc.method.annotation.RequestMappingHandlerMapping  Did not find handler method for [/resources/ui/views/objectnavigator/CategoryNodeTreeView.html]
[2016-08-17T13:07:25.157-07:00] [DEBUG] http-bio-9443-exec-18        70000203 100002 200001 o.s.w.servlet.mvc.method.annotation.RequestMappingHandlerMapping  Looking up handler method for path /resources/ui/views/objectnavigator/CategoryNodeTreeView.html
[2016-08-17T13:07:25.158-07:00] [DEBUG] http-bio-9443-exec-18        70000203 100002 200001 o.s.w.servlet.mvc.method.annotation.RequestMappingHandlerMapping  Did not find handler method for [/resources/ui/views/objectnavigator/CategoryNodeTreeView.html]
[2016-08-17T13:07:25.158-07:00] [DEBUG] http-bio-9443-exec-18        70000203 100002 200001 org.springframework.web.servlet.handler.SimpleUrlHandlerMapping   Matching patterns for request [/resources/ui/views/objectnavigator/CategoryNodeTreeView.html] are [/resources/**]

 

Running: vSphere Client version 6.5.0 build 4231781


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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