332 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Requiring SSL for SSO? Flick the switch!
Wed, Jun 19th 2013 141
OWASP - The Ten Most Critical Web Application Security Risks
Fri, Jun 14th 2013 211
IBM buys SoftLayer. Yeah, that's a concern for us.
Tue, Jun 4th 2013 282
Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 2
Thu, May 30th 2013 117
Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 1
Thu, May 30th 2013 163
Setting Up The IBM HTTP Server with Domino 9
Wed, May 29th 2013 238
What browser ARE they using?
Thu, May 23rd 2013 185
Top 10
How Did I Miss That For So Long...And How Do I Make Our UI Better?
Mon, Apr 22nd 2013 340
IBM buys SoftLayer. Yeah, that's a concern for us.
Tue, Jun 4th 2013 282
Setting Up The IBM HTTP Server with Domino 9
Wed, May 29th 2013 238
OWASP - The Ten Most Critical Web Application Security Risks
Fri, Jun 14th 2013 211
Got XPage Questions? I have 30 minutes for you next week.
Fri, Apr 19th 2013 185
What browser ARE they using?
Thu, May 23rd 2013 185
Managed Beans: When, Why and How ... IAmLug Presentation & Files
Thu, May 9th 2013 179
Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 1
Thu, May 30th 2013 163
Are you going to IamLUG? Register Right Now!
Thu, Mar 28th 2013 159
Source Control: The Good Stuff Part 4: Introduction to Source Control Branching
Wed, Apr 24th 2013 157


Be careful with empty CKEditor rich text fields
   


The CKEditor is very handy in XPages since it saves the content as MIME which can be processed as such in other places in your application. However you should be aware of how it operates so you can code around its behavior.

In 8.5.3 the CKEditor for rich text controls has been updated.

1. If you never enter any information into the field, then the field is a text field even if the document has been saved.

2. If you enter a single space and save the document, then the field is a MIME object and remains so even if you remove the content and re-save the document.

SOLUTION:

Use something similar to the code below to discover if the field is actually MIME or just plain empty text:


if(doc.getFirstItem("aRichTextField").getType()==Item.MIME_PART){
x=doc.getMIMEEntity("aRichTextField").getContentAsText();
}else{
x="";
}


NOTE: I have already upgraded everything to 8.5.3 so I cannot accurately verify but I believe this was not the case in 8.5.2 because after upgrading some existing/working suddenly stopped working and this was the cause.

If anyone knows differently about 8.5.2, please let me know.

---------------------
http://xpagetips.blogspot.com/2011/10/be-careful-with-empty-ckeditor-rich.html
Oct 28, 2011
70 hits



Recent Blog Posts
141


Requiring SSL for SSO? Flick the switch!
Wed, Jun 19th 2013 6:19a   Russell Maher
Recently we switched our servers to use SSO and life was good. Until someone tried to login to their mail. (Why anyone would want to use the browser to access their mail when they have a perfectly good Notes client and Traveler at their disposal is beyond me...but, alas...) Where was I?, Oh yes, SSO. Well being the security conscious kind of guy that I am I configured SSO to require SSL. What that means in English is that in order to access your databases you must use SSL. Oh sure, you can [read] Keywords: notes notes client traveler application database security
211


OWASP - The Ten Most Critical Web Application Security Risks
Fri, Jun 14th 2013 9:17a   Russell Maher
OWASP , The Open Web Application Security Project, just officially released "OWASP Top Ten - 2013, The Ten Most Critical Web Application Security Risks." All XPagers and Domino-folk should give this a read. My sense is that Domino holds up very well out of the box against this list of vulnerabilities which is a good thing but there are clearly some areas of possible concern given your exact situation and your specific applications. We run a publicly hosted XPages application so, of course, [read] Keywords: domino xpages application applications security
282


