XPath is a handy expression language for running queries on XML. This post is about how to use it with XML namespaces in Java (javax.xml.xpath).
Thursday, 28 May 2009
Wednesday, 27 May 2009
JSF: using component IDs in a data table (h:dataTable vs clientId)
Updated 2009/11/24
This post is obsolete; go read this one instead: JSF: working with component identifiers The approach described in this post may fail if the component identifiers are not unique within the view.
Tuesday, 26 May 2009
Java: dynamically loading scripting engines (Groovy, JRuby and Jython)
Java 6 (via JSR 223) added scripting language support to the standard library. The JVM ships with the Mozilla Rhino JavaScript engine included. Where an engine is available, it is easy to add support for other JVM scripting languages. It is useful to be able to load these engines dynamically.
Tuesday, 19 May 2009
JSF: IDs and clientIds in Facelets
Updated 2009/11/24
This post is obsolete; go read this one instead: JSF: working with component identifiers The approach described in this post may fail if the component identifiers are not unique within the view.
Friday, 1 May 2009
Java: a rough guide to character encoding
It can be tricky figuring out the difference between character handling code that works and code that just appears to work because testing did not encounter cases that exposed bugs. This is a post about some of the pitfalls of character handling in Java.