如何在 Xpages (IBM 9 Xpinc) 中通过 XSP.executeCommand() 创建和公开 ui 命令? [英] How to create and expose ui commands by XSP.executeCommand() in Xpages (IBM 9 Xpinc)?

查看:22
本文介绍了如何在 Xpages (IBM 9 Xpinc) 中通过 XSP.executeCommand() 创建和公开 ui 命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 XPage(xpinc) IBM 9 中创建和公开 UI 命令,但不确定从哪里开始.

I am trying to create and expose UI command in XPages(xpinc) IBM 9 but unsure of where to start.

IBM 9 中有一个新特性可以将客户端 JavaScript 连接到 Java 类从客户端使用 XSP.executeCommand()

There is new feature is avialable in IBM 9 to connect ClientSide JavaScript to Java classes using XSP.executeCommand() from client side

似乎我们可以使用这个概念来公开 UI 命令,例如使用以下内容更新 Notes 状态栏用户消息、向 Notes 工作区添加图标等

seems we can expose UI commands using this concept such as Update the Notes status bar with a user message, add an icon to the Notes workspace, etc

该概念在 IBM 9 特性介绍中进行了描述.请参阅以下链接(第 37 和 38 页)(http://www.tlcc.com/admin/tlccsite.nsf/files/Whats_New_11-14-2012-sm.pdf/$FILE/Whats_New_11-14-2012-sm.pdf)

The concept is descriped in IBM 9 feature presenation. Refer the below link(page No 37 & 38) (http://www.tlcc.com/admin/tlccsite.nsf/files/Whats_New_11-14-2012-sm.pdf/$FILE/Whats_New_11-14-2012-sm.pdf)

谁能告诉我创建示例的简单方法吗?

Can anyone show me easy way to create a sample?

我必须在哪里编写我的 Java 代码以及如何从客户端链接?

Where do i have to write my java code and how do I link from client side?

推荐答案

尝试获取一些示例代码.

Trying to source some sample code.

但基本上你的 Eclipse 插件需要以下内容:

But basically your Eclipse plugin needs the following:

Extension point: com.ibm.xsp.rcp.ExtendedCommands
Implements:      IExtendedCommands

然后您应该可以使用 XSP.ExecuteCommand() 方法调用它.

Then you should be able to call it with the XSP.ExecuteCommand() method.

有关 NotesUIWorkspace API 的示例,您可以查看 OpenNTF 上的 Java UI API 练习器.

For examples on the NotesUIWorkspace API you can check out the Java UI API Exerciser on OpenNTF.

这篇关于如何在 Xpages (IBM 9 Xpinc) 中通过 XSP.executeCommand() 创建和公开 ui 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