I was asked today how to remove HTML tags from a String in SSJS. My recommendation was to use the ACF API that is built in to XPages.
Editable input controls, such as inputText, inputTextarea, and inputRichText, support properties of htmlFilter and htmlFilterIn. These properties allow you to select a content filter option to automatically clean the submitted value. As far as I can tell, the only option that actually does anything useful is "striptags", which does exactly that: it just removes any HTML markup from the value, leaving the rest of the content intact.
an easy way to give Domino Designer a ridiculous performance boost
Wed, Dec 4th 2013 4:10p Tim Tripcony From the top-level menu, select "File > Preferences"
Choose "General > Appearance"
Change the option labeled "Current presentation:" from "Styled Presentation Factory" to "Classic Presentation"
When prompted, allow the "workbench" to be automatically restarted
I do feel obliged to warn you that the behavior of Designer after following the above instructions can be extremely disorienting. For instance, removing an app from the Applications navigator no longer cau [read] Keywords: domino
the reason panel data sources can't be accessed outside the panel
Thu, Oct 10th 2013 7:40p Tim Tripcony Marky Roden recently called attention to a lesson he learned: if you associate a data source with a specific panel, you can only refer to it by name via events (or attributes) attached to components inside that panel. There are two very specific reasons for this:
Hierarchical component processing
The role the requestScope plays in variable resolution
While there are no doubt some subtle exceptions to this premise, you can consider all runtime processing of XPages to be hierarchical. To co [read] Keywords: xpages application
quick tip: persistent query string parameters
Thu, Aug 22nd 2013 8:00p Tim Tripcony Here's a handy bit of code to drop into the afterPageLoad event of your XPages:
One of the best characteristics of XPage applications, in contrast to their non-XPage Domino counterparts, is their statefulness. The capacity to maintain consistency of data, user behavior, and user preferences between interactions with the "current" page, across pages within an individual user session, and even across all (or select groups of) users of an application is sim [read] Keywords: domino
locating XPage components with XspQuery
Sun, Apr 14th 2013 12:00a Tim Tripcony Several years ago, I wrote a utility Java class designed to make it easy to search for components within the current XPage instance based on various criteria. I've found it enormously useful, and, apparently, so has Keith Strickland, because he added it to org.openntf.xsp.extlib, complete with a few refinements. As an example of how you might use this, examine the following line of code:
List requiredFields = new XspQuery()
.loc [read] Keywords: ldd
your how is not your what
Wed, Apr 3rd 2013 11:36a Tim Tripcony I've noticed a pattern emerging when I'm asked for help with XPages. Here's a representative conversation:
"I'm trying to do [X] and it's not working. How can I do that?"
"What are you trying to accomplish?"
"I already told you. I'm trying to do [X]."
"No, that's how you're trying to do it. What are you trying to do?"
For example, replace "[X]" with "reach into a repeat control from outside it" (since this has become the most frequent topic I'm asked about [read] Keywords: xpages application