Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1905

Component ID changes after submit if encoding='multipart/form-data' and part of page has been included.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.2.2
    • None
    • None
    • None
    • Myfaces 1.2.2
      JSP

    Description

      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'.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              amarkavstov Andrey Markavtsov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: