Subscribe via Feed

Using document data in a page title

Matt White, Apr 10, 2012, 9:23:46 AM

One little thing which had been bugging me for a while (though not quite enough for me to spend any time looking at it until now!) was how to set the page title of an XPage to use some value from a document data binding.

First of all, why is it important to do this? Well if your site is on the internet then the 'title' tag is very important from the Google search side of things, so you want to have useful information in there. And from the user's point of view, with many browser tabs open it's useful to have a detailed title to help with finding the right window.

The problem is that I have a custom control inside my XPage that has all of the data binding, and by the time the document binding has happened so that I can get the page title from it, the pageTitle property of the XPage has already been computed, so I end up with no title at all.

It really just took 15 minutes of digging around in two areas, finding the object that contains the page title property that we can manually set, and the event that runs late enough that we can get the data from the document, but early enough that the HTML has not yet been rendered to the browser.

So, here is my solution...

In the postOpenDocument event of the document data binding we know that we have the document in memory so we can refer to it (using a getItemValueString in this case), and then the view object offers us the setPageTitle method where we can insert whatever string we want into the page title.

A simple tip, but maybe not so obvious if you're having trouble with the Page Title setting in All Properties.

Tim Tripcony: What the heck is a bean?

Bruce Elgort, Jun 12, 2011, 3:26:04 AM

For those of you who are wondering about what the heck managed beans are and how they related to all things XPages I highly recommend reading Tim Tripcony's blog entry entitled "What the Heck is a Bean" which he orginally posted on May 5, 2011.

Also, the Mastering XPages book does a good job of explaining managed beans. I am very thankful for both Tim's article and the Mastering XPages book as both of these resources helped me out today preparing some material for my "Social Business Toolkit" session which I am giving next week at PACLUG.

Read "What the Heck is a Bean" on Tim's blog > 

The MWLUG 2011 XPrize Design Competition

Bruce Elgort, Jun 5, 2011, 7:50:02 PM

Hot off the press:

XPages brings Domino Web application development to an entirely a new level. It allows you to modernize your existing Domino applications and provide an incredible user experience and interface. XPages allows you to take advantage of the unique capabilities of the Domino platform and build powerful and dynamic applications that can easily beat out competitive solutions.

As part of the Midwest Lotus User Group Conference 2011, MWLUG is sponsoring the MWLUG XPrize Design Competition to let you show the world what you can do with XPages. We encourage you to show your development and design skills by using XPages to updating one of the a selected number of existing Domino applications. You will be judged not only on your XPages development skills but also on user experience and interface design. The winners will be announced during the closing ceremony of MWLUG on Friday, August 26th, 2011.

Learn how you can enter >

Intec Blog: Maximising the Benefits of XPages in 8.5.2 Whitepaper

Bruce Elgort, Jun 4, 2011, 11:11:01 PM

Premier IBM Business Partner Intec has a fantastic updated whitepaper entitled "Maximising the Benefits of XPages in 8.5.2:

Almost a year ago I wrote a whitepaper called "Maximising the Benefits of Lotus Domino 8.5.x with XPages". This was an open discussion of the pros and cons of XPages, based on Domino 8.5.1. I have updated the whitepaper to take into account the significant enhancements in XPages in 8.5.2 and a year's more experience of developing applications in XPages.

XPages is still, in my mind, a game-changer for Domino, providing in a RAD environment capabilities that have not been available before without significant effort, if at all. Yes, RAD has a reputation of quick and dirty or prototype, and XPages can be that if you want it. But It also provides the framework for building a sophisticated application and makes UI design more important than ever before.

Maximising the Benefits of XPages in 8.5.2 on the Intec blog >

Tim Tripcony: Taking Themes to the Next Level

Bruce Elgort, Jun 4, 2011, 5:49:00 PM

If you have not yet looked into the power of using themes in your XPages applications, may I suggest that you download and review a presentation given by Tim Tripcony of GBS at the BLUG and UKLUG conferences entitled "Taking Themes to the Next Level - Getting more out of XPages the easy way".

The slide deck covers:

  • What is a Theme?
  • How are Themes typically used?
  • How do Themes actually work?
  • Going beyond the typical to...
    • Keep your XPage markup clean
    • Enhance application performance
    • Maintain device-targeted user interfaces
    • Streamline team development

Read Tim's blog entry and download the slide deck >


Mark Barton: Creating Barcodes with an XPage / Reading them with Flex

Bruce Elgort, Jun 3, 2011, 4:19:00 PM

Mark Barton has a must read blog entry on generating barcodes with XPages:

Due to the ability for an XPage to easily leverage Java code it is quite straightforward to integrate an existing Java library, so when the XPage is called a rendered barcode is returned.

For this demo I have decided to use a commercial library – the code will operate in a demo mode and is reasonably priced if you decide to buy it.  For this demo I am only interested in the Datamatrix barcode so I downloaded that specific Jar file from here.

