Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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:

<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

0 votes



4 answers

Permanent link
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.

0 votes


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

0 votes


Permanent link
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.

0 votes


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

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,986

Question asked: Nov 15 '10, 11:11 a.m.

Question was seen: 6,699 times

Last updated: Nov 15 '10, 11:11 a.m.

Confirmation Cancel Confirm