myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Wallace ...@rwmotloc.com>
Subject Re: myfaces fileupload help
Date Tue, 05 Jun 2007 20:12:35 GMT
if you are doing this in a portlet, we have a working one... let me  
know...

On Jun 5, 2007, at 2:03 PM, Mike Kienenberger wrote:

> You will be more likely to get a response if you post your question to
> the correct list.
>
> I've redirected my answer to the "MyFaces User mailing list"
> <users@myfaces.apache.org> which is where you should have posted your
> question.
>
> The two things I see are:
>
>    <filter-mapping>
>        <filter-name>ExtensionsFilter</filter-name>
>        <servlet-name>*.jsf</servlet-name>
>        <!--<filter-name>multipartFilter</filter-name>
>        <url-pattern>/*</url-pattern>-->
>    </filter-mapping>
>
> Should be
>
>    <filter-mapping>
>        <filter-name>ExtensionsFilter</filter-name>
>        <servlet-name>Faces Servlet</servlet-name>
>    </filter-mapping>
>
> Also, I'm not certain it's legal to specify comma-separated types.
>
> Instead of
>
> enctype="multipart/form-data, text/plain"
>
> I would use
>
> enctype="multipart/form-data"
>
>
>
> On 6/3/07, Samshuijzen, A. (0771492) <0771492@student.hro.nl> wrote:
>> hi there,
>> I'm really desperate about this inputFileUpload.
>> I've been trying it for 2 days now, but still got a  
>> nullpointerexception, from the setter from the UploadedFile  
>> myFile. when I debug project with breakpoints he skipps the  
>> setter, he only reaches the getter twice and than goes to the  
>> action method where it gives also a nullpointerexception because  
>> myFile is null.
>> I also just a extensionsfilter in web.xml
>> and I added all the following jar files:
>> - commons-beanutils-1.7.0.jar
>> - commons-codec-1.3.jar
>> - commons-collections-3.1.jar
>> - commons-digester-1.6.jar
>> - commons-el-1.0.jar
>> - commons-fileupload-1.2.jar
>> - commons-io-1.1.jar
>> - commons-lang-2.1.jar
>> - commons-logging-1.0.4.jar
>> - commons-validator-1.3.1.jar
>> - jstl-1.1.0.jar
>> - myfaces-api-1.1.5.jar
>> - myfaces-extensions-1.0.9.jar
>> - myfaces-impl-1.1.5.jar
>> - oro-2.0.8.jar
>> - standard.jar
>> I don't know if I need all them but just in case I added them, I  
>> also don't know if I got all the right versions.
>> Are there jar files you don't need to deploy with the project ?
>> I will send you my code, I first zipped it but your mail server  
>> blocks zip files, so I have to send each file as a attachement,  
>> the java class addstudentBean
>> must be put in a package named: beans.
>> I hope you can help me, I would be really glad if you can take a  
>> look at it
>>
>> thanks,
>> Alex
>>
>>
>


Mime
View raw message