359 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Prefered way for referencing Beans from Java
Wed, Feb 20th 2013 153
Inline HTML vs. Components, the showdown
Sun, Feb 17th 2013 101
Be careful feeding the ResponseWriter, use big bites
Thu, Jan 17th 2013 147
Slides for "On REST and Beans"
Thu, Jan 10th 2013 84
Use HTML5 elements in Internet Explorer 6-8
Fri, Jul 6th 2012 126
Quick tip: Get hostname with EL
Thu, May 31st 2012 154
Settings bean - parameterized method call from EL
Mon, Apr 23rd 2012 126
Top 10
Multiple file upload, the easy way
Mon, Apr 25th 2011 236
How to set the correct DOCTYPE
Fri, Dec 16th 2011 157
Quick tip: Get hostname with EL
Thu, May 31st 2012 154
Prefered way for referencing Beans from Java
Wed, Feb 20th 2013 153
Be careful feeding the ResponseWriter, use big bites
Thu, Jan 17th 2013 147
Bulk cleanup old Working Set databases
Sun, May 15th 2011 136
Fix default type for submit buttons in IE
Sun, Jun 19th 2011 130
Settings bean - parameterized method call from EL
Mon, Apr 23rd 2012 126
Use HTML5 elements in Internet Explorer 6-8
Fri, Jul 6th 2012 126
Xpages - Java Bean lessons of the day
Wed, May 25th 2011 118


Thimo Jansen
 
Blog Title Defrog Blog
Blog Description Tips and ticks from Thimo Jansen, a Web Developer specialized in XPages and Java
Blog URL http://blog.thimojansenit.nl
RSS Feed http://blog.thimojansenit.nl/feeds/posts/default?alt=rss
PlanetLotus Feed http://planetlotus.org/profiles/rss/thimo-jansen
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Oct 31, 2014 9:12:28 PM EST. Realtime Update:
Landed Here May 11, 2011
Location Arnhem, the Netherlands
Posts: # / 1st / Latest - -
Total Hits 2,121. myPL RSS Selections: 14


Recent Blog Posts
153


Prefered way for referencing Beans from Java
Wed, Feb 20th 2013 2:11p   Thimo Jansen
When working in XPages SSJS (Server Side Javascript) it is very easy to reference your Managed Beans. Say you want to print the name of the user to the console and have a bean named User with a method getUsername(), you simply call: print(User.getUsername()); In Java it is not quite that easy, you have to dig a lot deaper to reach the bean. Examples on how to to this are readily available on the internet, copy/paste one in a Utils class and you end up with something like this: package nl.defrog [read] Keywords: xpages application java javascript server
101


Inline HTML vs. Components, the showdown
Sun, Feb 17th 2013 12:06p   Thimo Jansen
The last few days there was a bit of discussion in the XPages community on using inline HTML in XPages versus components. So whether you should write My little div (inline HTML) or My little div (component). Paul Withers wrote a very nice blog (HTML or XPage Component) explaining what happens behind the scenes when you save your XPage. Read the blog if you haven’t already, you won’t regret it! To summarize: the XPage’s XML is converted to Java and, compared to the XPage with i [read] Keywords: ibm xpages community java javascript twitter xml
147


Be careful feeding the ResponseWriter, use big bites
Thu, Jan 17th 2013 2:54p   Thimo Jansen
Earlier this week I got bitten by one of the consequences of writing JavaScript code in a Java environment. There are some things you need to be aware of and I for one was not. In this case: the XPages run-time can't always determine what the type is of the JavaScript value you're feeding to a Java method. It can be problematic with single position values, either a string or a number. Is it a char, a String or an int? What's happening? Consider the following XPage: You would expect th [read] Keywords: domino ibm xpages blogger bug java javascript openntf server xml
84


Slides for "On REST and Beans"
Thu, Jan 10th 2013 1:12p   Thimo Jansen
Last month I did a presentation called "On REST and Beans" on the Dutch XPages & Beer event. It was my first ever presentation on a technical subject and I felt quite a bit of tension beforehand. But the presentation went well and I got some very nice, positive feedback. That convinced me to submit an abstract, on the same subject, for BLUG. Fingers crossed! The slides are in Dutch. If my abstract for BLUG gets accepted, I'll make an English version. Of REST and Beans from Thimo Ja [read] Keywords: xpages
126


