QR code (quick-response code) is a type of two-dimensional matrix barcode and can be generated using the QRCodeGen library.
<dependency>
<groupId>io.nayuki</groupId>
<artifactId>qrcodegen</artifactId>
<version>1.8.0</version>
</dependency>
QR |
<div class="card">
<h:panelGrid columns="2" cellpadding="7">
<h:outputText value="QR"/>
<p:barcode value="0123456789" type="qr" width="125" height="125"/>
</h:panelGrid>
</div>