358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Escaping the yellow bubble at ICON UK
Tue, Sep 16th 2014 117
XPages gotcha: mode=”concat” in your themes
Thu, Aug 28th 2014 136
Getting HTML from any RichText item
Fri, Jul 11th 2014 330
Create HTML emails from RichText fields with embedded images and attachments
Thu, Jul 3rd 2014 328
Considering a Domino upgrade to 9.0.1 FP1 or 9.0.2? Beware of custom Java security policies
Wed, Jun 25th 2014 329
XPages Debug Toolbar – now as a plugin
Wed, Feb 5th 2014 143
Improve your Domino SSL configuration, make your server more secure
Thu, Jan 16th 2014 132
Top 10
Getting HTML from any RichText item
Fri, Jul 11th 2014 330
Considering a Domino upgrade to 9.0.1 FP1 or 9.0.2? Beware of custom Java security policies
Wed, Jun 25th 2014 329
Create HTML emails from RichText fields with embedded images and attachments
Thu, Jul 3rd 2014 328
Send a serverside redirect to a new window
Mon, Aug 13th 2012 282
XPages: server vs. client-side redirects
Wed, Jul 27th 2011 257
Xpages: Sort the results of a full-text query (server side and by any column)
Wed, Sep 15th 2010 212
Send a HTML mail from an XPage with only 5 lines of code
Wed, Dec 7th 2011 207
XPages: Multiple file uploads using HTML5 with drag-n-drop and progress bar support
Wed, Nov 3rd 2010 194
Import Excel files and calculations with POI 4 XPages
Fri, Dec 13th 2013 189
Using scheduled XPages
Thu, Feb 24th 2011 173


Mark Leusink
 
Blog Title LinQed | Mark Leusink
Blog Description On XPages, mostly...
Blog URL http://linqed.eu
RSS Feed http://linqed.eu/?feed=rss2
PlanetLotus Feed http://planetlotus.org/profiles/rss/mark-leusink
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Sep 21, 2014 7:12:51 PM EST. Realtime Update:
Landed Here Sep 20, 2010
Location Bathmen, The Netherlands
Posts: # / 1st / Latest - -
Total Hits 6,507. myPL RSS Selections: 22


Recent Blog Posts
117


Escaping the yellow bubble at ICON UK
Tue, Sep 16th 2014 6:12a   Mark Leusink
Last Friday I was in Londen for what was yet again an excellent ICON UK. Tim Clark really did a great job in organising it and I hope he can now relax again. Kudos also to Tony Holder for organising the speaker dinner at Wilton’s. Didn’t know you can eat that well in the UK! The venue (IBM Client Centre) added a nice touch to the conference and was conveniently located at the center of Londen. That allowed me to try out a Boris Bike and see what cycling on the left side of the road i [read] Keywords: ibm xpages development twitter
136


XPages gotcha: mode=”concat” in your themes
Thu, Aug 28th 2014 8:11a   Mark Leusink
Suppose you have an XPage with a repeat control on it to show a list of documents. In the repeat you generate an for every document. Based on the status of the document you decide to give the button a different color, so you make the styleClass property of the button computed: That’s (roughly) the code you’d have to write. And guess what: it all works. Everyone’s happy! So you decide to enhance the looks of your application and include Bootstrap. Bootstra [read] Keywords: xpages application css javascript server
330


Getting HTML from any RichText item
Fri, Jul 11th 2014 6:11a   Mark Leusink
Last week I blogged about sending the contents of a RichText field (including images and attachments) as an HTML mail. Today’s task was related: get the contents of a RichText item as HTML, knowing that the contents can be stored in the item as either MIME or standard RichText. With the wrapDocument() function I showed you last week you can easily get MIME contents as HTML. After some investigation it turns out that with some small changes you can use the same method to let Domino convert [read] Keywords: domino ibm lotus rich text richtext xpages database java openntf
328


Create HTML emails from RichText fields with embedded images and attachments
Thu, Jul 3rd 2014 8:11a   Mark Leusink
If you want to send formatted (HTML) emails from Domino you have a couple of options. Starting with version 9, there’s a simple action that allows you to send HTML mail by just configuring some options. You can also use Tony McGuckin’s emailBean snippet to send an HTML mail from an XPage directly, including embedded images and/or attachments. And there’s also the SSJS snippet I wrote to send an email from any backend SSJS script. Unfortunately, none of these could do what I wan [read] Keywords: agent domino ibm lotus rich text richtext xpages database email java openntf
329


Considering a Domino upgrade to 9.0.1 FP1 or 9.0.2? Beware of custom Java security policies
Wed, Jun 25th 2014 6:09a   Mark Leusink
If you have custom Java security policies in place on your Domino server (either through a modified java.policy or java.pol file) you might want to read this before you upgrade. When I want to change to Java security policy on a Domino server I create a java.pol file in the jvm/lib/security folder and add everything I want. That folder also contains the default java.policy file, but you don’t want to add your changes in there: that file tends to get overwritten when doing a server upgra [read] Keywords: domino ibm ldd lotus policies applications database java security server
143


