You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Murray Brandon <mu...@hotmagna.com> on 2006/04/12 03:30:31 UTC

enctype="multipart/form-data" not persisting text fields back into my model.

I have a simple <h:form> with a single <h:inputText component inside it 
with value="{#bean.property}" and a
<h:commandButton actionListener="#{bean.processAction}"... to submit the 
form.
 
It works great, setting the value of {#bean.property}to whatever text I 
enter on submit of the form.

However, if I change ONLY the form encoding type to be 
"multipart/form-data", the bean.property never gets set.
What gives?  Do I have to do something special for multipart form submits?

Regards, Confused


Re: enctype="multipart/form-data" not persisting text fields back into my model.

Posted by Sébastien Marin <th...@free.fr>.
http://issues.apache.org/jira/browse/TOMAHAWK-63
http://issues.apache.org/jira/browse/TOMAHAWK-168

Selon Mike Kienenberger <mk...@gmail.com>:

-> On 4/11/06, Murray Brandon <mu...@hotmagna.com> wrote:
-> > However, if I change ONLY the form encoding type to be
-> > "multipart/form-data", the bean.property never gets set.
-> > What gives?  Do I have to do something special for multipart form submits?
->
-> I don't know the answer to this, but do you have the Tomahawk
-> Extensions filter installed?  I know that it does some kind of
-> processing on "multipart/form-data" encoding types to support file
-> uploads.
->


|Cordialement, Sébastien MARIN.|
|------------------------------|
|->  http://www.marin-s.com  <-|
|------------------------------|

Re: enctype="multipart/form-data" not persisting text fields back into my model.

Posted by Mike Kienenberger <mk...@gmail.com>.
On 4/11/06, Murray Brandon <mu...@hotmagna.com> wrote:
> However, if I change ONLY the form encoding type to be
> "multipart/form-data", the bean.property never gets set.
> What gives?  Do I have to do something special for multipart form submits?

I don't know the answer to this, but do you have the Tomahawk
Extensions filter installed?  I know that it does some kind of
processing on "multipart/form-data" encoding types to support file
uploads.