Questo contenuto non è disponibile nella lingua selezionata.

19.2. Creating a simple workbook


The worksheet support is used like a <h:dataTable>, and can be bound to a List, Set, Map, Array or DataModel.
 
<e:workbook xmlns:e="http://jboss.com/products/seam/excel"> 
  <e:worksheet> 
    <e:cell column="0" row="0" value="Hello world!"/> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
The following is a more common use case:
 
<e:workbook xmlns:e="http://jboss.com/products/seam/excel"> 
  <e:worksheet value="#{data}" var="item"> 
    <e:column> 
      <e:cell value="#{item.value}"/> 
    </e:column> 
  </e:worksheet> 
</e:workbook>
Copy to Clipboard Toggle word wrap
The top-level workbook element serves as the container, and has no attributes. The child element, worksheet, has two attributes: value="#{data}" is the EL-binding to the data, and var="item" is the name of the current item. The worksheet contains a single column. Within this is the cell, which is the final bind to the data in the currently iterated item.
Now you can bind your data into spreadsheets.
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2026 Red Hat