Quick Search
Social Sites
Lotus Community


« Human Readable Dates in XPages | Main | Thing learned for the day »
Saturday
Jun272009

How to add non breaking spaces to your XPages

Often when you're designing a web page, you'll need a space between elements (such as two field labels for example). Most of the time you should solve your UI issues with CSS, but sometimes that is not the correct answer. Enter   this is a the classic non breaking space that you can use in HTML.

Unfortunately you cannot use that in your XPages source because it is not valid XML, so instead, we just have to use:

 

160 is the decimal character code for the non breaking space and use of character code markup like this is valid in XML.

A very simple tip, but a useful one none the less.

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: blog hosting
    blog hosting [url=http://wordpress.com]blog hosting[/url] blog hosting [url= http://wordpress.com ] blog hosting [/url]

Reader Comments (3)

If you are having trouble remembering the sequence if you hti <ctrl><space> in the design tab of an XPage it will add a the non breaking space where-ever you need it.

June 27, 2009 | Unregistered CommenterPaul T. Calhoun

That's a great tip Paul, didn't know that either.

June 27, 2009 | Registered CommenterMatt White

Just like your tabsequence=-1 tip, it's that little things that can make your day. Learned TWO things from this short post. Thanx guys!

August 6, 2009 | Unregistered CommenterJohn Palmer

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>