It's all about the answers!

Ask a question

Problem with Web UI Presentation extension in RTC


Massimo Caprinali (1636) | asked Nov 15 '10, 11:11 a.m.
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:

<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>


http://img713.imageshack.us/img713/2287/pluging.jpg

FileListAttributePart.js
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



permanent link
Brent Barkman (156) | answered Nov 15 '10, 12:18 p.m.
JAZZ DEVELOPER
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.

permanent link
Massimo Caprinali (1636) | answered Nov 16 '10, 8:59 a.m.
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

permanent link
Brent Barkman (156) | answered Nov 17 '10, 11:36 a.m.
JAZZ DEVELOPER
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.

permanent link
Massimo Caprinali (1636) | answered Nov 17 '10, 12:21 p.m.
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

Your answer


Register or to post your answer.