A view in to your data  

By Declan Sciolla-Lynch | 3/1/17 2:49 PM | - | Added by Oliver Busse

In the Domino world the data store is part of the application container. When building your app you will invariably start by creating your forms and views to hold the basic structure of the data. For this Spring Boot based application I am going to start with the same step of building my data.

Getting To The Java Roots of XPages – Part 14  

By Declan Sciolla-Lynch | 3/18/13 8:47 AM | - | Added by Per Henrik Lausten

Adding additional methods to an existing class by extending it is not the only thing that you can do with Extends. You can also override existing methods in the extended class.

Getting To The Java Roots of XPages – Part 13  

By Declan Sciolla-Lynch | 3/16/13 1:42 AM | - | Added by Per Henrik Lausten

In todays part I’m going to talk about Extending a class in Java.

Getting To The Java Roots of XPages – Part 12  

By Declan Sciolla-Lynch | 3/14/13 2:18 PM | - | Added by Per Henrik Lausten

So following on from the last part I now have two packages in the scary.java.demo package, StaffInfo and AboutMe. Both of these classes do pretty much the exact same thing, AboutMe goes to the nab and gets your information while StaffInfo goes to the nab and gets the info for the selected person. As mentioned this introduces a maintenance issue, if the place you lookup staff info changes you will need to change two classes, wouldn’t it be better if you just needed to change one.

Getting To The Java Roots of XPages – Part 11  

By Declan Sciolla-Lynch | 3/13/13 8:38 AM | - | Added by Per Henrik Lausten

So far I’ve been dealing with a very simple class which just gets the current users information from the NAB, While this is useful wouldn’t it be better if I could get this info for any staff member?

Getting To The Java Roots of XPages – Part 10  

By Declan Sciolla-Lynch | 3/12/13 10:43 AM | - | Added by Per Henrik Lausten

Getting To The Java Roots of XPages – Part 10

Getting To The Java Roots of XPages – Part 9  

By Declan Sciolla-Lynch | 3/11/13 9:09 AM | - | Added by Niklas Heidloff

In the last part we looked at recycling domino handles in java but I mentioned that the class has some other serious issues. The biggest problem that I see now is that every time the getMyInternetAddress method is called it has to access the nab and get the document and return the value.

Getting To The Java Roots of XPages – Part 8  

By Declan Sciolla-Lynch | 3/8/13 12:23 PM | - | Added by Per Henrik Lausten

Anybody who already knows java probably took a look at the java class that I created in the previous parts and saw all kinds of mistakes. This was done on purpose. In this and the next few parts I’m going to tidy that class up a bit to make it much more robust. This also demonstrates another key advantage of using java, especially when we get to the stage in the series where we make the java available to all nsf’s.

Getting To The Java Roots of XPages – Part 7  

By Declan Sciolla-Lynch | 3/7/13 11:00 AM | - | Added by Per Henrik Lausten

In the last part we setup our bean as an unmanaged bean by creating a DataContext and creating the bean in there. To make things even easier you can create what is known as a managed bean. Then at the page level you can just reference the bean in EL without having to do anything special.

Getting To The Java Roots of XPages – Part 6  

By Declan Sciolla-Lynch | 3/6/13 8:58 AM | - | Added by Per Henrik Lausten

So we now have a java class that can be used as a bean. From a java point of view it is still just a java class, the bean bit comes into play over on the xpage side of things.

Getting To The Java Roots of XPages – Part 5  

By Declan Sciolla-Lynch | 3/5/13 12:47 PM | - | Added by Per Henrik Lausten

So in the last part we looked at how to call our new java class from ssjs but that still introduces a tiny bit of overhead as the ssjs interpreter is called to kick off the java code. To avoid using SSJS totally we need to look at something called Expression Language and Beans.

Getting To The Java Roots of XPages – Part 4  

By Declan Sciolla-Lynch | 3/4/13 1:12 PM | - | Added by Per Henrik Lausten

So in the previous part we wrote our first bit of java code, a method ( getMyInternetAddress) in a class ( AboutMe ) in a package ( scary.java.demo ). So the question remains, how do I actually use that in my XPage applications?

Getting To The Java Roots of XPages – Part 3  

By Declan Sciolla-Lynch | 3/1/13 8:32 AM | - | Added by Per Henrik Lausten

So here is the SSJS used in the previous part that gets the current users internet address from the addressbook. This is not an example of best practice for writing ssjs, I have purposely made it long-form so I can explain each line. Here is the java in the same over-simplified, expanded format. It looks scary because it looks like it is much longer and has some bits you may not be familiar with yet, but don’t worry I’ll try and explain them.

Getting To The Java Roots of XPages – Part 2  

By Declan Sciolla-Lynch | 2/28/13 8:37 AM | - | Added by Per Henrik Lausten

You may be asking yourself why you even need to care about Java when it comes to your XPage applications, your xsp file is converted to java and then compiled and ran on the server when called by the browser. You’ll probably even get different answers from different people when you ask that question but for me I see two reasons, speed and reusability.

Getting To The Java Roots Of XPages – Part 1  

By Declan Sciolla-Lynch | 2/28/13 12:59 AM | - | Added by Niklas Heidloff

If you have been developing XPage applications you have been developing in Java even if you didn’t know it.

Working Sets And Source Control  

By Declan Sciolla-Lynch | 11/14/12 2:50 PM | - | Added by Per Henrik Lausten

If you have not yet discovered Working Sets in Domino Designer then now is the time to start using them. They can help you manage the number of applications listed in the Applications pane and help you group applications into different projects etc.

Sometimes You Have To Go Directly To the Source  

By Declan Sciolla-Lynch | 10/16/12 3:43 PM | - | Added by Per Henrik Lausten

When you have been writing XPage applications for a while you may notice that you start using the source pane a lot more then the design pane. Sometimes it is so you can copy/paste parts of the markup from one place to another, sometimes so you can duplicate a bit of code but sometimes you need to because what your trying to do isn’t accessible from the design pane.

An update on using Mercurial in Domino Designer  

By Declan Sciolla-Lynch | 10/15/12 1:35 PM | - | Added by Per Henrik Lausten

Recently there have been a few changes to the MercurialEclipse project which is what I have recommended in the past to use to enable Mercurial source control in Domino Designer so if you need to use Mercurial here are the updated instructions that I’ve been able to get working.