You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrey Markavtsov (JIRA)" <de...@myfaces.apache.org> on 2008/08/18 15:49:44 UTC
[jira] Commented: (MYFACES-1905) Component ID changes after submit
if encoding='multipart/form-data' and part of page has been included.
[ https://issues.apache.org/jira/browse/MYFACES-1905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12623349#action_12623349 ]
Andrey Markavtsov commented on MYFACES-1905:
--------------------------------------------
My web.xml. May be it'will help you to find the problem:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Archetype Created Web Application</display-name>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
> Component ID changes after submit if encoding='multipart/form-data' and part of page has been included.
> -------------------------------------------------------------------------------------------------------
>
> Key: MYFACES-1905
> URL: https://issues.apache.org/jira/browse/MYFACES-1905
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 1.2.2
> Environment: Myfaces 1.2.2
> JSP
> Reporter: Andrey Markavtsov
>
> My test page:
> <h:form enctype="multipart/form-data" id="_form">
> <jsp:include page="menu.jsp" />
> <t:inputFileUpload ></t:inputFileUpload>
> <h:commandButton value="Upload"></h:commandButton>
> </h:form>
> menu.jsp :
> <h:panelGrid columns="1" id="grid">
> <h:selectOneMenu value="#{bean.select}" id="select">
> <f:selectItem itemValue="none" itemLabel="none"/>
> <f:selectItem itemValue="www" itemLabel="www"/>
> </h:selectOneMenu>
> </h:panelGrid>
> Firstly SelectOneMenu has '_form:select' id. After upload and page refreshed ID changed to '_form:selectj_id_1'.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.