IBM buys SoftLayer. Yeah, that's a concern for us.
Tue, Jun 4th 2013 11:22a   Russell Maher
IBM to Acquire SoftLayer to Accelerate Adoption of Cloud Computing in the Enterprise Never really cared much for the business side of software licensing and infrastructure when I was doing straight corporate development and administration. Once I started hosting applications that all changed. Why? Because I became a paying customer. I expect things and my vendors' decisions impact my business. We've been using SoftLayer since 2007. We chose them after a careful analysis of the other ven [read] Keywords: administration domino ibm lotus notes applications development enterprise
117


Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 2
Thu, May 30th 2013 10:18p   Russell Maher
In Part 1 I showed you how to use IKeyMan to set up your SSL keys database. Now in Part 2 we will configure IHS to actually use your keys and to use TLS (SSL). Since you've already set up IBM HTTP Server on your Domino 9 server, all you need to do now is edit the domino.conf file and tell IHS to start using SSL. The Domino documentation is perfect here, too. I followed their steps to the letter and it worked. When I deviated, it didn't work so save your deviation and creativity until you [read] Keywords: domino ibm application database mac server
163


Setting Up TLS (SSL) for IBM HTTP Server with Domino 9 - Part 1
Thu, May 30th 2013 10:18p   Russell Maher
In the last post I went through the steps to install and set up the IBM HTTP Server with Domino 9. In this and the following post we'll go through the steps to enable TLS (SSL) which really is the reason to use the IBM HTTP Server with Domino in the first place. There are really only two steps to this: Step 1 - Get your SSL keys Step 2 - Configure IHS to use your keys But first...About SSL If you've not gone through this process before, let me lay it out for you. SSL keys are a form of [read] Keywords: domino ibm database password security server
238


Setting Up The IBM HTTP Server with Domino 9
Wed, May 29th 2013 11:18p   Russell Maher
The IBM HTTP Server 8.5 is included with Domino 9 and you can use it as your HTTP server instead of the Domino HTTP server if you wish. This post describes the steps required to get it running. There are two questions to ask. 1. Why would you want to use it? Why? TLS. What's TLS you say? It is the new and improved SSL. Domino does not support TLS but the IBM HTTP Server (which is based on Apache) does. So if you want to get an A on your SSL Test Here, you gotta' step up to TLS and that [read] Keywords: domino ibm notes applications security server wiki
185


What browser ARE they using?
Thu, May 23rd 2013 1:17p   Russell Maher
We support the public and, let me tell you, that can be challenging when providing a complex application where everything the user sees has to be "just so." If a customer has a user who says the application is "not working," the first thing we check is what browser they are using. It is pretty easy to locate the user agent string in the logs and through our own application logging but knowing the full details is very helpful for us to quickly determine what the issue may be so I use: http [read] Keywords: agent xpages application




104


Ever wondered what a typical Chicago drive to Wrigley Field looks like?
Mon, May 20th 2013 2:15p   Russell Maher
Using my new GoPro Hero3 as a DashCam I created this video of the drive from my house to Wrigley Field on a Saturday morning to see the Cubs. 22 miles. Six minutes. [read] Keywords:
105


I won a cool GoPro Hero3! Thanks IAmLug Sponsors!
Mon, May 20th 2013 2:15p   Russell Maher
How awesome is this? I go to IAmLUG in St. Louis and win this awesome GoPro Hero3 Silver camera! Bah ha ha ha ha. (I am just thrilled with it. Can you tell?) What an awesome piece of technology! Now I am not going to be any aerial vids (yet) like Carl Tyler but I am planning on using it initially as a DashCam to record and comment on the oft-frustrating driving that is Chicago driving. THANK YOU to all of the IAmLug sponsors who made this awesome prize possible: NotesCodewww.notescode.com [read] Keywords: connections domino notes sametime xpages application archiving community development email
90


Finding Your Own Presenting Voice + Let Me Know If You Would Like Feedback
Mon, May 20th 2013 8:20a   Russell Maher
Find Your Voice You have to decide or learn what your voice is when presenting. We have a lot of excellent speakers in our orbit that have very effective yet different speaking styles and you can learn something from all of them. Wes Morgan gives a great presentation and his style is definitely professional grade. I dig it. Chris Miller has an almost Robin Williams-esque presentation style backed by a CRAZY level of technical knowledge that is extremely effective. Kathy Brown, the loud laug [read] Keywords: skype




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition