How to create and expose ui commands by XSP.executeCommand() in Xpages (IBM 9 Xpinc)?

梦想的初衷 提交于 2019-12-11 14:19:29

问题


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

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

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

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?

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


回答1:


Trying to source some sample code.

But basically your Eclipse plugin needs the following:

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

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

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



来源:https://stackoverflow.com/questions/17920591/how-to-create-and-expose-ui-commands-by-xsp-executecommand-in-xpages-ibm-9-xp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!