It's all about the answers!

Ask a question

Viewlet and Java


m sawires (1462268) | asked Nov 11 '09, 5:17 p.m.
Hello,
Viewlets contribution as far as I can see are done via Dojo and Javascript using the extension point "com.ibm.team.dashboard.common.viewlets".
Is it possible to invoke a Java class from a Viewlet for instance?
Thank you

2 answers



permanent link
Mike Pawlowski (6861) | answered Nov 12 '09, 11:22 a.m.
JAZZ DEVELOPER
Hi Marly,

A client-side JavaScript viewlet can invoke server-side Java code via REST service calls (AJAX). A viewlet developer can write their own custom REST services in Java using facilities provided by the Foundation.

Please refer to the following documents for more details and tutorials:

https://jazz.net/wiki/bin/view/Main/ViewletAuthoring
https://jazz.net/wiki/bin/view/Main/ViewletServices
https://jazz.net/wiki/bin/view/Main/DashboardHelloWorldViewlet

HTH,

permanent link
m sawires (1462268) | answered Nov 12 '09, 2:38 p.m.
Thanks that helps.

Hi Marly,

A client-side JavaScript viewlet can invoke server-side Java code via REST service calls (AJAX). A viewlet developer can write their own custom REST services in Java using facilities provided by the Foundation.

Please refer to the following documents for more details and tutorials:

https://jazz.net/wiki/bin/view/Main/ViewletAuthoring
https://jazz.net/wiki/bin/view/Main/ViewletServices
https://jazz.net/wiki/bin/view/Main/DashboardHelloWorldViewlet

HTH,

Your answer


Register or to post your answer.