Creating Barcodes with an XPage / Reading them with Flex >

[via Mark Myers]

Learn XPages at a discount

Bruce Elgort, May 30, 2011, 8:09:00 PM

XPages101 is offering developers a special deal during the month of June which has been declared "Learn XPages Month". You can learn more about the "Learn XPages Month" campaign here.

To get your discount use the coupon code "learnxpages".

XPages101 has also made available Lesson 22 - Custom Properties. This lesson teaches you all about Custom Properties and you can use them with your Custom Controls.

So now that you are an XPages guru answer these questions for me...

Bruce Elgort, Apr 18, 2011, 5:44:48 PM

Now that many, if not all of you have dabbled with XPages, built full-blown applications with XPages or have decided not to learn XPages at all, how would you answer these three questions:

  1. What criteria do you use to determine whether an app should be migrated to XPages?
  2. Which apps should never be considered for migration to and/or developed using XPages?
  3. When should a hybrid approach be considered which adds XPages to new/existing Domino apps?

I will be offering a $50 (US) Amazon gift certificate to one lucky commenter which I will randomly draw on Friday April 22, 2011.

Running a Business on XPages

Bruce Elgort, Mar 10, 2011, 4:03:32 PM

This year at Lotusphere 2011 Brian Benz (blog) presented a session entitled "Running a Business on XPages" (slide deck, session abstract). Julian Robichaux and I spent 30 minutes on Episode 132 of the Taking Notes Podcast with Brian discussing with him an incredible XPages app that he helped develop for Deloitte Recap. Brian also discusses things he learned during the project, recommendations for developers new to XPages, source control management and much more.
Brian also has posted a collection of excellent videos on YouTube which demonstrate the app and are required watching.

Announcing the All-New XPages Forum on developerWorks Lotus!

Jeremy Hodge, Feb 17, 2011, 9:00:31 AM

There is now a new XPages Forum on developerWorks for your XPages questions!  It's like the other deveoper works forums for questions and answers around Lotus products, but is dedicated strictly to your XPages development and administration questions.

The best part? Its written and based on XPages, and the template is going to be available on OpenNTF so you can benefit from the forum's design as well. 

In the spirit of , several of the XPages community members reached out to IBM to help foster the forum, and are dedicating time and effort to the forums to monitor, answer questions, and even help improve the design of the forum itself.

There will be (very soon) a project on Open NTF where you can post bugs and enhancement requests for the forum itself for community members and IBM to tackle. Until then, we've got categories in the forum that will be monitored for you to post these to. Look for exciting updates and changes to the forum and template to make it more user friendly and interactive.

The time to get out there and ask and answer questions is now!

You can get into the forum at It will be added to the developerWorks home page soon as well.

Hope to see you there soon!

All Blog Entries

Using document data in a page title by Matt White, Apr 10, 2012

Tim Tripcony: What the heck is a bean? by Bruce Elgort, Jun 12, 2011

The MWLUG 2011 XPrize Design Competition by Bruce Elgort, Jun 5, 2011

Learn XPages at a discount by Bruce Elgort, May 30, 2011

Running a Business on XPages by Bruce Elgort, Mar 10, 2011

XPages Week in Review No. 7 by Bruce Elgort, Jan 16, 2011

Gravatar - XPages Managed Bean by Jeremy Hodge, Jan 15, 2011

XPages Week in Review No. 6 by Bruce Elgort, Jan 9, 2011

Your XPages dance card for Lotusphere 2011 by Paul Hannan, Jan 4, 2011

Introducing the Site by Bruce Elgort, Nov 2, 2010

XPages Week in Review No. 5 by Bruce Elgort, Oct 24, 2010

XPages Week in Review No. 4 by Bruce Elgort, Oct 18, 2010

XPages Week in Review No. 3 by Bruce Elgort, Oct 9, 2010

Mastering XPages Book goes to the TOP by Paul Hannan, Oct 7, 2010

Massive saving on XPages Book by Matt White, Oct 4, 2010

XPages and Beginner's Java on Notes In Nine by Jeremy Hodge, Oct 3, 2010

XPages Week in Review No. 2 by Bruce Elgort, Oct 3, 2010

XPages Week in Review No. 1 by Bruce Elgort, Sep 26, 2010

Request an Article on XPages by Paul Hannan, Aug 26, 2010

XPages Goes To Belfast for ILUG 2010 by Paul Hannan, Aug 11, 2010

Free XPages Training Options by David Leedy, Jul 25, 2010

What's New in 852 for XPages by Paul Hannan, Jul 14, 2010

Tutorial: Introduction to XPages by Bruce Elgort, Jun 20, 2010

Resizing an XPage Control with DHTML by Peter Presnell, Jun 19, 2010

XPages Extensibility API by Jeremy Hodge, Jun 1, 2010