XPages Debug Toolbar – now as a plugin
Wed, Feb 5th 2014 5:11a   Mark Leusink
In preparation for the session with Phil Riand on Bootstrap4XPages last week at IBM Connect (slides) I’ve been doing quite some work on the Bootstrap4XPages plugin. That got me pretty good up to speed with the subject of OSGi plugin development, so I decided to take another shot at a thing that had been on my todo list for way too long: create a plugin version of my XPages Debug Toolbar. So I watched the NotesIn9 episode by Tim Tripcony on creating a global custom control again, applied wh [read] Keywords: ibm xpages applications bug consulting database development java openntf server




132


Improve your Domino SSL configuration, make your server more secure
Thu, Jan 16th 2014 5:10a   Mark Leusink
Recently, Stephen Wissel tweeted a link to the Qualys SSL Labs SSL Server Test. That site allows you to enter the URL of an (internet facing) server that has SSL enabled and can then perform a deep analysis of the SSL configuration of that server. You may or may not know that Secure Sockets Layer comes in different flavours: v2, v3, TLS (Transport Layer Security; SSL’s successor), and more. Also, an SSL configuration can support various Cipher Suites (some of which are less secure than oth [read] Keywords: domino ibm notes xpages community mac security server twitter wiki
189


Import Excel files and calculations with POI 4 XPages
Fri, Dec 13th 2013 5:10a   Mark Leusink
Adding an export to Excel used to be a pain in the old days. But now, with XPages and the highly recommended POI4XPages library*, that has gotten really easy and is a feature I can just throw in to any project. And yes I know: spreadsheets… But fact is that a lot of the people I work with are still very much Excel oriented: so why not service them? I had a requirement the past week to add some calculations on a generated Excel file: creating totals and hiding cells based on others. I thoug [read] Keywords: domino xpages java office openntf server xml
105


New demo on Bootstrap4XPages: Reusable fields with validation
Mon, Nov 11th 2013 5:09a   Mark Leusink
I just released a new demo on Bootstrap4XPages.com. This one is about reusable fields and form validation: I show you how you can create a custom control with a dynamic field binding that you can (re)use to create Bootstrap styled fields. Although I’ve written the article for use with Bootstrap, the same method can also be used with any other framework. Next on my todo list: upgrade the site to use Bootstrap 3. [read] Keywords:
123


New demos on Bootstrap4XPages: Select2 and Alerts
Thu, Jul 11th 2013 7:17a   Mark Leusink
In case you haven’t seen them yet: I’ve added two new articles/ demos on Bootstrap4XPages. The Alerts article shows how you can use the XPages built-in FacesMessages functionality to show Bootstrap-styled alerts to users. It also allows you to add the message on one page, navigate the user to another and show the message on that page using the multi-page messages PhaseListener described here. The Select2 article shows you how to integrate the excellent Select2 plugin into your XPages [read] Keywords: xpages ajax
106


Getting your Git projects back in Domino Designer
Wed, Jun 26th 2013 6:17a   Mark Leusink
Since a while now I’m using source control in Domino Designer and I love it! I’m using eGit because I like that it’s integrated directly into Designer. I recently needed to re-install Designer and found out that all on-disk projects needed to be re-added to Designer too. In this post I’ll share a way on how you can restore those and restore the connection with the NSF´s. First thing you need to do after installing Designer is to re-install the eGit plugin. By default, eG [read] Keywords: domino notes applications bug database development openntf workspace
98


Next XPages & Beer event: Wednesday, June 12 in Almere
Wed, Jun 5th 2013 6:16a   Mark Leusink
The next Xpages & Beer* event is held on Wednesday, June 12. Location are the offices of ilionx in Almere, The Netherlands. The event is free (again) and you’ll get some sponsored diner, so there’s absolutely no reason not to come. It’s only 7 days away, so register now! [read] Keywords: xpages
66


Just when I thought I got readers/authors fields all figured out
Thu, Apr 25th 2013 1:16p   Mark Leusink
The case seemed simple: I had a document that may only be edited by a bunch of people. So I added an authors field. Only that group (and application administrators) are allowed to view that document. So I added a readers field for the administrators role. I don’t need to add the group from the authors field to the readers field, since author access also allows reader access. All good. The admins wanted an option to disallow editing the document for the people in the authors field, so I add [read] Keywords: notes notes client xpages application
52


Debugging and designing at the BLUG 2013
Sun, Mar 24th 2013 1:12p   Mark Leusink
I got back yesterday from an excellent 2 days in Leuven where I spoke at the BLUG 2013 (where the B as of this year stands for BeNeLux). This was actually my first visit to the event and I enjoyed every bit of it. The location was amazing: the “Grand Béguinage of Leuven“, a former community for unmarried, semi-religious women (the Béguine), dates back to the 13th century and is on the UNESCO World Heritage list. Theo Heselmans did an amazing job in organizing the event and spoil [read] Keywords: notes community java twitter wiki
48


Awesome new release of the XPage Debug Toolbar!
Thu, Jan 17th 2013 5:12a   Mark Leusink
A couple of months ago I set a goal: I wanted to release a new version of the one tool every XPages developer needs (well… besides Designer of course): the XPage Debug Toolbar. I had a couple of great ideas and started working on them. And here we are: just in time for IBM Connect I bring you… version 3 of the toolbar! I’m pretty excited about this new version: check it out and hopefully you’ll be too. So what’s new? If you clicked the image above you might have no [read] Keywords: collaboration ibm xpages application database development mobile openntf properties server
36


IBM Champion for 2013 and my appearance on NotesIn9
Wed, Dec 12th 2012 5:16a   Mark Leusink
The new IBM Champions group for Collaboration Solutions for 2013 was announced yesterday and guess what: just as in 2012 I’m on the list! Big thanks to the people that nominated me (Patrick Kwinten, Wim Jansen) and the IBM selection committee for selecting me again. I’m honoured to be amongst that group of great people. On a side note: as part of the “Drive To 99” I recently recorded a video for NotesIn9 talking about my XPage Debug Toolbar. If you haven’t watche [read] Keywords: collaboration connections ibm notes xpages apple linkedin openntf podcast
89


Importing an entire JavaScript library into a database
Tue, Oct 9th 2012 3:09p   Mark Leusink
If you want to import JavaScript and/or CSS files from a library like Bootstrap or JQuery Mobile (or any other file) into your application you can do so in the Resources section. Problem is that such libraries probably rely on a fixed (relative) folder structure. Although you can also create that in the Resources section I find it to be quite a hassle. Luckily there is a whole lot easier and faster solution: Open the Package Explorer Drag the entire folder you would like to import from your co [read] Keywords: xpages application css database javascript mobile
50


XPage Debug Toolbar v2 released!
Fri, Sep 14th 2012 8:09a   Mark Leusink
A few minutes ago I uploaded v2 of my (prize winning) XPage Debug Toolbar to OpenNTF. This version has quite some changes in it. The biggest being that the toolbar was rewritten using Java/ managed beans. Here’s a list of what’s new in this release: The toolbar now uses a managed bean (and only a little SSJS). Biggest advantage of the bean approach is that you can now easily log messages from about anywhere with no restrictions. Added the option to remove a (scoped) variable. Added [read] Keywords: xpages application database java openntf properties server xml
50


RESTless getting data from XPages to IBM Connections and back again
Fri, Aug 17th 2012 7:12a   Mark Leusink
Recently I was working on getting data from IBM Connections in and out of an XPages application using the IBM Connections API. The API was great to work with: it is pretty good documented and easy to understand. It uses Atom feeds and RESTful calls to communicate. I needed to implement the data read/write ‘barebones style’. No HTTPClient and no Abdera. Don’t ask me why. but it’s not because I like to torture myself. In the beginning that actually worked quite well: I was [read] Keywords: connections domino ibm ldd lotus xpages application bug google java network oracle server wiki xml
282


Send a serverside redirect to a new window
Mon, Aug 13th 2012 6:13a   Mark Leusink
Redirecting a user on an XPage server side can be done by calling one of the context.redirectTo() methods or by using the facesContext.getExternalContext().redirect() method. But what if you want to open that page in a new window/ tab? The only way to open a link (AFAIK) in a new window/tab is by making a clientside JavaScript window.open(”) call. There are a couple of ways to send that call to the browser (using the onComplete event or a conditionally rendered outputScript control), but t [read] Keywords: xpages javascript server xml
70


Showing real progress in XPages
Wed, Aug 8th 2012 1:10p   Mark Leusink
One of the actions in an XPage application I’m building might take some while to complete. The action is triggered by a button so I added a loading indicator image that is shown on the button’s onStart event and hidden in the onComplete event. The problem with this was that it gives me no clue as to how long it will take and if it’s making any progress at all. So I searched for a way to display a real progress bar. I investigated a solution involving a partial refresh of a part [read] Keywords: xpages application consulting database dojo eclipse javascript openntf server
41


Yet another release of Auto Logins for Domino/ XWork
Wed, Jun 13th 2012 6:17a   Mark Leusink
I’ve released version 1.1 of my Auto Logins for IBM Domino/ XWork server yesterday on OpenNTF. This release has a new XPages UI that makes the configuration easier and gives you a better insight in the tokens that have been stored. I also fixed a couple of issues that were reported (mostly on Chrome) and added the option to restrict who can use the “remember me” option based on a IP range. Go check it out! [read] Keywords: domino ibm xpages openntf server
26


New release in my Remember me/ Auto Logins for Domino/ XWork project
Wed, May 30th 2012 3:11p   Mark Leusink
Based on user feedback I got, I created a new release of my Remember me/ Auto Logins project on OpenNTF. This release contains the following changes: Updated error handling in case the configuration could not be loaded correctly (e.g. in case of a missing configuration document). In that case the “remember me” checkbox is also disabled. Sample login form updated for mobile usage. Scheduled agent added to cleanup expired tokens (“Remove expired tokens”). Added remote IP address to token [read] Keywords: agent domino mobile openntf
42


“Remember Me” for Domino/ XWork logins (great for mobile apps!)
Tue, May 29th 2012 6:12a   Mark Leusink
I just released version 1 of a new project of mine on OpenNTF. It is called “Remember Me for IBM Domino/ XWork“. You can use the application to add a “Remember me” option to any Domino/ XWork login screen. Based on an application setting the server can remember you for a number of days. When you re-visit the server, it recognizes you and will automatically log you in. This is a great feature for any web (XPage) application, especially mobile web applications: it will make [read] Keywords: domino ibm xpages application applications database mobile openntf password server
36


Automatic synchronisation not working between NSF and on-disk projects
Fri, May 25th 2012 10:30a   Mark Leusink
I finally found some time to experiment with how to use source control in Designer. First thing I did was to setup an on-disk project: right click an application and click Team Development > “Set up source control for this application”. I let it create an on-disk project and added/ changed/ removed some design elements. From what I knew it should automatically synchronize all those changes with the on-disk version of the application. It didn’t… Took me quite some time [read] Keywords: application development
37


“Beans en burgers” slides (in Dutch)
Mon, May 21st 2012 5:22a   Mark Leusink
Bijgaand de slides van mijn “Beans en burgers” sessie tijdens het Social Business Event / NLLUG 2012 in De Kuip in Rotterdam. De sessie ging over het gebruik van managed beans in een XPages applicatie die ik onlangs heb ontwikkeld. Download [read] Keywords: xpages
33


New version of the XPage Debug Toolbar: includes logging from Java beans
Wed, Feb 15th 2012 1:19p   Mark Leusink
I just released version 1.2.1. of the XPage Debug Toolbar on OpenNTF. Thanks to a contribution by Keith Strickland you now also have the option to log messages to the toolbar from Java beans (thanks Keith!). Version 1.2.1 also includes a fix for an incorrect calculation of the refresh interval in the external console window. Download the latest release now and start logging ! [read] Keywords: java openntf
41


New version of the XPage Debug Toolbar: includes logging from Java beans
Wed, Feb 15th 2012 5:11a   Mark Leusink
I just released version 1.2.1. of the XPage Debug Toolbar on OpenNTF. Thanks to a contribution by Keith Strickland you now also have the option to log messages to the toolbar from Java beans (thanks Keith!). Version 1.2.1 also includes a fix for an incorrect calculation of the refresh interval in the external console window. Download the latest release now and start logging ! [read] Keywords: xpages bleedyellow bleedyellow.com java openntf
46


Debugging XPages and SSJS just gotten a bit easier
Thu, Jan 12th 2012 1:28p   Mark Leusink
Since there isn’t a way to debug SSJS (yet) I mostly resorted to using the print() statement throughout my code. One big disadvantage of this is that all statements are written to the server console. When developing with a team this can get messy (and won’t make your administrators happy), so I looked for a different way to output debug messages. I already use OpenLog to log information to a database, but find it annoying to switch everytime between Designer client, Notes client and [read] Keywords: notes notes client script library xpages application database openntf server
56


Debugging XPages and SSJS just gotten a bit easier
Thu, Jan 12th 2012 5:11a   Mark Leusink
Since there isn't a way to debug SSJS (yet) I mostly resorted to using the print() statement throughout my code. One big disadvantage of this is that all statements are written to the server console. When developing with a team this can get messy (and won't make your administrators happy), so I looked for a different way to output debug messages. I already use OpenLog to log information to a database, but find it annoying to switch everytime between Designer client, Notes client and browser. [read] Keywords: notes notes client script library xpages application bleedyellow bleedyellow.com database openntf server
42


