<A target="_blank" href="http://www.markbarton.com/?p=218">Mark Barton has posted some code showing</A> how to use XPages to create 2D barcodes, like the Datamatrix and QR Code. He's also posted a demo program you can try out.