View Source

h2. Overview
_Since 4.0_

The ace:qrcode component is used to generate and display a QR code graphic from a given message string.

{tip}See the ICEfaces Showcase [Live Demo|http://icefaces-showcase.icesoft.org/showcase.jsf?grp=aceMenu&exp=qrcodeBean] of this component, complete with source code.{tip}

h2. Getting Started

To use the QRCode component simply specify a string message as the value of the component.

{code:xml}
<ace:qrcode value="#{bean.message}"/>
{code}

h2. Attributes

{tip:title=TagLib Documentation}This section covers attributes involved in the typical use-cases for this component. For reference, the complete taglib documentation for this component is available [here|http://res.icesoft.org/docs/v4_latest/ace/tld/ace/qrcode.html].{tip}

{panel}
The *style* and *styleClass* attributes work just as in other components, and they are applied to the {{<img>}} element.
{panel}

h2. Event Listeners

None.

h2. Client Behavior Events

None.

h2. JavaScript API

Not applicable.

h2. Keyboard Support

None.

h2. CSS Classes

The following markup represents the basic HTML structure of the component and the CSS classes it uses.

{code:xml}
<img class="[user defined classes]" style="[user defined styles]" />
{code}

h2. Known Issues

None.

h2. Additional Resources


h4. Sample Applications

This component appears in the following ICEfaces sample applications:

*ICEfaces Showcase*

h4. Tutorials

This component appears in the following ICEfaces tutorials:

*None*