2015年6月1日 星期一

Calling CSJS from within SSJS in XPages

xe:dialog control. You can show and hide that dialog using SSJS.

Here are the SSJS and CSJS commands to show/hide the dialog:
SSJS:
var comp = getComponent("serverSideId");
//To Open the dialog
comp.show();
//To close the dialog
comp.hide();
CSJS
//To Open the dialog
XSP.openDialog("#{id:serverSideId}");
//To close the dialog
XSP.closeDialog("#{id:serverSideId}");
And just for fun, SSJS that executes CSJS:
//To Open the dialog
facesContext.getViewRoot().postScript("XSP.openDialog('#{id:serverSideId}')");
//To Close the dialog
facesContext.getViewRoot().postScript("XSP.closeDialog('#{id:serverSideId}')");
 
資料來源:stackoverflow 

2015年4月30日 星期四

轉帖-安裝Notes 9.0.1 FP3時提示版本不匹配

在运行901FP3安装程序时,先解压到指定路径,如:C:\901FP3
然后修改deploy\hotfix\fix.ini中的ForVersion参数,
将初始值=20131022.0932
改为 =20131015.0605
保存并关闭。

再运行c:\901FP3\setup.exe 即可顺利安装。 

轉自安装Notes 9.0.1 FP3时提示版本不匹配




可以解決IBM Notes 9.0.1 java 處理上的一些問題

Edit your jvm.properties file
Open the {Notes}/framework/rcp/deploy/jvm.properties file in a text editor and add the following lines:
 
vmarg.Djmxremoteport=-Dcom.sun.management.jmxremote.port=8123
vmarg.Djmxremotessl=-Dcom.sun.management.jmxremote.ssl=false
vmarg.Djmxremoteauth=-Dcom.sun.management.jmxremote.authenticate=false
 
The first line tells the Notes client JVM to listen on port 8123 for JMX clients like JConsole (feel free to use a different port if you’d like). 
 
The second line tells it not to use SSL for the connection (which it would do by default).
 
 And the third line tells it not to require a username and password for the connection.