|
|
| New - h:form removes attribute enctype |

|
2007-10-23 04:12:29 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
Issue #|654
Summary|h:form removes attribute enctype
Component|javaserverfaces
Version|1.2_05
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|implementation
Assigned to|javaserverfowner
Reported by|brauer
------- Additional comments from brauer dev.java.net Tue Oct 23 09:12:26 +0000 2007 -------
I tried to create a file upload page using tomahawk 1.1.6,
JSF RI 1.2_05-b06-FCS
and facelets.
What I found is that the h:form removes the
enctype="multipart/form-data" when
rendering the JSF page. In the resulting html page the
enctype is entirely
missing. As a result the fileupload doesn't work, since the
browser doesn't even
send the file.
As far as i could figure out this behaviour is due to JSF RI
only and is not
related to tomahawk or facelets. The class
com.sun.faces.renderkit.html_basic.FormRenderer simply never
adds the enctype
attribute.
As such to reproduce the error it only takes a JSF Page
with
<h:form enctype="multipart/form-data">
inside.
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 08:24:32 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from rlubke dev.java.net Tue Oct 23 13:24:31 +0000 2007 -------
I justed tested using the tomahawk 1.1.6 sample application
and I see the
enctype being encoded when rendering.
What container are you running?
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 09:46:08 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from brauer dev.java.net Tue Oct 23 14:46:08 +0000 2007 -------
Container is Tomcat V5.5
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 10:29:52 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from brauer dev.java.net Tue Oct 23 15:29:51 +0000 2007 -------
Created an attachment (id=571)
Simple Example without Libs
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 10:37:14 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from brauer dev.java.net Tue Oct 23 15:37:12 +0000 2007 -------
I created and attached a small example based on
facelets-1.1.13 and JSF
1.2_05-b06-FCS completely without tomahawk. Within
outbox.xhtml there is an
(empty) form with enctype set. When the page gets served by
Tomcat 5.5 the
enctype is missing.
I did not attach the libs to keep the zip File small. But
below is the list of
the libs used. Only jsf-impl.jar and jsp-api.jar are taken
from JSF
1.2_05-b06-FCS. All the other libs are from facelets-1.1.13
17.06.2007 00:10 118.726 commons-beanutils.jar
17.06.2007 00:10 165.119 commons-collections.jar
17.06.2007 00:10 109.096 commons-digester.jar
17.06.2007 00:10 68.756 commons-logging.jar
17.06.2007 00:10 29.309 el-api-1.0.jar
17.06.2007 00:10 72.009 el-impl-1.0.jar
15.10.2007 11:14 343.552 jsf-api.jar
17.06.2007 00:10 323.012 jsf-api-1.2_04-p02.jar
17.06.2007 00:10 300.600 jsf-facelets.jar
15.10.2007 11:14 786.389 jsf-impl.jar
17.06.2007 00:10 50.491 jsp-api.jar
17.06.2007 00:10 6.882
maven-repository-importer-1.1.jar
17.06.2007 00:10 97.693 servlet-api-2.4.jar
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 10:43:26 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from jdlee dev.java.net Tue Oct 23
15:43:25 +0000 2007 -------
Just glancing at that jar list, you have two JSF API jars in
your classpath:
15.10.2007 11:14 343.552 jsf-api.jar
17.06.2007 00:10 323.012 jsf-api-1.2_04-p02.jar
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 11:03:15 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
------- Additional comments from brauer dev.java.net Tue Oct 23 16:03:08 +0000 2007 -------
You are absolutely right and removing jsf-api-1.2_04-p02.jar
from the libs
solves the problem.
Sorry, my fault.
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|
| h:form removes attribute enctype |

|
2007-10-23 11:42:44 |
https://javaserverfaces.dev.java.net/issues/show_
bug.cgi?id=654
User jdlee changed the following:
What ld value
|New value
============================================================
====================
Status|NEW
|RESOLVED
------------------------------------------------------------
--------------------
Resolution| |INVALID
------------------------------------------------------------
--------------------
------- Additional comments from jdlee dev.java.net Tue Oct 23
16:42:44 +0000 2007 -------
Beautiful. No worries. I'll close this out.
------------------------------------------------------------
---------
To unsubscribe, e-mail: issues-unsubscribe javaserverfaces.dev.java.net
For additional commands, e-mail: issues-help javaserverfaces.dev.java.net
|
|