1
votes

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

1 Answers

1
votes

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.