HTML Mails from XPages – part 2: inline images
Thu, Dec 8th 2011 1:35p   Mark Leusink
I’ve updated the HTML mail SSJS library I wrote about yesterday and have added inline images support. This can come in handy when you want to create HTML newsletters. Marking an image as “inline” can be done by adding an extra parameter to the addDocAttachment() / addFileAttachment() methods: mail.addDocAttachment( "5203C670815BC8C4C12579270029C543", "header.gif", true ); The addDocAttachment/ addFileAttachment methods now return the Content ID of the image in the message. [read] Keywords: notes xpages database email
50


HTML Mails from XPages - part 2: inline images
Thu, Dec 8th 2011 1:11p   Mark Leusink
I've updated the HTML mail SSJS library I wrote about yesterday and have added inline images support. This can come in handy when you want to create HTML newsletters. Marking an image as "inline" can be done by adding an extra parameter to the addDocAttachment() / addFileAttachment() methods: mail.addDocAttachment( "5203C670815BC8C4C12579270029C543", "header.gif", true ); The addDocAttachment/ addFileAttachment methods now return the Content ID of the image in the message. That ID [read] Keywords: xpages bleedyellow bleedyellow.com database email
34


Send a HTML mail from an XPage with only 5 lines of code
Wed, Dec 7th 2011 1:50p   Mark Leusink
Sending an e-mail from an XPage (using SSJS) is not too difficult, especially if you’ve done it before in LotusScript: var doc:NotesDocument = database.createDocument(); doc.replaceItemValue("form", "Memo"); doc.replaceItemValue("sendTo", "mark@domain.com"); doc.replaceItemValue("subject", "hi there!"); doc.replaceItemValue("body", "content here"); doc.send(); It gets a bit more difficult though if you want to send out HTML mails. To create those you need to work with stuf [read] Keywords: lotusscript script library application bleedyellow bleedyellow.com database email server
207


