Hi Geary,
find the code below....
Test.jsp....
____________________________________________________________________
<div class="divTable" style="height: 90px"><h
ataTable
width="100%" value="#{Test.testData}"
var="currentRow" rowClasses="rowOdd,rowEven"
columnClasses="column" headerClass="header" border="1"
styleClass="complexTable" cellpadding="2" cellspacing="0"
binding="#{Test.testTable}">
<h:column>
<h:commandLink>
<h
utputText value="#{currentRow.name}" style="width:125px;"/>
</h:commandLink>
</h:column>
<h:column>
<h:commandLink>
<h
utputText value="#{currentRow.type}" style="width:125px;"/>
</h:commandLink>
</h:column>
</h
ataTable></div>
UpdateTest.jsp....
____________________________________________________________________
<div class="divTable" style="height: 90px"><h
ataTable
width="100%" value="#{Test.updateData}"
var="currentRow" rowClasses="rowOdd,rowEven"
columnClasses="column" headerClass="header" border="1"
styleClass="complexTable" cellpadding="2" cellspacing="0"
binding="#{Test.testTable}"> -- same binding table....
<h:column>
<h:commandLink>
<h
utputText value="#{currentRow.name}" style="width:125px;"/>
</h:commandLink>
</h:column>
<h:column>
<h:inputText value="#{currentRow.newName}"/>
</h:column>
</h
ataTable></div>
------------------------------------------------------------------------
Test.java
________________________________________________________________________
private HtmlDataTable testTable;
private List testData;
private List updateData;
Both testData and updateData are collections of TestDetails Object having fields,
private
String name;
private String newName;
private String type;
private String newType;
---------------------------------------------------------------------
I think this might will clear you my problem. Currently I have used different binding for both teh tables in test.jsp and updateTest.jsp to avoid the Duplicate ID exception.