xpages

Are JAR files in WebContent/WEB-INF/lib available to Java design elements in Domino Designer?

故事扮演 提交于 2019-12-17 20:37:28
问题 When using Domino Designer 8.5.3, I have a bunch of custom classes added using the Java design element. I want to use a 3rd party JAR in my custom classes in the same way you would when using external JARs in xPages SSJS, via Package Explorer: WebContent-->WEB-INF-->lib However my custom classes aren't picking the JAR up. Is this a known limitation or have I got my configuration screwed up somewhere? 回答1: They are after you do: Project -> Properties -> Java Build Path -> Libraries -> Add JARS

loading a javascript library and not getting an object returned

天涯浪子 提交于 2019-12-17 20:28:44
问题 I am trying to load a javascript library in XPages. Normally in HTML the reference looks as followed: <html> <head> <script src="https://hammerjs.github.io/dist/hammer.js"></script> </head> <body> </body> </html> which gives me a Hammer object in the DOM which I can work further with. In XPages I have made the following setup: <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" disableTheme="true" dojoForm="false" dojoTheme="false" dojoParseOnLoad="false"

Dynamic binding within a repeat control

大憨熊 提交于 2019-12-17 19:52:34
问题 In a purchase order module, we need to ask certain questions depending on the source selection method, competition type and total cost of the PO. These questions are likely to change over time and in between different instances of the database. So I have a view containing the questions, so that I can add questions dynamically to my XPage without needing to change the code. The answer to each question will be stored in a field. So, the document that contains the question has a field called

How to set up a managed bean to work with Notes document

我怕爱的太早我们不能终老 提交于 2019-12-17 19:46:39
问题 I would like to set up a managed bean that manages a Notes document in Notes view where I store application preferences in (e.g. path on server to store attachments, application title, which logo to display etc) Has anyone an example for such a bean and how I should use it? Current I load a SSJS library an place everything in application scope or session scope variables. 回答1: Here is a simple example for such a managed bean. First create a Java class. I called it "Config". It reads the first

How to upload and save an attachment via XPages Java Bean

馋奶兔 提交于 2019-12-17 18:29:53
问题 I get how you can use Expression Language to bind XPages controls to a Java Bean. Then it accesses the setters and getters automatically. But how do you handle a file attachment? What does that look like? I'd like to be able to I guess bind the file upload control to the bean. Save the attachment to "whatever" doc... whether it's the current or external document.. the bean should be able to handle that logic. I guess I don't know how to get that file attachment into the in memory bean to be

Can I have the extlib name picker running in xPINC lookup the directory on the server?

£可爱£侵袭症+ 提交于 2019-12-17 17:11:47
问题 Is it possible to use the name picker in the extlib in an xPINC app, to pick from the server side address book? Currently running in the browser I am able to pull from the server side names.nsf, and while running as xpinc I pull the local names.nsf. Do you know if this is possible? Really trying to accomplish "write once run everywhere". <xe:namePicker id="namePicker1" for="djextNameTextBox3"> <xe:this.dataProvider> <xe:dominoNABNamePicker groups="false" nameList="peopleByLastName" people=

Dynamic Data Binding?

核能气质少年 提交于 2019-12-17 16:41:44
问题 I have several fields on my Notes Document FieldA_1 FieldA_2 FieldA_3 FieldA_4 FieldB_1 FieldB_2 FieldB_3 FieldB_4 On a composite control I have 2 edit boxes FieldA FieldB I have a compositeData.ATM_NUM defined a custom control that is a drop down list with the values 1,2,3,4. How do I bind the edit boxes on my control to their corresponding document fields using the composite data available? For example, I wanted to do something like: "FieldA_"+ compositeData.ATM_NUM. I tried the javascript

Dynamic Data Binding?

时光总嘲笑我的痴心妄想 提交于 2019-12-17 16:41:28
问题 I have several fields on my Notes Document FieldA_1 FieldA_2 FieldA_3 FieldA_4 FieldB_1 FieldB_2 FieldB_3 FieldB_4 On a composite control I have 2 edit boxes FieldA FieldB I have a compositeData.ATM_NUM defined a custom control that is a drop down list with the values 1,2,3,4. How do I bind the edit boxes on my control to their corresponding document fields using the composite data available? For example, I wanted to do something like: "FieldA_"+ compositeData.ATM_NUM. I tried the javascript

Running XPages Extension Library on local machine

久未见 提交于 2019-12-17 14:18:52
问题 I have installed XPages Extension Library on my local machine. It shows all the components in the Controls tab. But when I use any of the components in my XPage and run it in a browser it shows the following error: Cannot find the library com.ibm.xsp.extlib.library, required by the application <DATABASE PATH> In the Application Proprties, in Advanced tab inside XPage libraries both com.ibm.xsp.extlib.library & com.ibm.xsp.extlibx.library are checked. Am I missing something here? UPDATE: For

POI 4 XPages - document generation works only once

China☆狼群 提交于 2019-12-17 12:36:52
问题 Ok, to be honest: the headline doesn't tell the whole truth. I am using a custom control with several buttons (save, close, edit etc.) and a button that executes a POI action - it's generates a Word file. I experience a problem here: after hitting the POI-button my other buttons (and the POI one as well) won't work anymore, no click is triggered. Now the strange one: after waiting a few seconds (depending on which browser I use, Chrome is fastest) I am able to click the buttons (all of them)