Send a HTML mail from an XPage with only 5 lines of code
Wed, Dec 7th 2011 5:11a   Mark Leusink
Sending an e-mail from an XPage (using SSJS) is not too difficult, especially if you've done it before in LotusScript: var doc:NotesDocument = database.createDocument(); doc.replaceItemValue("form", "Memo"); doc.replaceItemValue("sendTo", "mark@domain.com"); doc.replaceItemValue("subject", "hi there!"); doc.replaceItemValue("body", "content here"); doc.send(); It gets a bit more difficult though if you want to send out HTML mails. To create those you need to work wi [read] Keywords: lotusscript script library application bleedyellow bleedyellow.com database email server
167


The order of events in XPages
Wed, Nov 23rd 2011 5:12a   Mark Leusink
After reading another question on the XPages forum about which (serverside) events are triggered if you use the browsers "back" button on on XPage, I decided to run some tests. First thing I did was to set up a simple test XPage (page1.xsp): The order of events triggered when opening this XPage is as expected: beforePageLoad afterPageLoad beforeRenderResponse afterRenderResponse Not [read] Keywords: ibm ldd lotus xpages javascript xml
42


The order of events in XPages
Wed, Nov 23rd 2011 1:40a   Mark Leusink
After reading another question on the XPages forum about which (serverside) events are triggered if you use the browsers “back” button on on XPage, I decided to run some tests. First thing I did was to set up a simple test XPage (page1.xsp): The order of events triggered when opening this XPage is as expected: beforePageLoad afterPageLoad beforeRenderResponse afterRenderResponse Note that the afterRestoreView event isn’t executed: that event gets onl [read] Keywords: ibm ldd lotus xpages javascript xml
67


Multi-page messages in XPages
Mon, Nov 21st 2011 5:09a   Mark Leusink
The JSF framework on which XPages are built has built-in functions to display messages to users. You can see this in use if you add a validator to a field and disable clientside validation in the application properties: if the validation fails, a message is added to the FacesContext object that can be displayed on screen by including a Display Errors () control. It is also possible to add your own custom messages by using the facesContext.addMessage() method. This was described by Tommy Valand [read] Keywords: xpages application bleedyellow bleedyellow.com consulting database java properties xml
39


Multi-page messages in XPages
Mon, Nov 21st 2011 1:58a   Mark Leusink
The JSF framework on which XPages are built has built-in functions to display messages to users. You can see this in use if you add a validator to a field and disable clientside validation in the application properties: if the validation fails, a message is added to the FacesContext object that can be displayed on screen by including a Display Errors () control. It is also possible to add your own custom messages by using the facesContext.addMessage() method. This was described by Tommy Valand o [read] Keywords: xpages application consulting database java properties xml
91


Exploring OneUI v2.1 in Domino 8.5.3
Wed, Sep 28th 2011 6:09a   Mark Leusink
While exploring the new features of Domino 8.5.3 I found out that OneUI v2.1 is now installed automatically with the server. Since I'm using OneUI in a couple of applications I wanted to see what the differences are compared to version 2.0. My starting point was IBM's Lotus OneUI documentation site, but the last documentation change was performed in 2009. Although the structure of OneUI hasn't changed, the examples on that site are all based on OneUI v2.0. A Google search also didn' [read] Keywords: domino ibm ldd lotus xpages application applications bleedyellow bleedyellow.com consulting css dojo firefox google javascript server
40


Exploring OneUI v2.1 in Domino 8.5.3
Wed, Sep 28th 2011 2:27a   Mark Leusink
While exploring the new features of Domino 8.5.3 I found out that OneUI v2.1 is now installed automatically with the server. Since I’m using OneUI in a couple of applications I wanted to see what the differences are compared to version 2.0. My starting point was IBM’s Lotus OneUI documentation site, but the last documentation change was performed in 2009 (UPDATE 01/12/2011: the OneUI v2.1 documentation is now available). Although the structure of OneUI hasn’t changed, the examp [read] Keywords: domino ibm ldd lotus application applications consulting css database dojo firefox google javascript server xml
257


