XPage | A very useful Fragment page framework ! | Architecture library
kandi X-RAY | XPage Summary
kandi X-RAY | XPage Summary
A very useful Fragment page framework!(一个非常方便实用的fragment页面框架!)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Opens the given page
- Find a page by name
- Pops a Fragment in activity
- Called when the view is clicked
- Change the current page
- Initializes the attributes
- Get a drawable attribute
- On item click
- Set target page name
- Opens the page for execution
- Start activity for result
- Put a page
- Sets the layout
- Go to a page
- On save instance state
- This method is used to start activity for a result page
- Processes page annotations
- Callback method for when an item is clicked
- Writes the item to Parcel
- Initialize the logger
- Called when an item is clicked
- Calculate the layout
- Remove fragment
- Set a custom title view
- Initializes simple data
- Register pages with page configuration
XPage Key Features
XPage Examples and Code Snippets
Community Discussions
Trending Discussions on XPage
QUESTION
I am creating read-only xpages that take data from a Lotus database.
Among these fields are some that contain the names of the users who worked on the documents, the fields are multivalue.
On my xpage I have inserted a MultilineEditBox so that all users are correctly extracted, I put as MultipleSeparator: @NewLine() so that they go to head.
However the users are displayed like this:
CN=Donald Duck/O=Duckburg
I would like only Donald Duck to appear.
I found that Canonicalize might work for me, but I can't seem to apply it to make it work.
...ANSWER
Answered 2022-Mar-22 at 16:46Canonicalize = the format you already have. What you seek is the Common Name (CN), so
QUESTION
I am playing around with the OpenNTF Project "XPages Jakarta EE Support".
I'm trying to setup a REST API for CRUD operations on a Person object. I managed to create GET and POST requests, but on a PUT request, I get an error in PostMan.
My code to update a request using POST is like this:
...ANSWER
Answered 2022-Feb-23 at 09:17PUT and DELETE are not enabled by default. Open/create an "Internet Site" document in your Domino Directory and enable PUT (and DELETE).
QUESTION
Via CSJS would like to read the value in a sessionScope. The sessionScope contains a Hashmap. For example I would like to read the array value that I have stored under key "values".
In Xpages I can call SSJS in a scriptBlock element e.g.:
...ANSWER
Answered 2022-Jan-12 at 10:49Have you tried prototyping?
var keyword_custType = '#{javascript: sessionScope.get("customerType").get('values')}';
It should work.
QUESTION
I have a public facing application that is architected with multiple nsfs. I have one nsf that's public facing that manages data through Java controllers in the non-public facing nsfs. For security reasons the non-public nsfs do not allow URL browsing so I can't use the usual "/0/" + UNID + "/$FILE/" + PhotoFilename to display the image on the XPage.
In the controller I can get the attachment (EmbeddedObject) from the document, but I'm not sure how to get it to display in an or control.
I am using the OpenNTF api, but I can't see anything there that seems to help.
Thanks, Scott.
...ANSWER
Answered 2021-Dec-20 at 22:06One solution: base64 encode the image and use the encoded string in an img tag. Here's a simple code example that uses the inputstream from the EmbeddedObject in a method in a Java controller:
QUESTION
I'm having trouble getting a collapsible bootstrap sidebar to display correctly in XPages. I found a simple example at bootstrapious.com, adapted the code for an XPage, and it almost works. The button to collapse the sidebar doesn't do anything. I am using Domino V12 and Designer V12, along with the built-in Bootstrap4 theme. The bootstrapious code includes its own .css file, along with some .css and .js for Font Awesome. I've tried removing those .css and .js files to check for conflicts. Obviously, they made the page look worse, but didn't help the collapse button to work. So I put them back in and below is the entire page. Is there some simple thing I've overlooked? It works fine in an HTML file, but not in XPages. One other interesting piece to the puzzle: If I start with a narrow browser window, the sidebar starts collapsed, but the button still won't expand it.
...ANSWER
Answered 2021-Nov-10 at 22:07The JavaScript file popper.min.js uses AMD which conflicts with Dojo in XPages. See this answer for a solution on how to disable AMD in order to make it work: https://stackoverflow.com/a/30483034/785061
QUESTION
We have a cluster with 3 servers with Load Balancer in front (CloudFlare). Things worked well when we had 2 servers (A & B) in the cluster but after we added a 3-rd server (C) we noticed few odd things.
One of them is quite important and I do not understand how it happens at all.
Our web application makes AJAX requests to itself in order to get some JSON data back and if requests hit new server (C) response looks like that:
...ANSWER
Answered 2021-Aug-02 at 09:31Figured that our with help from comments (which you can see under my original post).
Apparently there is DAS servlet that handles all requests starting from /api/* and it runs if XPages engine is loaded. In my case the 2 servers out of 3 have XPages shut down so the issue happened only on 1 server.
The solution would be:
- Shut down XPages (or find a way to shut down DAS).
- Alternatively change a URL from /api/path to something else (this is what we will do).
QUESTION
From examples I've seen in the Mastering XPages book and around the web, an xp:dataContext
variable should be writable but I can't get it to work.
Below is a simplified version of my code. A button calls an xe:dialog
containing a panel
with a dataContext
variable attended and initial value of "", expecting to be able to write to it from the radioGroup
data binding. When the radio is set to a certain value (in this case, != "Yes"
) I want to unhide a div
but it doesn't work. The div does not appear and the txt1 computed text field never changes to reflect the value of the radio.
I have tried both an onclick
and onchange
event handler but neither seems effective. Are dataContext
variables read-only?
ANSWER
Answered 2021-Jul-28 at 14:11To my knowledge, you can't assign to the variable name for a dataContext
. What you could do would be to make the value bound to something that contains another value, like a Map
or custom object, and then alter properties on that.
For example, if you made it like var="contextProps" value="${javascript:new java.util.HashMap()}"
, you could then do things like #{contextProps.attended != 'Yes'}
and value="#{contextProps.attended}"
. Usually, you'll want a more-fleshed-out object than a generic HashMap
for this, but it can serve as an example or a useful container in a pinch.
QUESTION
I want to work with long strings (size minimum: 100kb) on Xpages. I assume the best method to store a large string is in a data field of the type "Rich Text". Right now I am stuck with the data handing of this string. How can I transfer this string between server and client?
So far I tried:
data binding controls: Rich text field (Problem: formats the text, tags), text field (Problem: does not work after a certain size)
implementing a rest service: The response body will be cut off at a certain point
...
ANSWER
Answered 2021-Jul-02 at 08:57I tested your scenario. doc.getItemValueString()
only reads 64 KB of data from the rich text field. If you want all data you can use (in SSJS):
QUESTION
I've a XPages application where users can edit rich text fields.
Now I want to insert a link to a local file into this rich text field. I use the link action from the toolbar to insert the link file:///c:\temp\readme.txt
The link is stored in the rich text field, but if I want to click on the link nothing happens neither in read mode nor in edit mode.
Standard http-links work as expected, only file links don't work.
HTML filtering is turned of i.e. set to identy
Does anybody has an idea how I can get file links to work within rich text fields?
...ANSWER
Answered 2021-Jun-18 at 10:39For security reasons the browser will not allow the file:// link on a HTTP/HTTPS page.
QUESTION
I am trying to get an XPage to reload after 1 second but can't figure out the code to do it. Does anyone have an example on how to do this in XPages?
...ANSWER
Answered 2021-May-27 at 17:36Use JavaScript's setTimeout() function in Client Side JavaScript code block to execute a reload after a second (1000 ms):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install XPage
You can use XPage like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the XPage component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page