rich:fileupload does not work properly when context-param
com.sun.faces.enableViewStateIdRendering = false for Mojarra 1.2_08
-----------------------------------------------------------------------------------------------------------------------------
Key: RF-3735
URL: http://jira.jboss.com/jira/browse/RF-3735
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: glassfish 9.1_ur1, Mojarra 1.2_08, richfaces 3.2.1.GA
Reporter: eugene dorfman
Fix For: 3.2.2
There is an issue with JSF - it generates invalid mark up in a sense that if
you have more than one h:form on a page - there will be an input field with the
name
javax.faces.ViewState and with the same id in each form - this leads to a
repeating id=javax.faces.ViewState. In Sun RI Mojarra 1.2_08 there was
introduced a context-param com.sun.faces.enableViewStateIdRendering, if you set
it to false in your web.xml - there is no bug with markup validation, because
id attribute is not rendered for the input field (it renders a name attribute
only). However this option prevents fileUpload to work properly (it will say
Transfer error occuried) when id for ViewState input is not rendered. Since
there is support for such an option in Mojarra 1.2_08 - fileUpload should not
depend on this id attribute. I will attach an illustrating example a bit
later.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues