Questions tagged [xpages]
XPages is HCL's web and mobile application development platform for applications built on top of the HCL Domino server.
5,447
questions
0
votes
1
answer
55
views
bootstrap5 dropdown full width
I have following navbar, in which I have a mega menu dropdown.
I would like this dropdown 'products' to take the full width of the screen (since I would like to add more items in the width)
I tried ...
0
votes
0
answers
42
views
How to delete selected documents in search result xpages
I have a search view xpages. Everything ok except to delete selected document(s) using xp:deleteselectedDocuments tag from the search result.
<xp:button value="Delete" id="button4&...
0
votes
1
answer
51
views
bootstrap & xpages v.12
I'm trying to use bootstrap with an XPage on domino v12.
I've set the application theme to Bootstrap4 in the XPage Properties.
then I copy-pasted the sample code below into an XPage (https://...
0
votes
0
answers
62
views
Partial refresh in XPages/JSF not available in Cypress
I use in my XPages/JSF app partial refresh, e.g. when you check a checkbox this element submits data to the server and the server updates the element in the DOM that was specified to become updated.
...
0
votes
2
answers
65
views
getFirstDocument() returns 'null' for a collection which getCount() says has 8 items
I have code (ssjs) that should select a number of documents from a view based on a key that column 1 of the view is sorted on. The selection (according to getCount() shows 8 documents are in the ...
0
votes
1
answer
37
views
Xpage - combo box disappears
I have a strange error
I created 2 combo boxes
the first (cadcri_est) does a search and loads the list of states from an nsf base, like the code below.
The second combo box (cadcri_cid), reads the ...
0
votes
1
answer
99
views
Issue with Anonymous access and 'Authorization' header on HCL Domino 12
There is a database which has anonymous access "Editor". Anonymous users can access one of the XPages REST API with "Authorization" header. This will have JWT token in the request ...
1
vote
0
answers
24
views
Error XPages com.ibm.xsp.page.FacesPageException. com.ibm.xsp not found [duplicate]
I am having the following error in the HCL Designer:
And this is the browser error when opening the nsf url:
com.ibm.xsp.page.FacesPageException: Could not load page /Home.xsp because the ...
0
votes
1
answer
88
views
XPages and order of execution of Bootstrap 4
I have developed an application with Bootstrap 4 and I am getting different results on different servers.
I have tested this on many servers and most servers work fine but when putting it up on a ...
0
votes
1
answer
54
views
How to change Java toLocalizedPattern() date format in windows?
My below java code prints the date format as shown below.
var pattern:java.lang.String = (new java.text.SimpleDateFormat()).toLocalizedPattern();
print("Pattern===>"+pattern)
.
Expected ...
0
votes
1
answer
54
views
Generate XML from XPages content in Lotus Domino
Please, tell me - how i can create XML from content of the fields on XPage, on button click (in Lotus Domino 9)?
Thanks in advance for the information.
Now i'm trying to create an agent that will do ...
0
votes
2
answers
39
views
can i check if an element is available before I use XSP.partialRefreshGet to update it?
since the ID of a control in xpages is dynamic I cannot a normal selector to check if the element exists on the xpage e.g.
if (document.getElementById("myElementId")) {
XSP....
0
votes
2
answers
67
views
Loading a document item values into a map using DataObject in a bean in XPages
I am trying to create a bean that is using the DataObject to collect value from a document.
code is inspired by this post
package com.consili;
import lotus.domino.*;
import java.util.*;
import com....
1
vote
1
answer
64
views
How can I use a repeat control with multiple data sources, sorted by date in an XPages application?
XPages Repeat Control with multiple data sources sorted by date
I want to create a repeat control with multiple data sources. In the snippet is only one view as source but I've multiple views in ...
0
votes
1
answer
82
views
Reference javascript file in domino/html directory on xpage
On xpages it appears that you can add javascript resouces that are installed in the database or from a URL. I'd like to reference a javascript file that's in my domino/html directory on the server ...
0
votes
1
answer
38
views
XPages Repeat Control - Get URL for documents from another database
I created a Repeat control with documents from another database (extdb.nsf). That works fine.
I get the subject and can display it.
But I don't know how to get the url for the documents to make the ...
0
votes
1
answer
51
views
preset default date and time on an xpage
I'm trying to set a default date and time on a inputfield on a xpage.
So far I can only set the date :
<xp:inputText id="enddate" value="#{viewScope.einddatum}">
<xp:...
0
votes
1
answer
77
views
ComboBox onChange event does not fire
I cannot seem to get the onChange event to fire in the xp:comboBox. The djComboBox works fine, but I have other issues with that which are not relevant here.
There is no issue with events such as ...
0
votes
1
answer
69
views
How to protect Open xpage REST API using Azure OAuth or Azure API Gateway
I have created an REST API using xpages and this database is having Anonymous "Author Access".
also OAuth Setup on the Azure. So the API consumer will use OAuth Url,client id,client secret ...
1
vote
2
answers
501
views
Problem with special characters in properties file
I have properties files for translation. One file is in English, the other one in Swedish. For each page I want translation for I have separate properties files e.g. home.properties, home_en....
2
votes
0
answers
74
views
Cannot save document in Xpages when there are multiple FileDownload controls and a certain number of deletions have occurred
I have an XPage that has multiple FileUpload and FileDownload controls on it. The FileDownload controls allow deletion. This works well sometimes, but other times it doesn't.
The problem manifests ...
0
votes
1
answer
44
views
XPages, opening a dialog from another dialog's on hide event. Not working
I have set for the onhide event of a dialog the following:
<xe:dialog id="dlgSelectYourItems">
<xe:this.onHide><![CDATA[
console.log('onHide dialog ...
1
vote
0
answers
47
views
Set HTML tag on XPage via Themes element
I want to disable Google translate from HTML in Chrome on my XPage:
<html translate="no">
If I set
<xp:this.attrs>
<xp:attr name="translate" value="...
0
votes
1
answer
81
views
Best practice for storing and reading data from Java Beans in XPages
I have the following Java bean code that stores a list of tabs in an ArrayList<String> in a sessionScope, so I do not have to look it up for every request.
public class BeanMethods {
...
0
votes
0
answers
49
views
XPages FileUpload control multiple files
In my XPages application I want to upload multiple files. I've added the attribute "multiple" to the control. Now I can select several files, but only the last selected file is saved.
<xp:...
0
votes
1
answer
44
views
xpages - create a csjs variable that contains single quote
In my xpage I create client side global variables in the following way:
<xp:scriptBlock>
<xp:this.value><![CDATA[var news_message = '#{javascript:return utilityBean.readLatestNews()}';
...
0
votes
1
answer
62
views
facesContext.getExternalContext().getRequestPathInfo(); no longer working
I've added the following in the xpages beforePageLoad to return the url path:
var url = facesContext.getExternalContext().getRequestPathInfo();
This was working in prior versions of Domino, but ...
1
vote
2
answers
78
views
How to set a query pattern using the queryExpr property in the djFilteringSelect control in XPages
I am trying to tweak the djFilteringSelect control in XPages so that when a user type a query it finds any occurance of the char sequence, not just from the beginning.
so if the selectitems contain a ...
0
votes
0
answers
99
views
Building a XPages App with Maven and running Junit Tests
I have an Domino XPages Application which is already built from an OnDiskProject into an .nsf by maven.
The pom.xml for that step is ok and running.
Now, I wanted to include the maven-surefire-plugin (...
0
votes
0
answers
43
views
How to get hold on calendar dijit for xp:dateTimeHelper to set firstdayoftheweek attribute?
I have set up a datepicker helper for an inputfield for my xpages form:
<xp:inputText id="agenda">
<xp:dateTimeHelper></xp:dateTimeHelper>
</xp:inputText>
I want to ...
0
votes
0
answers
43
views
CKEditor autogrow sets height to 0 when editor initially hidden
We are upgrading XPages application to version 12.0.2. The CKEditor version shipped with the platform has changed to 4.18 (from 4.5.6.1).
Now, when the CKEditor is initially hidden, e.g. in a hidden ...
0
votes
0
answers
45
views
Xpages - log messages from applications land in incorrect database despite different locations in xsp.properties
In my xpages application I use the OpenLog database to log events and errors. I do this via the OpenNTF Domino API e.g.:
XspOpenLogUtil.logError(e);
In xpages application X I have set in the xsp....
0
votes
1
answer
51
views
search in a view string with '*' in it
I have an xpage where I'm looking in a view for products where the productname itself (viewScope.product) contains in it's name sometime a '*' for example productname 'apple 2 * d1' and productname '...
1
vote
1
answer
66
views
JSF / Xpages how to clear sessionscopes?
I want to clear the current sessionscopes in my xpages application and reload them again. I have tried:
public Map<String, Object> sesScope;
this.sesScope = JSFUtil.getSessionScope();
clearMap(...
0
votes
0
answers
112
views
Can't compile XPages project on HCL Designer 12.0.1. FP1
I have recently migrated my old XPages application to HCL Domino 12. I have also upgraded my dev environment to the same version. Unfortunately I am not able to compile the project since then. The ...
0
votes
0
answers
57
views
Calling the Hashtable Get method on an ApplicationScope stored Hashtable - JAVA/XPages
I have a number of individually named Hashtables residing in the ApplicationScope space. I'm struggling with the Hashtable's GET(String) method when used in a different Class elsewhere in my app.
My ...
1
vote
1
answer
55
views
Validator for XPages textarea control, only when a certain button is pressed
I have setup a validator for an inputfield:
<xp:inputTextarea id="inpRelPresentation"
value="#{matterBean.matter.busRelations}"
validator="#{matterValidators....
0
votes
0
answers
26
views
Validating xp:inputTextArea field not containing Return characters
In my xpages application I have a validation on a inputTextArea control e.g.
<xp:inputTextarea
id="inpRelPresentation"
value="#{matterBean.matter.busRelations}"
...
1
vote
1
answer
65
views
xpages - enableModifiedFlag -> possible to prevent default dialog at beforeunload event?
For my xpages app I want to set the enableModifiedFlag to true to have a dirty form functionality to check if changes are made to a page.
I tried to avoid that the default warning message will appear ...
1
vote
1
answer
132
views
JRebel Remote Installation on a Domino Server 12.0.2
I have a question concerning JRebel Remote Installation on a Domino Server 12.0.2
https://manuals.jrebel.com/jrebel/remoteserver/eclipse.html#eclipseremoteserver
In the beginning it looked promising, ...
0
votes
2
answers
120
views
xpages base64 encode special characters
In an application where I make a base64 encoded Vcard , I have the problem that I can't encode special characters like in the string "Zone d'activité" , which should become "...
0
votes
1
answer
58
views
Xpages button onclick event runs on document load
The text 'button 2 pressed' is added to log.nsf on document load (i.e. when copy/paste the URL into the browser address bar). It also runs when I click it too which is the desired behaviour. Can ...
1
vote
1
answer
57
views
xpages, save all documents in a repeat panel
I'm trying out a simple xpage that fetches a parent document (form fParent) and a few child documents (form fChild) via view vChildren. I can get the children as read only via a normal view control ...
0
votes
1
answer
63
views
Xpages - response document - inherit values
I've just stumbled across this post, which gives an explanation on how to inherit values from a parent document. I can't get it to work though. Would anyone be able to explain exactly how and where to ...
0
votes
1
answer
69
views
xAgent ServletInputStream read method always returns -1
Hello everyone once again. I can't seem to read POST content using this xpage/xAgent:
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/...
0
votes
3
answers
159
views
Domino xAgent gives 500 Command not handled exception - $$viewid ID not present
Dear domino cognoscenti,
I've just written a simple xAgent using an xpage which works for GET requests but when I submit a POST request I get an Error 500 HTTP Web Server: Command Not Handled ...
0
votes
1
answer
154
views
java.lang.NoClassDefFoundError: com.ibm.xsp.extlib.util.ExtLibUtil
Last week I was playing with sessionScope values being read and written from java code that was called from on beforePageLoad in an XPage. It was working when called on the server, but this week ...
0
votes
1
answer
61
views
Xpages - NotSerializableException: com.ibm.xsp.extlib.component.dialog.UIDialog
I have a Xpage which use several extLib Dialog.
Dialog used managed bean for implement business logic.
Sometimes users give an exception NotSerializableException: com.ibm.xsp.extlib.component.dialog....
0
votes
2
answers
83
views
How to return a new object when the current object is recycled in Java
In the following code the returned matchEntry is recycled, how can I fix that so that the returned matchEntry is not recycled.
I want the last matched entry in the loop to be returned
The object.clone(...
0
votes
1
answer
70
views
CKEditor breaking images on XPages
I've been trying to solve this issue for a week now, and so far not so good.
An XPages application mimics an email client, with a <xp:inputRichText> connected to a RichText field in a Form. ...