FileUpload do RichFaces

0 respostas
viniciusfaleiro

to tentando fazer um esquema pra fazer upload com richfaces… só que estou tendo o seguinte erro…

org.apache.jasper.JasperException: PWC6131: Attribute reRender invalid for tag fileUpload according to TLD

Estranho porque vi de um tutorial da net…

Olha o código…

agradeço a ajuda!!

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<!-- RichFaces tag library declaration -->
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@page contentType="text/html" pageEncoding="latin1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <center>
             <f:view>
                  <a4j:form>
                        <rich:fileUpload
                                fileUploadListener = "#{UploadMB.upload}"
                                addControlLabel="Enviar"
                                clearAllControlLabel="Limpar Todos"
                                clearControlLabel="Limpar" 
                                maxFilesQuantity="1"
                                id="upload"
                                reRender="table"
                                immediateUpload = "true"
                                accecptTypes = "cvs">
                                <a4j:support event="onuploadcomplete" reRender="table" />
                               
                        </rich:fileUpload>

                        <rich:spacer height="20"/>

                        <rich:dataTable value= "#{UploadMB.itens}" var = "item" id = "table" width = "200px">
                            <f:facet name = "header">
                                <rich:columnGroup>
                                    <h:column>
                                        <h:outputText styleClass = "headerText" value = "Arquivo do Espelho"/>
                                    </h:column>
                                    <h:column>
                                        <h:outputText styleClass = "headerText" value = "Tamanho"/>
                                    </h:column>
                                </rich:columnGroup>
                            </f:facet>
                            <h:column>
                                <h:outputText value = "#{item.fileName}" />
                            </h:column>
                            <h:column>
                                <h:outputText value = "#{item.getFile().length}" />
                            </h:column>

                        </rich:dataTable>
                  </a4j:form>
            </f:view>

        </center>
    </body>
</html>
Criado 10 de dezembro de 2009
Respostas 0
Participantes 1