commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rogerio Eduardo Oliveira <roedoli...@yahoo.com.br>
Subject inputFileUpload dont decode!!
Date Thu, 13 Dec 2007 18:29:08 GMT
Hello All,

Im new with JSF and tomahawk and dont know what could be happen with my page. I put the tag
<t:inputFileUpload> in my page and it dont appear. Anyone already have this problem?
I use the tomahawk.jar (versão 1.1.6) and commons-fileuploader(1.2).

My web.xml:

<?xml version="1.0" encoding="UTF-8"?>

    <display-name>SIM</display-name>

  ...
 
     <filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>            
        </init-param>
    </filter>

    <!-- extension mapping for adding <script/>, <link/>, and other resource
tags to JSF-pages  -->
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry
-->
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
... 
</web-app>

My page:

<?xml version="1.0" encoding="ISO-8859-1"?> 

      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:t="http://myfaces.apache.org/tomahawk">
<body>
<ui:composition template="/pages/template.jsp">
    
    <ui:define name="titulo">SIM - Importar CSV </ui:define>
    
    <ui:define name="body">
    
        <h:form id="formIncluirServico" enctype="multipart/form-data">
        <br/>
        <br/>

        <table>
            <tr>
                <td>
                    
                     <t:inputFileUpload id="fileupload"
                               value="#{ImportadorPagina.arquivo}"
                               memory="file"
                               required="true"/>
                </td>
            </tr>
        </table>        
            <h:commandButton id="cmdImportar" value="Importar" action="#{ImportadorPagina.importar}"/>
        </h:form>
    </ui:define>

</ui:composition>

</body>
</html>

My page after decode:
...
<td valign="top" colspan="2">
	<form id="formIncluirServico" method="post" action="/SIM/pages/importador/importar.jsf"
enctype="multipart/form-data">
	<br />
	<br />
	<table>
		<tr>
			<td>
				<t:inputFileUpload id="fileupload" value="" memory="file" required="true"></t:inputFileUpload>
			</td>
		</tr>
	</table>
	<input id="formIncluirServico:cmdImportar" type="submit" name="formIncluirServico:cmdImportar"
value="Importar" /> <input type="hidden" name="com.sun.faces.VIEW"
 value="H4sIAAAAAAAAAM1bS2wcSRkuT+zY8XqVxN68SJw4cbLJZifzftrJbvz2JOMkZBzD7h6Scnd73ElPd9Nd7ZlsRNgVAsGCEGgFAikIJA4gwUrA3jiB9oBYaUEEcVkJiQMSQuIhceFxWKiqfkx3T/VM2+M8fGi3e6r++v+vvv/7q2vKP/ob6NM1MMYptZhuyLE1yAl6zECiFFvWBKGCNINDhiY8t3Z49sjXb41FQG8ZDHDrosRrgozAvvJtuAHjpEN8StPg3bKoo8ky2MVJUNevwJqAwLDZRoJyNY4NinIVN9hJRkI6AiMuC4tQX1+CKv44IvKfAvdBpKFi70ZIC9MpZ4zGmw9Hv/VL+O0doKcEenXxdaGhAgB66734OqiTzoBe+/xPVQReJAYbVrA4dFWRcTCxdVSTYov4sqBBdV3kSjVYFXDzIUmpKktiVYMcVHymh6jpPY7p02zTN0oYCxz5jCIjKMqChpsO6huLUOPrUBOc7mc7eDaj1GpQ5suifAe37r0p8nmrL7kOW88Krme7zZEqgrYh8orma92HWydTrIdpn41n9Q08uCGLXBMFbw+/J/Sh35Vd2BWkaBhYRusUy5NUumF3HtA3ppC4oei+Sej3zK/desiKmlNuaBzLcIH1sOizstuxwgvXBZ7ldjrNepjxOdnT4qTTNN9w+VzCk64hiOfKeTro+KAzumcSDQTGOxBnXtFqhB01QTYctr3QodNVA6kGWhYayB4q6xp/2n6YbxspAtFwpJ42EFJk3P4ZrsZbKJgYvIwfDq/hCEoyJxmiZoGBwz6jaNUYvA0bmdv6WmxNw4JTV7Q79FFsCl9WRKF+XVFIALtublh/GFhTXqO6EyOqFLu6elvg0ORXf/3J7+zRX5AiAFAxiR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u1WGvnGU6mC5F4mMiPF2KjGC82ynhCBOYDGZ8IbdumJR54uUKdvnF7FlwLGhWzdNgXqosgvkAKHPRQhhdsYxSkhwLVGezFfEw9RgEupjt8qta1nu5J16mRge+l+ezHd7LmbYD8y5NF4iZ8HnHejP3iqdNja2+mZsRhlRqhzJPmVgXM11+q5kGZ9pPbYBefxxcZcNaSETzidDECSHZacqaXHjqnGeE5JfRkOQJTA8zytCqzabPkxbuYoYnp88YC9Tm6VjSYZKpfz3bS+Q8JL6caOcLZQPdE54Iz4Yk45sB+6DmTGWlIwVmwXQABbLRTBsKuMfwzfuQfex2DH/Inmr1UWpGbpVAPUihpiebyccvhYf0FNg7fu+GbkBNVGLk9KGBOsJYADk2jMUE+c6lCaPPrg+6kQoUNfJ/FGMVoWpoUH7v+3CrCDZx29ERwYgXwUSS/F0lF5Gpv8g6QBxut+/A+D3DDHvlakxWasKCIWga9IBqHmEkUF4Ak0woU8kk2Rmj4xIkmSapzJqHzMnoM81Z9x2loufRzePSduo/OjiFDnDim8h4GCzPgOfcgUsKatm+bwI5CYqBQCaTWRaStsEmjFSP5jzJEzm7KeBCnMG24UoJMJErmtuxFlzsQ/vks8vejL5jlpCRmiEhUYUaitNDzzxErRnUVuRHt6I8pufpNPH3aKu/E65/RiBdLrl5OezmpfX/C8HqlCC7PM2i4ZPjTawXA072Y34Uo0X39mLwYD71GrBDtPjBPqHt/QQXfd1YrYmoyaH/A7ccCOxPNgAA"
/>
	<input type="hidden" name="formIncluirServico" value="formIncluirServico" />
	</form>
</td>
...

Thanks for attention!




      Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message