xpages

xsp.application.timeout and “Object has been removed or recycled”

こ雲淡風輕ζ 提交于 2019-12-08 08:51:10
问题 I've been having a lot of problems with disappearing Java class level Domino objects lately. For example I place a lotus.domino.Session to a (non-static) class level variable and when I try to use it in the next code line I get: NotesException: Object has been removed or recycled I didn't have these problems before I started using managed beans but now I seem to get them all the time with request scoped beans and also in plain Java objects. I've been adding isRecycled() checks to many places

Policy or file to set XPages Perfomance Preoloading and Run On Server

大城市里の小女人 提交于 2019-12-08 08:50:33
问题 Someone know what's the file into Notes Client 9.01 installation where is stored the Section XPages Perfomance that is show under Preferences of client Notes? I have need to set this information to all my client notes? Exist a policy settings or someone know what's the file? Tnx you 回答1: Notes.ini: XPagesPreload=1 XPagesPreloadDB=servername!!path/mydb.nsf/myxpage.xsp,servername!!path/anotherdb.nsf [NotesDataDirectory]/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings: com.ibm

Debug information for javax.net is not written to Domino server console

让人想犯罪 __ 提交于 2019-12-08 07:34:17
问题 In my XPages application, I want to debug a problem related to javax.net . Therefore I set the system property javax.net.debug=all . Unfortunately, the debug information is not written to the Domino server console and I cannot find it in any of the logs on the server. Can anybody tell me how to get that debug output? 回答1: 1) In your Notes.ini, create an entry for an options file, i.e. JavaOptionsFile=C:\IBM\Domino9\MyJavaOptions.txt 2) Create this file and add this line -Djavax.net.debug=all

How do I get the value of nth Edit box in a repeat control?

旧街凉风 提交于 2019-12-08 06:33:32
问题 I have an EditBox control in a repeat control. Its iteration formula is: return 5; It is successfully displaying 4 edit boxes (the starting index is set to 1). In SSJS, how can I get the value of the nth Edit Box? 回答1: You could set a sessionScope variable (or any scope variable) on the onchange event of the edit box and then in your SSJS reference the sessionScope variable. Here is some sample code, the bottom bit just shows your sessionScope variables on the page. <?xml version="1.0"

Assistance locating jar containing Domino/XPages classes

£可爱£侵袭症+ 提交于 2019-12-08 04:09:04
问题 I am working with a java developer who is writing a jar that needs to use multi-threading. We discovered today that Domino is managing the way that it uses threads using the NotesThread class. He is in the process of changing his code to do it the "domino" way. The traditional java 1.6 way is not going to work. He is asking me for the jar that contain the following classes so he can build his solution. Can someone point me to what jar contains these classes. com.ibm.domino.xsp.module.nsf

How do you get the filename from the XPages FileUpload Control

放肆的年华 提交于 2019-12-08 03:30:04
问题 In XPages, in the file upload control, after a user selects a file but before it's saved how can you get the filename? I'm not interested in the path as I believe that's not getable due to security issues but I would like to get the filename and extension if at all possible. Thanks! 回答1: Actually you can get the file and fully manipulate it, read it, do whatever you want with it, its stored in the xsp folder on the server, to which you have read/write access... here is a code snippet that

Submit search on ENTER not working in IE

前提是你 提交于 2019-12-08 03:06:07
问题 to perform a fulltext search users want to simply enter their query into a simple inputText. Then as soon as they hit ENTER the search itself should kick in. Currently we tried to solve it like this: the inputText is bound to a sessionScope variable myQuery the input also has an OpenPage action bound to its onchange event the page that is to be opened contains a viewPanel with a search filter bound to our sessionScope variable, as well as some more FT filtering fields. This works fine in

How to stop a user from opening a new browser session in XPages

梦想的初衷 提交于 2019-12-08 02:13:33
问题 I have a front end document locking process that creates an Application Scope variable with the UNID/Username/time in it, then a timer that updates this information every 30 seconds. If someone tries opening the document to edit I check (using the UNID) to see if anyone else has the document. If the time is greater than 30 seconds I cancel the lock and allow the new user to open it. I have considered do something similar with a database 'lock' which is pretty simple but I need a unique

How do I delete selected documents in a XPage Dynamic View Panel

ε祈祈猫儿з 提交于 2019-12-08 01:55:03
问题 I created a Dynamic View Panel. I have check boxes on. I have called this "dynamicViewPanel1" and I have set the Data Source name to "dViewData" So far so good, everything works fine. Now I created a button called "Delete" and set it to a simple action of delete selected documents and set the view control to "dViewData". When I select one or more documents and click delete I get the following error. javax.faces.FacesException: Unable to find target view control dViewData. I take it because

Call a class of a jar from SSJS xPages

。_饼干妹妹 提交于 2019-12-08 01:36:33
问题 I would like to ask a question about using Java classes in SSJS (Server Side JavaScript) on xPages. I created a simple Java class "HelloWorld" and exported it to a jar file. Then I tried to call it from SSJS on an xPage but with no success. These are some things that I tried: Added the jar to the build path of the .nsf (both jar and nsf were local) Added the jar to WEB_INF/lib folder of the nsf. Called the class of the jar directly from SSJS as var a = new com.myself.testJava.HelloWorld();