Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • Lotus Notes and Domino Application Development wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.0
  • 6.5
  • 8.0
  • 8.5
  • 8.5.1
  • 8.5.2
  • 8.5.3
  • action bar
  • Agents
  • Ajax
  • app dev
  • Application
  • beginner
  • C&S
  • calendaring and scheduling
  • client
  • composite applications
  • Controls
  • converters
  • css
  • Custom controls
  • Data Binding
  • db2
  • design elements
  • dialog boxes
  • Documents
  • Dojo
  • Domino
  • Domino Designer
  • Domino Designer 8.5
  • DXL
  • Eclipse
  • error handling
  • errors
  • extensions
  • FAQ
  • Forms
  • formulas
  • getting started
  • globalization
  • Help
  • html
  • Installation
  • interface
  • internationalization
  • iPhone
  • Java
  • JavaScript
  • localization
  • Lotus Domino Designer
  • LotusScript
  • LotusSphere
  • LotusTechInfo
  • menu bar
  • Mobile
  • new user
  • Notes
  • Notes 8
  • notes.ini
  • NSD
  • OpenNTF
  • partial update
  • performance
  • Pickers
  • Portal
  • presentations
  • programming
  • Redbooks
  • Requested Articles
  • roadmap
  • rooms and resources
  • samples
  • Scripting
  • security
  • tabs
  • templates
  • themes
  • Tips
  • toolbar
  • troubleshooting
  • tutorials
  • validation
  • variables
  • video
  • VideoFest
  • View
  • view control
  • ViewPanel
  • Views
  • web
  • Web apps
  • Web services
  • webdev
  • XML
  • Xpage
  • XPages
  • XPages Extensibility API
  • xsp-config
  • データソース
  • 九州地区ノーツパートナー会
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Troubleshooting > XULRunner and XPages in Notes Client
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

XULRunner and XPages in Notes Client 

expanded Abstract
collapsed Abstract
Recently I had a couple of instances where XPages in the Notes Client displayed contents slightly differently to how it was displayed on browsers. With help from an expert, I was pointed in the direction of the XULRunner.
ShowTable of Contents
HideTable of Contents
    • 0.0.1 About the Author

The first example I had was a view with some fixed width columns to ensure the layout was clean, because the views were held in a container that adjusted to the size of the screen. Everything looked fine on the web (in both Internet Explorer and Firefox), with values wrapping accordingly. But in the Notes Client, sometimes a column holding a reference number would wrap, but on other occasions it expanded and would not wrap, as I found with the value "XXXXXXXX-XXXXXXXXX-SERVICES-21-10-2008-MR-10" (I've replaced some of the content with X to keep it more generic).

After trying various things and a bit of head-scratching, I despatched a desperate tweet and a very helpful member of the community informed me that XPiNC used an XULRunner equivalent to Firefox 2. After a fair amount of hunting on the web I learned something more about XULRunner, predominantly from this post, that it is a rendering engine developed by the Mozilla Foundation. Some more hunting on word wrap in table cells in Firefox 2 offered a few solutions. The most common was to force a carriage return at the appropriate place, which is fine if you're creating a website and coding the content yourself, more challenging if you're building applications. Another offered some CSS formatting to set "table-layout: fixed" on the table and "white-space: -moz-pre-wrap;" on the relevant column. This would have been ideal, but I couldn't get it to work (that may well be because I was doing something wrong, my web development experience is not immense!). Finally the fall-back was to set the se for the table cell to "overflow: hidden". This meant that part of the reference number was not visible, but because the application was based on a spreadsheet and because the end users could open the relevant documents to see the full value, it sufficed for my requirements.

A couple of days later I was working on a personal XPages application which holds documents at different levels of a hierarchy. They're not response documents, but a Position field allows me to order them correctly and I used a repeat control containing an empty xp:span with the style "padding-left: 20px" to indent to the correct hierarchical level and follow it with the XSPViewEntry title. This looked nice on Internet Explorer and Firefox, but when I happened to open the application in the Notes Client, I got a blank line with the title on the following line. My thoughts immediately jumped back to the XULRunner, so my first attempt was to set the span's style to "display: inline", but it didn't work. A quick look at the source, and I immediately realised the problem - the repeat control creates a div around the contents. The repeat was within another repeat, so it was not possible to use the header and footer facets, as Steve Castledine describes. But setting the style of the xp:repeat to "display: inline" instead of the span's style solved the problem.

As of 8.5.1 FP1 it's still relevant.

About the Author

Paul Withers is a Domino Developer at Intec Systems Ltd. The original post of this and other tips / observations / tutorials are available at the Intec Blog 

expanded Article information
collapsed Article information
Category:
Troubleshooting
Tags:
8.5.1, XPages, client

This Version: Version 1 March 10, 2010 1:01:05 PM by Paul S. Withers  

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Mar 10, 2010 1:01:05 PM Paul S. Withers  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use