xpages

XPages date only fieldonly

ぃ、小莉子 提交于 2019-12-18 09:04:24
问题 Is it possible to create a date only field in XPages? I have tried the following in the querySaveDocument event but the field still ends up with a time portion of 00:00:00 var notesDoc:NotesDocument = document1.getDocument(); var dt:NotesDateTime = session.createDateTime(@Today()); dt.setAnyTime(); notesDoc.replaceItemValue("MyDateField", dt); 回答1: Here is code by Sven: ndt = session.createDateTime(ndt.getDateOnly()); item.setDateTimeValue(ndt); error in date items, daylight Saving Update: I

Xpages - Get number of active sessions (Lotus Domino 8.5.2)

穿精又带淫゛_ 提交于 2019-12-18 09:04:18
问题 How do I get the number of active sessions in Xpage. I'm trying to use managed beans but it just returns a weird string. Here's the simple code: import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSessionListener; public class SessionCounterListener implements HttpSessionListener { private static int totalActiveSessions; public static int getTotalActiveSessions(){ return totalActiveSessions; } public void sessionCreated(HttpSessionEvent arg0) { totalActiveSessions++;

Xpages HTTP Web Server: Command Not Handled Exception HTTP Code: 500

≯℡__Kan透↙ 提交于 2019-12-18 07:23:15
问题 Problem I have an Xpage working properly on the test Domino server. On production Domino server it can not be opened, Http 500 error displayed. The two servers has different access control settings in the server document, but the signer of the application (production server) is listed in all programmability restrictions field except "Sign script libraries to run on behalf of someone else" field. Server log [25A4:0014-1604] 2012.11.07 14:06:30 HTTP JVM: SEVERE: CLFAD0141E: Error processing

Xpages Date Time Picker field defaults to today's date

心已入冬 提交于 2019-12-18 07:05:13
问题 Running a ND9 server and when browsing a Xpage with a date field, the default value for this field is always today's date. On a 8.5.3 server the control is rendered like this: <input class="dijitReset dijitInputInner" dojoattachpoint="textbox,focusNode" autocomplete="off" type="text" aria-valuenow="undefined" aria-invalid="false" id="view:_id1:_id2:main:fromTDate" tabindex="0" value=""> <input style="display: none;" type="text" name="view:_id1:_id2:main:fromTDate"> On a ND9 server the same

Unable to get document page name for

流过昼夜 提交于 2019-12-18 07:05:06
问题 I have a view that has XPage Associated with document form set. The form property has the xpage associated with the document. If I click on the link in the view the proper correct xpage is displayed as expected. But if I close the browser, and paste the URL to the document into the browser, I get the error, Unable to get document page name for (and the unid). As long as I remain logged in the url will work without error or if I set anonymous to Reader the url will continue to work. But if I

Pass javascript code to Custom Control

喜夏-厌秋 提交于 2019-12-18 05:23:11
问题 I need to pass javascript code (server-side and client-side) to a custom control which should then get executed on click on button inside the custom control. For this I created a property in custom control, say codessjs , with type javax.faces.el.MethodBinding and editor as Method Binding Editor. On the click of button (inside custom control) I wrote code like this: compositeData.codessjs.invoke(facesContext, null) But it throws me an error 'compositeData.codessjs' is null despite the code

Xpages @PreDestroy

空扰寡人 提交于 2019-12-18 05:18:04
问题 Summary: does anyone know how to get @PreDestroy to get triggered on recycling\ timeout of an Application Scope managed bean? I posted a question a couple of weeks ago about "scheduled agents": 30 sec periodic task to poll external web service and cache data ...which I implemented successfully so far using a Thread (at present went with this method as all the logic contained within the design of the database), I can start\ cancel\ pause\ restart the Thread successfully from my Application

Xpages can't load, Error 500; java.util cannot be resolved

你离开我真会死。 提交于 2019-12-18 05:13:26
问题 I recently moved a couple of applications to a server that is running Domino 9.0.1FP8 (JVM version: JRE 1.8.0 Windows Server 2008 R2 amd64-64). Since I did this I've been unable to load any, but the most basic of Xpages. I get the "Error 500 HTTP Web Server: Command Not Handled Exception" page. Via the ...IBM\Domino\data\IBM_TECHNICAL_SUPPORT\xpages_exec I get Exceptions such as: The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files The type

comboBox generates a table instead of span in readmode web

China☆狼群 提交于 2019-12-18 05:02:06
问题 When viewing a Xpage on the web containing a table with a comboBox in a column the html generated by Domino creates a table for the combobox but a span for other components (tested currently on textFields and computedFields) . This is then rendered with a pixel of vertical alignment difference that annoys me. How can I overcome this? <table> <tbody> <tr> <td colspan="3"> <table id="view:_id1:_id2:_id3:legend1:callbackFieldControlSet:CounterpartyName"> <tbody> <tr> <td> AVANZA SWEDEN </td> <

comboBox generates a table instead of span in readmode web

我与影子孤独终老i 提交于 2019-12-18 05:01:05
问题 When viewing a Xpage on the web containing a table with a comboBox in a column the html generated by Domino creates a table for the combobox but a span for other components (tested currently on textFields and computedFields) . This is then rendered with a pixel of vertical alignment difference that annoys me. How can I overcome this? <table> <tbody> <tr> <td colspan="3"> <table id="view:_id1:_id2:_id3:legend1:callbackFieldControlSet:CounterpartyName"> <tbody> <tr> <td> AVANZA SWEDEN </td> <