Geração de arquivo do Excel com JBoss Seam

4 respostas
R

Boa tarde pessoal.
Estou precisando gerar um arquivo de excel usando o JBoss Seam.
Eu ja entrei na pagina do Seam e li o documento que tem lá mas não entendi muita coisa.
Será que alguém ai poderia me ajudar?

Valeu…

4 Respostas

Michel_Sancovich

kra eu tb estou no mesmo barco!!!
Alguem poderia ajudar?!

eloilton

Olah hehehehe literalmente no mesmo barco?
e a JExcel API pod dar uma ajuda!!!

abrax!

R

Gerar arquivo do Excel?
O Apache POI pode ser uma boa alternativa.

Maiores informações: http://poi.apache.org/

Michel_Sancovich

Obrigado pela resposta. Conseguimos fazer funcionar, o nosso ItemExcel.page.xhtml ficou deste jeito:

<e:workbook type="jxl" 
    xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:e="http://jboss.com/products/seam/excel"
	xmlns:f="http://java.sun.com/jsf/core">
	<e:worksheetSettings>
		<e:headerFooter type="header">
			<f:facet name="left">
				<e:headerFooterCommands>
					<e:headerFooterCommand command="time"/>
				</e:headerFooterCommands>
			</f:facet>
		</e:headerFooter>
	</e:worksheetSettings>
	<e:worksheet name="Item" value="#{itemList.resultList}" var="item">
		<e:column>
			<f:facet name="header">
				<e:cell value="Item" />
			</f:facet>
			<e:cell value="#{item.nome}"  />
		</e:column>
		<e:column>
			<f:facet name="header">
				<e:cell value="Codigo do Item" />
			</f:facet>
			<e:cell value="#{item.codTipo}"  />
		</e:column>
	</e:worksheet>
</e:workbook>

e o link na página do itemList:

<s:link view="/ItemExcel.page.xhtml" id="export" value="Exportar para o Excel">
</s:link>
Criado 18 de setembro de 2008
Ultima resposta 23 de set. de 2008
Respostas 4
Participantes 4