Blog Archives

JBoss EAP 6 – encrypt password for SecureIdentityLoginModule

Quick snippet on password encryption for the  org.picketbox.datasource.security.SecureIdentityLoginModule  which is relatively version agnostic. From your JBoss directory, run

It’ll output the encrypted password, which you can update your configuration with.

Tagged with: , , ,
Posted in Java, Security

Creating / renewing a Let’s Encrypt certificate for Apache and WildFly

These instructions were written for Ubuntu 16, but they should translate quite easily to other flavours of *nix, relatively easily for macOS, and with only small tweaks for Windows. Probably. Apache Renewing the Apache portion of the certificate is fairly

Tagged with: , , , ,
Posted in Java, Security

IntelliJ Plugin Development – Drowning in Documentation

Introduction Documentation is important. Okay, let’s be slightly more precise – good documentation is important. Take as an example the IntelliJ plugin documentation – at the time of writing, it’s hopefully out of date. Trying to find any useful sources

Tagged with: , , , ,
Posted in Java

h:outputText values with named parameters

Introduction JSF supports parameter substitution out-of-the-box, but only so far as using numbered indices, which aren’t insanely easy to read or remember. For example,

This outputs “This comes out as that.” – fine for your everyday message, but when

Tagged with: , , ,
Posted in Java

JavaFX and JavaScript – calling Java from JavaScript

Introduction JavaFX’s integration with web pages is quite impressive – you can query the DOM, execute arbitrary JavaScript and get results back. In addition, you can trigger changes on the Java-side from the web page. In this brief introduction we’ll look

Tagged with: , ,
Posted in Java, Javascript

ANT API – JAVA_HOME and non-standard build files

Introduction I’ve been working with the ANT API whilst putting together a build tool (long story) recently. There isn’t a whole lot of documentation available on the ‘net (in fact, there’s explicitly little documentation in cases),  so here are two

Tagged with: , , ,
Posted in Uncategorized

Java 9 – new reserved keyword ‘secret’

[This was April Fool’s, obviously] Under the guidance provided by the ‘Keep it Secret, Keep it Safe’ (KISKIS) principle, secret is a proposed new keyword under Java 1.9. This keyword is designed to be used in cases where an open and extensible

Tagged with: , , ,
Posted in Java

PrimeFaces – actions not firing in last rows of dataGrid

Introduction Have you been at your wit’s end trying to work out why your action just won’t fire? Have you exhausted BalusC’s list of potential reasons? Does it happen to be just the last couple of buttons that don’t work,

Tagged with: , , , ,
Posted in Java

Setting JSF components conditionally read-only through custom components.

Introduction There are a number of different reasons why you would want to disable input for sections of a page. Most obviously is the case where information should be readonly, pending certain conditions – perhaps access roles, perhaps something as

Tagged with: , ,
Posted in Java

PrimeFaces – where are my widgets?

Widget for var ‘Widget for var ‘dlg’ not available! The Tears Does that fuel you with a deep, burning rage? Widgets not being available are insanely frustrating, especially because deep down you know it’s going to be because of a

Tagged with: , ,
Posted in Java