[richfaces-issues] [JBoss JIRA] (RF-12762) Duplicate id problem in ExtendedDatatable with dynamic columns

blam lam (JIRA) jira-events at lists.jboss.org
Sun Jan 27 22:21:47 EST 2013


blam lam created RF-12762:
-----------------------------

             Summary: Duplicate id problem in ExtendedDatatable with dynamic columns
                 Key: RF-12762
                 URL: https://issues.jboss.org/browse/RF-12762
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.3.0.CR1
         Environment: Windows 7 , weblogic10.4.3, Myfaces 2.1.10, IE 9, FireFox 14.0.1
            Reporter: blam lam
            Priority: Critical


When the ExtendedDataTable contains dynamic columns (i.e. using for:each), "java.lang.IllegalStateException: component with duplicate id" will occur after the second submit from a commandButton.

The problem does not appear in 4.2.3 Final but found in 4.3 CR1

Sample source code:
<h:form id="frmMarkUpdate">	
	<a4j:outputPanel  id="resultPanel">
		<rich:extendedDataTable id="studentVoMarkInputTab"
			value="#{updateMarkBean.studentVoMarkAmends}" 
			var="studVo"
			selectionMode="none"
			height="100%">
				
			<rich:column width="200px" >
				<f:facet name="header">
					Status
				</f:facet>
				<h:outputText value="#{studVo.student.markAmendStatus}" />
			</rich:column>
		
			<c:forEach items="#{updateMarkBean.taskVos}" var="tvo" varStatus="s">
				<rich:column width="100px">
				<f:facet name="header">
					<h:outputText value="#{tvo.task.taskName}" />				
				</f:facet>
				<h:inputText id="task#{s.index}_amk" 
					value="#{studVo.getTaskMarkMap().get(tvo.task.taskId).amendedMark}"
					size="1" maxlength="3"/>
				</rich:column>
			</c:forEach>				
		</rich:extendedDataTable>
		
		<a4j:commandButton id="btnSave" value="Save" 
			action="#{updateMarkBean.doBeforeSave}" 						
			styleClass="button blue">
		</a4j:commandButton>
						
	</a4j:outputPanel>
</h:form>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list