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 > 



Students using XPages video and more...

Bruce Elgort, Jun 8, 2011 2:42:03 PM

In the Fall of 2010 students in the ICT Technology cirriculum at ROC Mandriaan have developed a real-world relationship management system XPages application for the Round Texel Regatta with mentoring from "Lotus Loves People".

Here is a video of the students talking about the app (English subtitles are supplied):

Here is a copy of the slide deck showing the app that they build:

And also a blog entry by Rob Bontekoe. Truly some great stuff surrounding college students using IBM XPages technology to develop real-world apps.



Steve Castledine: XPages Layout Framework Template (OneUI) Video

Bruce Elgort, Jun 6, 2011 9:03:02 PM

Steve Castledine demonstrates how to use the XPages Layout Framework Template which is available on OpenNTF.org. You may need to turn up the volume as it's a bit low. 





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 >



[Lotusphere 2011 Rewind] - XPages Extension Library: Making Application Development Even Easier

Bruce Elgort, Jun 5, 2011 1:17:01 PM

IBM's Paul Hannan and Maire Kehoe presented this excellent session at Lotusphere 2011 on the XPages Extension Library:



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 >

 





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

Students using XPages video and more... by Bruce Elgort, Jun 8, 2011

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

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

XPages Tips - There's an app for that too... by Bruce Elgort, Apr 18, 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 XPages.info 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

xpageswiki.com 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