A current – and also permanent – limitation of the XPages environment is the inability to refresh multiple blocks on the page within a single server trip. This inevitabily forces to trade efficiency for some low-hanging shortcut. The most common example is when you want to notify the user with one or more messages that […]
Tag: xpages
A bunch of hacks for smartly managing a bootstrap modal life cycle
I might call this the negative side of perfectionism: wanting everything to be as efficient as possible even if it doesn’t matter. Oh well, I’m stubborn sometimes. I took it as a personal challenge to be able to open a bootstrap modal window and… on close partially refresh the modal body in case an error […]
Just a tiny more control over read-only inputs
Sometimes what you need is just a hair’s breath away. For example you are trying to implement a css theme down to the tiniest detail and you have to fight with what XPages normally outputs in some cases: in this very specific one I needed to give more padding to an input control when displayed […]
Assigning custom tag name to repeater
Generally you use a repeater to house table rows or list elements. It turns out though, that you aren’t given the possibility to define which tag output for it. In order to work around that I have seen solutions like this: <xp:repeat id=”repeat1″ rows=”30″ value=”#{view}” var=”row”> <xp:this.facets> <xp:text disableTheme=”true” xp:key=”header” escape=”false”> <xp:this.value><![CDATA[<ul>]]></xp:this.value> </xp:text> <xp:text disableTheme=”true” […]
xe:navigator to display search results
I was asked to provide a quick solution for presenting search results in a tree structure fashion rather than the classic paged flat list. Considered the premises, read limited time, I needed to find something somewhat already cut for the job and that I could tweak just a little and be done with. So, while […]
Building upon StandardXPageController and XPageController
When I started diving in XPages for real – read no SSJS involvement – I derived great benefit from reading and examining the work done by Jesse Gallagher. His framework helped me to push some boundaries. In particular I immediately adopted the XPageController approach and made it my own. Over time I built upon that […]