XPages: server vs. client-side redirects
Wed, Jul 27th 2011 7:09a   Mark Leusink
If you want to redirect a user to another XPage you can use the redirectToPage function: context.redirectToPage( "someXPage.xsp" ); context.redirectToPage( "someXPage" ); You can also add parameters to this call if you need to: context.redirectToPage( "someXPage.xsp?action=openDocument" ); context.redirectToPage( "someXPage?action=openDocument" ); If you want to redirect the user to another site, you can use the redirect method: facesContext.getExternalContext().redirect(" [read] Keywords: xpages server
26


XPages: server vs. client-side redirects
Wed, Jul 27th 2011 12:06a   Mark Leusink
If you want to redirect a user to another XPage you can use the redirectToPage function: context.redirectToPage( "someXPage.xsp" ); context.redirectToPage( "someXPage" ); You can also add parameters to this call if you need to: context.redirectToPage( "someXPage.xsp?action=openDocument" ); context.redirectToPage( "someXPage?action=openDocument" ); If you want to redirect the user to another site, you can use the redirect method: facesContext.getExternalContext().redirect("http://www.cnn [read] Keywords: xpages server
123


Forget about the time when comparing dates in SSJS
Mon, Jun 20th 2011 6:13a   Mark Leusink
I needed to compare two dates in SSJS and determine if a date was on or before tomorrow. Sounds pretty easy but it took me a while to figure this out. The hard part was that I needed to remove the time part, I only wanted to compare the dates. As always (or most of the times) the solution turned out to be pretty simple and involved using the @Date() function. So if you ever need to do the same, just use the following (note that all dates are java.util.Date instances, not NotesDateTime objects) [read] Keywords: xpages java javascript
52


Error while using sessionAsSigner calls
Fri, May 27th 2011 6:09a   Mark Leusink
Yesterday, apparently for no reason, I started getting all errors in my XPage application. Investigating it more I found out that the root cause was a problem with the sessionAsSigner function. The error I was getting was: 'sessionAsSigner' not found So I started thinking what changed in the last week and might have caused this error. I made no configuration changes and performed no updates. The only thing I changed was that I started using the server with another user ID. I looked i [read] Keywords: application bleedyellow bleedyellow.com database security server twitter
75


Getting SVN to work in Domino Designer 8.5.2
Tue, Apr 12th 2011 6:12a   Mark Leusink
As you might (or might not) know, I'm working together with Patrick Kwinten on Bildr. In the past we've exchanged NSF files containing changes we both made to the application. I was looking for an easier way to do this and thought about using a shared Domino server, when I read about the Source Control Enablement project on OpenNTF. The plugin adds SVN support to the Designer client. I've used version control using Subversion in the past and know it's a great option when working with multipl [read] Keywords: domino ibm application eclipse google openntf server
173


Using scheduled XPages
Thu, Feb 24th 2011 5:11a   Mark Leusink
When building a new XPage application from the ground up you store your code in script libraries and Java classes. You can also use XPages in "agent-style" that don't render anything. But then you require scheduled agents and come to the conclusion that you can't include any of the code you've already written in your scheduled agent or schedule an XPage. Unless... you use a scheduled agent to trigger the XPage. Here's how to do so. Create a scheduled Java agent. Set the runtime securit [read] Keywords: admin agent domino ibm ldd lotus xpages application database java password security server
59


Quick tip: setting the alt and title attributes in an XPage Image control
Wed, Feb 23rd 2011 5:09a   Mark Leusink
If you set the "alternate text" property on an XPage Image control, a tooltip is shown in Internet Explorer when you hover your mouse pointer over the image. In Firefox however, nothing is shown. The cause of this is that setting the "alternate text" renders as the "alt" attribute which is only rendered as a tooltip in Internet Explorer. To show a tooltip in FireFox, you need to set the "title" attribute. I'm not going to discuss what the correct browser behavior should be: that has be [read] Keywords: xpages firefox google properties
60


Disable automatic scrolling in an XPage
Wed, Feb 9th 2011 5:14a   Mark Leusink
Suppose you've created an XPage with a form on it. You've added a nice Save-button on the bottom and have included some server-side validation functions. The validation errors (if any) are shown at the top of the form using a "Display Errors" control. On pressing that Save-button, the XPage automatically collects the position of the button and sends it along with the rest of the form to the server. This is done by the following row in xspClientDojo.js (called in the _doFireEvent function) [read] Keywords: xpages javascript server
107


XPage vs form security: create-only access
Mon, Feb 7th 2011 6:12a   Mark Leusink
If I wanted to control who could create a document with a form I would add a role to the database's ACL (lets assume it's called [docCreator] ) and set the form property "Who can create documents with this form" to that role. Note that this doesn't control who can edit the document created with it or read a document using the form: that's controlled by the readers/authors field(s) on the document. This form property doesn't have any effect on an XPage that uses that form as a data sour [read] Keywords: acl xpages bleedyellow bleedyellow.com database security wiki
24


Bildr: getting better with every release (check out the new uploader!)
Wed, Dec 8th 2010 5:13a   Mark Leusink
div style=margin-top: 15px; After reading his a href=http://www.openntf.org/Internal/home.nsf/helpwantedList.xsp target=_blankrequest for help/a on OpenNTF I teamed up with a href=http://quintessens.wordpress.com target=_blankPatrick Kwinten/a to help him in enhancing Bildr. One of the major improvements Ive worked on is implementing a web based uploader for images. Bildr 3, which includes the web uploader, was a href=http://quintessens.wordpress.com/2010/12/03/released-bildr-3-0/#comments targe [read] Keywords: agent notes notes client xpages bug css dojo firefox google java javascript openntf server
47


Add some animation to your XPage sections
Fri, Nov 19th 2010 8:13a   Mark Leusink
style type=text/css div.ml { margin-top:15px; margin-bottom:15px; } div.mlCode { background: none repeat scroll 0% 0% rgb(255, 255, 198); font-family: courier; font-size: 12px; padding: 10px; margin: 15px; border: 1px solid silver; white-space:pre; } /style div class=mlXPage sections (lt;xp:sectiongt;) are shown/ hidden by default using no animation at all. Personally I think that adding a wipe in/ wipe out effect looks much better. Try it on the sections next to this article./div divAdding [read] Keywords: css dojo
52


XPages: Multiple file upload custom control - documentation updated
Wed, Nov 10th 2010 8:17a   Mark Leusink
div style=margin-top: 15px; margin-bottom: 15px;I recently wrote an a href=http://www.bleedyellow.com/blogs/m.leusink/entry/xpages_multiple_file_upload_custom_control?lang=en target=_blankentry/a about the XPage Custom Control version of my file uploader and made a promise to update the documentation. I finally got around to doing it yesterday evening and have included a section on how to reuse the file uploader custom control in your own applications. It can be downloaded a href=http://www.blee [read] Keywords: xpages applications bleedyellow bleedyellow.com openntf
124


XPages: Multiple file upload custom control
Wed, Nov 3rd 2010 9:27a   Mark Leusink
div style=margin-top: 15px;About two months ago I wrote a demo application for a a href=http://www.bleedyellow.com/blogs/m.leusink/entry/multiple_file_uploads_using_a_flash_component1?lang=en target=_blankmultiple file uploader/a. It allows you to do file uploads to a Domino server in a much more user friendly way than with the default browser controls. The uploads are done using an (open source) Flash component called a href=http://code.google.com/p/swfupload target=_blankSWFUpload/a. The demo [read] Keywords: domino xpages ajax application bleedyellow bleedyellow.com css google javascript server
194


XPages: Multiple file uploads using HTML5 with drag-n-drop and progress bar support
Wed, Nov 3rd 2010 9:27a   Mark Leusink
div style=margin-top: 15px;Using HTML5 it is possible to upload multiple files and use drag-n-drop in a browser natively. It also allows you to drag files from your computer into your browser. a href=http://www.plupload.com/ target=_blankPlupload/a is an open source upload handler that includes a number of different runtimes to do file uploads, including a HTML5 based uploader. The HTML5 based uploader includes drag-n-drop support. With the knowledge of my XPages based file upload custom control [read] Keywords: xpages application bleedyellow bleedyellow.com firefox google
88


Processing files uploaded to an XPage
Sun, Oct 24th 2010 4:34p   Mark Leusink
div style=margin-top: 15px;Recently I read a very interesting a href=http://www.bleedyellow.com/blogs/andyc/entry/intercepting_a_file_upload4?lang=en target=_blankblog entry/a from Andy Cunliffe. He discovered a way to get a handle on uploaded files to an XPage. Just like him I also discovered that parsing files from the HttpServletRequest.getInputStream() using Apache Commons didnt work, but he kept digging deaper. Based on his find I also experimented some more and completed a code example. Th [read] Keywords: domino ibm lotus notes rich text xpages bleedyellow bleedyellow.com java javascript server
85


Serving binary files through XPages (including a Save As dialog if you want to)
Thu, Oct 21st 2010 4:30a   Mark Leusink
div style=margin-top: 15px;Ever wanted to track the number of downloads for a file? Log that a specific user has downloaded a file? Or showing users the quot;Save asquot; dialog instead of opening an image or PDF directly in his browser? Heres how to do so using XPages./div div style=margin-top: 15px;In his article a href=http://www.wissel.net/blog/d6plinks/SHWL-7MGFBN target=_blankquot;Web Agents XPages stylequot;/a, Stephen Wissel describes a method to generate your own output for an XPage. H [read] Keywords: ibm xpages application database java
76


Dojo-style confirm dialogs in Xpages
Wed, Oct 13th 2010 10:27a   Mark Leusink
div style=margin-top: 15px;The Dojo toolkit doesnt have a widget for confirm dialogs (yet). Since dialogs like this:br / img src=/blogs/m.leusink/resource/confirm_dialog/confirm.png style=margin: 20px; clear: both; /br / kind-of stand out in any modern application, Ive created a custom confirm dialog so you can confirm actions a bit more fashionable. It also allows you to style a confirm action the way you want to:br / img src=/blogs/m.leusink/resource/confirm_dialog/confirm-dojo.png style=margi [read] Keywords: xpages application database dojo javascript widget
56


Re: Xpages - How to dynamically add client side script library to custom control?
Thu, Oct 7th 2010 10:27a   Mark Leusink
pIn response to: a href=http://www.bleedyellow.com/blogs/ferrykranenburg/entry/xpages_how_to_dynamically_add_client_side_script_to_custom_control1Xpages - How to dynamically add client side script library to custom control?/a/pIf you want a script tag in the HTML head of an XPage with a formula using variables, using a computed field (with a HTML type) wont work: the script will be added to the body. divnbsp;/div divnbsp;/div After reading this post (http://www-10.lotus.com/ldd/heidloffblog. [read] Keywords: ldd lotus script library xpages blackberry bleedyellow bleedyellow.com google javascript
39


Please cache this XPage
Fri, Oct 1st 2010 7:27a   Mark Leusink
div style=margin-top: 15px;When you use an XPage to completely render your own response as described a href=http://www.wissel.net/blog/d6plinks/SHWL-7MGFBN target=_blankhere/a, you can add a bCache-Control/b header with a bno-cache/b value to prevent the response from being cached. But what if you do want the response to be cached? I needed this to serve a page containing a set of javascript configuration settings that (almost) never change./div div style=margin-top: 15px;Turns out to be pretty [read] Keywords: application javascript oracle server
46


Debugging client side JavaScript libraries in Xpages
Mon, Sep 27th 2010 5:30a   Mark Leusink
div style=margin-top: 15pxA number of JavaScript libraries are loaded if you open an XPage. These include the Dojo libraries, but a set of custom libraries as well. More information about these client side libraries can be found in a href=http://www-10.lotus.com/ldd/ddwiki.nsf/page.xsp?documentId=FC629E5603DB150A852574F900569592amp;action=openDocument target=_blankthis/a Domino Designer wiki article./div div style=margin-top: 15pxBy default the server serves a compressed version of these files [read] Keywords: domino ibm ldd lotus xpages dojo firefox javascript server wiki
49


Putting your Xpage to sleep
Thu, Sep 23rd 2010 5:30a   Mark Leusink
div style=margin-top: 10px;Im currently working on rewriting my a href=../../m.leusink/entry/multiple_file_uploads_using_a_flash_component1?lang=enmultiple-file uploader/a using Xpages/ custom controls. I encountered a problem when embedding the control on an Xpage based form. When the quot;savequot; button on the form is called, the uploads are started but I needed the Xpage to wait until all files had been uploaded./div div style=margin-top: 10px;My first try was to implement a sleep function [read] Keywords: xpages java javascript oracle
62


Xpages: hiding your forms and use of the Display XPage instead option
Fri, Sep 17th 2010 10:02a   Mark Leusink
div style=margin-top: 15px;If you want your web users to always use an XPage instead of a form, you enable the option quot;Display XPage insteadquot; on the form properties and select the XPage to use when opening documents based on that form. When a user now opens a document from a standard view (e.g. a link like db.nsf/view/key?openDocument), the XPage is shown. It even detects if the user wants to view (?openDocument) or edit (?editDocument) the document. /div div style=margin-top: 15px;If y [read] Keywords: acl domino notes notes client xpages applications properties security
212


Xpages: Sort the results of a full-text query (server side and by any column)
Wed, Sep 15th 2010 8:30a   Mark Leusink
pWhen performing a full text search on a view or database the results are returned by relevance. But relevance isnt always the best way to show the results. You or your users are probably more interested in the order the documents were shown in the view or sorted by some other column./p pBeing able to resort the search results requires some coding in your XPage. a href=http://www.juliusbuss.de/web/youatnotes/blog-jb.nsf/dx/follow-up-to-sorted-ftsearch-results-in-xpages-with-code.htm?opendocument [read] Keywords: agent xpages bleedyellow bleedyellow.com database java javascript properties server
67


Multiple-file uploads to Domino (and a progress bar)
Fri, Sep 10th 2010 4:40a   Mark Leusink
divBeing able to upload multiple-files to a Domino server from a browser in an easy way is a subject that has always interested me, and with me probably lots of others. Since it might be a while until the a href=https://developer.mozilla.org/en/using_files_from_web_applicationsmultiple-files upload/a option in HTML5 is supported in all of my users browsers, I decided to try to implement one of the open source Flash uploaders. The Flash uploaders use a (semi)hidden Flash component that handles th [read] Keywords: domino notes ajax application bleedyellow bleedyellow.com css database dojo javascript openntf server
65


Xpages quick-tip: keyboard shortcut to close the script dialog
Tue, Aug 31st 2010 9:05a   Mark Leusink
divThe keyboard shortcut for pressing the Ok button in the script dialog is bCtrl - Enter/b.  The Esc-key is the equivalent of the Cancel button./divdiv /divdivNow you can code your XPages even faster :-) br //div [read] Keywords: xpages
38


