Welcome to the Jazz Community Forum
Problem with Web UI Presentation extension in RTC

I have a problem with web UI extension in RTC.
I read this article on jazz.net (https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentations)
but there's no mention about how to deploy web UI attribute part.
I created this plugin:
http://img713.imageshack.us/img713/2287/pluging.jpg
FileListAttributePart.js
and in the process configuration, I've specified
Eclipse Presentation works perfectly but Web UI presentation doesn't works.
The error is: "-- missing widget com.ibm.team.extension.isp.server.ui.internal.view.editor.parts.FileListAttributePart"
What should I do to deploy javascript?
I've tried also uploading js via Process Links Attachment section without success.
Any suggestion?
Thank you
I read this article on jazz.net (https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentations)
but there's no mention about how to deploy web UI attribute part.
I created this plugin:
<plugin>
<extension
point="com.ibm.team.workitem.service.editorPresentations">
<editorPresentation
id="com.ibm.team.workitem.kind.filelist"
needsAttribute="true"
widget="com.ibm.team.extension.isp.server.ui.internal.view.editor.parts.FileListAttributePart">
</editorPresentation>
</extension>
</plugin>
dojo.provide("com.ibm.team.extension.isp.server.ui.internal.view.editor.parts.FileListAttributePart");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
[...]
(function() {
[...]
dojo.declare(
"com.ibm.team.extension.isp.server.ui.internal.view.editor.parts.FileListAttributePart",
[dijit._Widget, dijit._Templated],
{
[...]
})();
and in the process configuration, I've specified
<presentation attributeId="objects" kind="com.ibm.team.workitem.kind.filelist"/>
Eclipse Presentation works perfectly but Web UI presentation doesn't works.
The error is: "-- missing widget com.ibm.team.extension.isp.server.ui.internal.view.editor.parts.FileListAttributePart"
What should I do to deploy javascript?
I've tried also uploading js via Process Links Attachment section without success.
Any suggestion?
Thank you
4 answers

Hi Massimo,
Your javascript needs to be contributed to the server either in an update site for a server running in tomcat or included as part of the launch if you're running an embedded jetty server in your eclipse.
Depending on how you got to the article, it isn't clear at all that this is necessary, I will update the article. This article is linked to in our SDK which includes instructions on how to do this here:
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup
Let me know if that helps.
Your javascript needs to be contributed to the server either in an update site for a server running in tomcat or included as part of the launch if you're running an embedded jetty server in your eclipse.
Depending on how you got to the article, it isn't clear at all that this is necessary, I will update the article. This article is linked to in our SDK which includes instructions on how to do this here:
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup
Let me know if that helps.

Hi Massimo,
Your javascript needs to be contributed to the server either in an update site for a server running in tomcat or included as part of the launch if you're running an embedded jetty server in your eclipse.
Depending on how you got to the article, it isn't clear at all that this is necessary, I will update the article. This article is linked to in our SDK which includes instructions on how to do this here:
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup
Let me know if that helps.
Yes, I have already created an update site.
In OSGi console, bundle appears started.
id State Bundle
202 ACTIVE com.ibm.team.extension.isp.server_1.0.1
203 ACTIVE com.ibm.team.extension.isp_1.0.4

Sorry for the slow reply, but I was able to recreate your problem, what solved it (with much help from Larry Smith) is you need to add
to your plugin.xml which will mark the plugin as a web component and the javascript will get picked up when the server starts.
Hope that helps.
<extension point="net.jazz.ajax.webBundles">
<prerequisites>
<requiredWebBundle id="net.jazz.ajax"/>
</prerequisites>
</extension>
to your plugin.xml which will mark the plugin as a web component and the javascript will get picked up when the server starts.
Hope that helps.

Sorry for the slow reply, but I was able to recreate your problem, what solved it (with much help from Larry Smith) is you need to add
<extension point="net.jazz.ajax.webBundles">
<prerequisites>
<requiredWebBundle id="net.jazz.ajax"/>
</prerequisites>
</extension>
to your plugin.xml which will mark the plugin as a web component and the javascript will get picked up when the server starts.
Hope that helps.
Thank you. That was the problem.
Now it works perfectly
Best Regards
Massimo