Last week, when preparing for the XPages Mobile Controls session at BLUG, Eamon Muldoon introduced me to a useful tip when testing on iOS. The problem is that many browsers such as Firefox and Safari use, by default, webkit styling, so use Android stylesheets.
But Safari has an option to change the user agent.
The first step is to enable the Develop menu. Go to Edit – Preferences. Then on the Advanced tab, check Show Develop menu in menu bar.
This will enable the Develop menu. From here you can go to the User Agent submenu and change the user agent to e.g. iPhone, iPad, or choose Other… to set up a custom user agent.
Now you can use the browser to see the iOS stylesheets and simulate functionalityfor a specific user agent.
XPages OpenLog Logger v5.0
Wed, Apr 23rd 2014 8:12a Paul Withers Events in my personal life took over at the end of March, and I realised I had not yet blogged about the last release of XPages OpenLog Logger. This had a number of feature enhancements.
The first was to move the openLogBean from requestScope to sessionScope. The reason for doing this was to address issues developers had encountered when an error is logged and the code subsequently redirects to a different XPage. Once a redirect happens, it’s a new request on the server, so requestScope, a [read] Keywords: domino
Mastering XPages 2nd Edition Released
Tue, Apr 22nd 2014 7:12a Paul Withers Mastering XPages has been released today by IBM Press, as followers of Twitter or anyone who pre-ordered the book from IBM Press. Amazon will be shipping shortly.
I had the honour or being one of the technical editors of the book and it is well worth investing in, whether you bought the first edition or not. There is a vast amount of new material (1168 pages compared to 784) including a number of additional examples for real-life applications like managing document locking in XPages. Not surpris [read] Keywords: domino
Adding Bootswatch Themes to Bootstrap4XPages
Mon, Apr 7th 2014 7:11a Paul Withers Last week I started playing with Bootstrap4XPages. It’s been around for a few months now and is part of OpenNTF Essentials. But I finally got round to playing with it.
Although having lots of whitespace seems in vogue for websites, personally I don’t like that. So one of my first steps was to change the theme. Fortunately, Bootswatch allows a host of themes to just lay on top of Bootstrap, in the same kind of way versions of OneUI have various themes.
Tim Tripcony did a NotesIn9 some [read] Keywords: xpages application
OpenNTF Domino API: Understanding Listeners
Wed, Mar 26th 2014 7:11a Paul Withers Since M3 we’ve had Listeners implemented in the OpenNTF Domino API. Although there’s potential for even greater implementation of listeners through the API, they’re already extremely powerful.
Think about triggering specific code whenever a document is saved from XPages. The concept is very powerful and there has been an example in the Demo database for many months. But as I’ve been going through reviewing Javadoc comments in the API, I’ve realised it’s never [read] Keywords: domino
Show Submit Button Only When All Mandatory Fields Completed
Thu, Mar 20th 2014 4:11p Paul Withers Today I had this query about refreshing multiple areas of the page on a blog post about partial execution:
I have several input text fields with onChange events that do a partial updates on panels (a panel for each field) that contain the images that display whether the required field is completed. But I also have a submit button at the top of the xPage, that only becomes usable when all required fields are completed. So, I’d like to be able to refresh that button also, from each required fiel [read] Keywords: xpages java
Slides from OpenNTF Domino API Session at Engage
Thu, Mar 20th 2014 3:11p Paul Withers Earlier this week I had the pleasure to present with Martin Jinoch at Engage in Nertherlands. It was good to present on the API with someone who’s main involvement has been as a consumer, though very much an active member of discussions on existing and new functionality.
Here are the slides, which included more recent developments like picker data sources and a formula parser. A new release of the API will be coming out in the coming weeks, so stay tuned. [read] Keywords: domino
Method Parameters and The Importance of Final in Java
Thu, Mar 6th 2014 6:11a Paul Withers Most developers (certainly myself!) are lazy. We look to re-use code and write the briefest code we can.
Sometimes it backfires!
When writing a method, either in Java or LotusScript, we can often pass parameters around with little concern. I came across that some years ago with LotusScript when objects were being changed by a function when I didn’t intend that. That was when I learned that you could define a sub or function in two ways. So consider the following code:
Dim myStr as String
[read] Keywords: lotusscript