« Back to home

XPages, Bootstrap, and form validation

I’ve recently been experimenting with Bootstrap for page layout, now that it’s an official part of the XPages Extension Library for Domino. After some simple test pages, I decided to put together a standard data entry form to see how painful that was. A typical Bootstrap form’s HTML for a single field looks like this: <div class="form-group"> <label for="email1">Email address</label> <input type="email" class="form-control" id="email1" placeholder="yourid@example.com"> <span class="help-block">Your Internet e-mail address</span> </div> If you have a validation error to display, and want to show a feedback icon, the HTML balloons up to something like this:…

Read more »