[
https://issues.jboss.org/browse/RF-12762?page=com.atlassian.jira.plugin.s...
]
Brian Leathem reassigned RF-12762:
----------------------------------
Assignee: Pavol Pitonak
QE, please verify on both mojarra and myfaces.
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
Assignee: Pavol Pitonak
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:
{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>
{code}
--
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