Referencing Server-Based Images in XPages by Paul Withers, May 10, 2010

My Favorite 8.5.2 Enhancement by Jeremy Hodge, Apr 18, 2010

Adding controls inside a pager by Tommy Valand, Apr 6, 2010

Things that make you go... AH HAH!! by Jeremy Hodge, Mar 14, 2010

Writing Client-Side Javascript for Re-Use by Jeremy Hodge, Mar 13, 2010

Follow The XPages Blog on Twitter by Bruce Elgort, Mar 8, 2010

QuickTip: HTML Element Selection Using Dojo by Jeremy Hodge, Mar 6, 2010

XPages presentations at Lotusphere 2010 by Paul Hannan, Jan 21, 2010

Custom-Control 2 Custom-Control Communication by Lance Spellman, Jan 17, 2010

The XPages Red Book is Done... by Paul Hannan, Jan 14, 2010

The Amazing dominoCard Control by Peter Presnell, Jan 7, 2010

XPage Control Library Released on OpenNTF by Peter Presnell, Jan 3, 2010

XPage Gotcha #2: Ports by Peter Presnell, Dec 16, 2009

11 Unanswered XPages Questions on IQJam by Bruce Elgort, Dec 15, 2009

The XSPtalk Blog by Bruce Elgort, Dec 10, 2009

dominoOutline Control by Peter Presnell, Dec 10, 2009

XPages related sessions at Lotusphere 2010 by Paul Hannan, Dec 1, 2009

dominoToolTip Control by Peter Presnell, Nov 24, 2009

XPage Data Source Property: ignoreRequestParams by Steve Castledine, Nov 16, 2009

XPages Page Versions by Bruce Elgort, Nov 5, 2009

Lotus Domino Designer Wiki RSS Feed by Bruce Elgort, Nov 5, 2009

XPages: Taking The Next Step by Peter Presnell, Oct 31, 2009

Prototype versus Closure in SSJS by Peter Presnell, Oct 30, 2009

XPages heading to New York City! by David Leedy, Oct 29, 2009

What's New For XPages in 8.5.1 by Peter Presnell, Oct 16, 2009

Why XPages? A manager's point of view by Matt White, Sep 23, 2009

Creating a Dynamic HTML Table on an XPage by Paul Calhoun, Sep 22, 2009

XPage videos on demand! by David Leedy, Sep 17, 2009

Using html characters in XPages by Steve Castledine, Aug 17, 2009

File upload control and partial refresh by Julian Buss, Aug 17, 2009

Adding content to the HTTP Header of an XPage by Michael Gollmick, Aug 11, 2009

Writing Efficient & Scalable XPages by Mark Gargan, Aug 9, 2009

Using XML as an XPage Data Source by Paul Calhoun, Aug 5, 2009

XPages at IamLUG and elsewhere by David Leedy, Jul 30, 2009

How to use a Dojo slider by Julian Buss, Jul 27, 2009

Notes in Nine - Episode 3 - Basic Searching by David Leedy, Jul 26, 2009

New XPages OpenNTF project: Elenchus by Tim Tripcony, Jul 25, 2009

Sample NSF of XPage Login Control by Jeremy Hodge, Jul 23, 2009

Sean Cull: Fusion Charts Tips by Bruce Elgort, Jul 22, 2009

XPages:Behind the Scenes by Jeremy Hodge, Jul 21, 2009

Busting the Rip and Replace Myth by David Leedy, Jul 21, 2009 by Julian Buss, Jul 21, 2009

New XPages Tutorial on Designer Wiki! by David Leedy, Jul 19, 2009

Do not use a PNG as favicon... by Julian Buss, Jul 19, 2009

Great XPage Wiki by David Leedy, Jul 17, 2009

Are you interested? by Bruce Elgort, Jul 17, 2009

Themes and CSS Frameworks by Declan Sciolla-Lynch, Jul 16, 2009

What custom controls do you want to see? by Matt White, Jul 16, 2009

Using Themes In XPages Part Three by Declan Sciolla-Lynch, Jul 14, 2009

Using Themes In XPages Part Two by Declan Sciolla-Lynch, Jul 14, 2009

Using Themes In XPages Part One by Declan Sciolla-Lynch, Jul 14, 2009

XPage Focused ScreenCast Available by David Leedy, Jul 12, 2009

Got XPages questions and/or content? by Bruce Elgort, Jul 12, 2009

Using Dojo ToolTips in an XPage by Matt White, Jul 12, 2009

Adding XHTML to an XPage by Bruce Elgort, Jul 11, 2009

The "Learning XPages" Series by Declan Lynch by Bruce Elgort, Jul 11, 2009

Using Repeat Controls Video by Bruce Elgort, Jul 11, 2009

Welcome to The XPages Blog by Bruce Elgort, Jul 11, 2009