Use HTML5 elements in Internet Explorer 6-8
Fri, Jul 6th 2012 1:33p   Thimo Jansen
One of the (as you probably know many) problems with Internet Explorer is that up to version 8 it refuses to render unknown HTML elements. Being created before the HTML5 standard was finalized, you're out of luck if you want to make a nice HTML5 web site and use the new elements like header, footer or menu. IE will treat them as inline elements and not apply any styling you defined in a stylesheet. Fortunately, it turns out to be pretty easy to teach IE about these new elements, so that it wil [read] Keywords: xpages applications blogger javascript xml
154


Quick tip: Get hostname with EL
Thu, May 31st 2012 4:03a   Thimo Jansen
Here's a quick little tip, something I hadn't realized before and wanted to share. Normally when I need to get the host name used in the current request I would do something like: #{javascript:context.getUrl().getHost()}It's a Javascript call, which is always slower than pure Java or Expression Language (EL). Where possible I try to use EL instead of Javascript. So, can you achieve the same result with EL? Yes, and it's actually pretty straightforward. Just drop the "get" and "()" and [read] Keywords: xpages blogger java javascript wiki




126


Settings bean - parameterized method call from EL
Mon, Apr 23rd 2012 2:19p   Thimo Jansen
With Xpages it's convenient to keep your settings in a properties file. They're easy to create, maintain and access from EL (Expression Language), SSJS (Server Side JavaScript) and Java. And they're fast too! But what if your settings are somewhere else, like in a central database? What can you do to create something that works from all three languages (EL, SSJS and Java) and have it fast too? Beans are great for solving these kind of problems. But there's one issue: it's not possible to u [read] Keywords: xpages blogger database interface java javascript properties server wiki
76


Easy to print Lotusphere 2012 Pocket Agenda
Wed, Jan 11th 2012 2:28a   Thimo Jansen
IBM provides a PDF with an overview of everything Lotusphere: the Lotusphere Pocket Agenda (for a download link, see Lotusphere 2012 sessions page). It's a really nice reference, but the PDF is a bit of a challenge to print on A4 or Paper. Last night I had some fun with combining and rotating the pages to get an easily printable PDF and here I share them with you (hoping IBM doesn't mind). There are two versions: Printed onto A4, with 4 pages combined per page. These require eagle eyes or re [read] Keywords: ibm lotus lotusphere blogger
157


How to set the correct DOCTYPE
Fri, Dec 16th 2011 3:33a   Thimo Jansen
By default Domino prints out the following, half decent DOCTYPE, leaving out the link to the DTD: This causes browsers to render the page in quirks mode and not care very much about standards. This makes it harder to get pages to render the same in the different browsers (Internet Explorer, Firefox, Chrome). If you care about a correct layout of the page you would want something like: Or if you're lazy, like I am, and maybe want to pretend to do HTML 5, use: For Xpages it's simply a se [read] Keywords: agent domino lotusscript xpages application blogger firefox properties
69


Wish list for Xpages development
Wed, Dec 14th 2011 3:25a   Thimo Jansen
Just in time for the holiday season, here's my Santa Claus wish list for enhancements in Domino Designer to aid Xpages development. Building websites, or should I say web applications, in Designer has become an absolute joy with the introduction of Xpages. With each new release the IDE becomes more advanced and the capabilities of the platform are unheard of. Thank you Santa! But there are things left to be wished for. Here's my short list. And allow me to leave out the obvious things like a [read] Keywords: domino xpages apple application applications blogger database development java
80


Fix IE9 submit events
Sun, Jun 19th 2011 2:14p   Thimo Jansen
In my previous blog on how to fix the default type for buttons in IE I ended with a remark that although the method described fixes the button type, in Internet Explorer 9 the save action still does not work. This seems to be IE9 specific, as IE8 works as expected. After a bit of reverse engineering I found the cause of the problem and came up with a solution. Looking at the submitted data there is a difference between Firefox and Internet Explorer 9. In IE9 the field $$xspsubmitid is empty, i [read] Keywords: ibm blogger dojo firefox javascript server widget
130


Fix default type for submit buttons in IE
Sun, Jun 19th 2011 9:13a   Thimo Jansen
For submit buttons - you know, the new Click me type - to work properly in Internet Explorer you have to explicitly add the type of the button. So the above example becomes Click me. With Themes in Xpages it's very easy to fix this on an application wide level. Open your favorite themeAdd the following tags: Button.Submit type submit Now all the buttons in your application with an Xpages button of "Button type" "submit" will have the t [read] Keywords: xpages application blogger
118


Xpages - Java Bean lessons of the day
Wed, May 25th 2011 9:10a   Thimo Jansen
This Xpages stuff is still fairly new to me and there are lots of little things I struggle with. Today was spend trying to figure out how to build some of the log-in/log-out logic. For a couple of problems I could not find a direct answer on the internet, so I thought I'd share what I came up with. Remove a bean from the session In the application I'm building there's this "User" bean that holds all kinds of user data and provides some application logic. When the user clicks the log out b [read] Keywords: xpages application blogger java javascript properties xml
55


Bulk cleanup old Working Set databases, part 2
Sun, May 15th 2011 1:12p   Thimo Jansen
Earlier today I wrote a post describing how you could cleanup the Working Set by editing the XML that stores the Working Sets. I stated that you cannot do this though the Package Explorer view, as a delete from the view would also remove the database. That turns out to be wrong and thanks to Nathan Freeman for pointing it out. When you delete an entry from the Package Explorer view, it asks for confirmation and displays a checkbox with "Delete project contents on disk". I thought it was about [read] Keywords: domino blogger database development server workspace xml
136


Bulk cleanup old Working Set databases
Sun, May 15th 2011 6:11a   Thimo Jansen
Domino Designer's Workings Sets are a great help in the life of a Lotus Domino developer. They make switching between projects a lot easier and up your productivity. But after a while they become cluttered with databases you might not be working on anymore. Cleaning up from either Designer's Application view or the "Managing Working Sets" popup can only be done one database at a time. And it's a slow process, not something you'd want to full your working day with. The Package Explorer vie [read] Keywords: domino lotus notes application blogger database eclipse workspace xml
68


Recover Designer Working Sets
Wed, May 11th 2011 3:53p   Thimo Jansen
If your Domino Designer environment is as stable as mine, you loose your precisely crafted Working Sets at least once a week. I still do not know why Designer is as instable as it has been the last few weeks, but at least I have found a way to recover a lost Working Set. Hooray! The first step is to make sure you have a backup of the notes/data directory. I recommend CrashPlan+. The family plan is hard to beat in price if you have more than one computer or a couple of VM's. It allows you to do [read] Keywords: domino notes blogger eclipse vm workspace xml
236


Multiple file upload, the easy way
Mon, Apr 25th 2011 12:35p   Thimo Jansen
It turns out to be very easy to offer a multiple file upload control in Lotus Domino. If, and that's the big one, the end-user is on Firefox, Safari or Chrome. Internet Explorer, even including version 9, doesn't support this. The steps are as follows: Add a File Upload Control to a Notes formOpen its properties and go to tab "" Add "multiple" to the field "Other"Open the form in one of the supporting browsers, click "Browse" and you can select and upload multiple files with one uploa [read] Keywords: domino lotus notes blogger firefox properties
42


Search for empty fields
Mon, Mar 21st 2011 2:38p   Thimo Jansen
For many, many years I thought there was no way to search for empty fields in documents. I thought it was not possible, but it turns out it is: The answer is to use the search term "NOT [fieldname] is present", of course substituting "fieldname" with the actual name for your application. Source: Alan Lepofsky's post Searching for blank fields. Thanks to @arnecoomans for the tip! [read] Keywords: application blogger twitter
63


Don't use shared fields on mail forms
Fri, Mar 18th 2011 2:39p   Thimo Jansen
Domino provides an easy way to send database documents by email (SMTP) without requiring any work on formatting it: let Domino use the document's form to figure out a way to render the ASCII email. In LotusScript it works like this:Call .send(True)Even when sent through SMTP, the email will still kinda look like the way the document's form was designed. Easy and convenient, when looks are not that important.But today I just couldn't get the document to be included in the email. Whatever I tri [read] Keywords: domino lotusscript blogger database email smtp




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