Human Readable Dates in XPages
Thu, Aug 26th 2010 7:43a   Mark Leusink
divIf I display a date/time in a view I can enable the option quot;show today if appropriatequot;. This will replace todays (or yesterdays) date with the text quot;Todayquot; (or quot;Yesterdayquot;). I wanted to have the same functionality in an Xpage-based application Im creating, but couldnt find the XPage equivalent./divdiv style=margin-top: 10px;After some searching on the web I found an article written by Matt White (a href=http://mattwhite.me/blog/2009/6/28/human-readable-dates-in-xpages. [read] Keywords: script library xpages application bleedyellow bleedyellow.com javascript
164


Beware of what getColumnValue is returning
Mon, Aug 16th 2010 9:03a   Mark Leusink
When working with view columns that might contain multiple values, remember that the return value of the getColumnValue(quot;columnquot;) method from the NotesXspViewEntry object is different depending on the number of values in the column of a specific view entry:br /divul style=margin-top:10pxliIf the view entry contains a single value, a bstring/b is returned./liliIf the view entry contains multiple values, it returns a bVector/b. /li/ul/divdiv style=margin-top: 10pxIf you always want to have [read] Keywords: xpages java
65


Using OpenLog for logging/ debugging Xpages
Wed, Aug 11th 2010 10:04a   Mark Leusink
pIt probably wont make your admins happy if you constantly use print(quot;thisquot;) in you Server-Side Javascript code to print debug or error messages to the servers console. Luckily there is a good alternative: use OpenNTFs a href=http://www.openntf.org/internal/home.nsf/project.xsp?action=openDocumentamp;name=OpenLogOpenLog/a project to log everything to a central database. The only problem is that the database doesnt contain a library for Xpages (yet)./p pAfter some digging I found out that [read] Keywords: script library xpages application database ideajam javascript openntf server




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition