Hi,
i'm using myfaces 1.2.3, tomahawk 1.1.6 and facelets 1.1.14
Getting the following error while using selectBooleanCheckbox under
t:dataTable as below.
This happens when i submit the form with clicking the checkbox and submit
the form. Please let me know if any solution. Thanks
<c:if test="${sarSubject.sarSubjectUpdate}">
<t:htmlTag value="div" styleClass="tablePagingControl">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td><t:dataTable id="subjectDetails"
styleClass="recordSetTable"
headerClass="resultSetTableHeader"
rowClasses="cellDataAltRow,cellDataFirstRow"
renderedIfEmpty="false"
var="row" preserveDataModel="false"
binding="#{sarSubject.sarsList.data}"
value="#{sarSubject.sarsList.rows}"
rows="#{sarSubject.sarsList.numOfRowsToDisplay}"
sortColumn="#{sarSubject.sarsList.sortColumn}"
sortAscending="#{sarSubject.sarsList.sortAscending}"
preserveSort="true"
disabled="#{!sarSubject.editable}">
<t:column
styleClass="resultSetTableCells">
<h:selectBooleanCheckbox id="chk2"
binding="#{sarSubject.includeOnSARComponent}"
immediate="true" value="#{row.includeSubjectOnSarForm}"
valueChangeListener="#{sarSubject.updateSubjectsOnSar}"
disabled="#{!sarSubject.editable or (!row.suspectIndicator and
row.relationshipId!=2899)}"
onchange="formIsChanged();" />
<f:facet name="header">
<t:commandSortHeader columnName="subjectOnSar" arrow="true"
actionListener="#{sarSubject.sortChanged}" immediate="true"
styleClass="cellDataHeader">
Include On SAR
</t:commandSortHeader>
</f:facet>
</t:column>
</tr>
</table>
</t:htmlTag>
</c:if>
java.lang.IllegalStateException: Client-id : j_id401 is duplicated in the
faces tree. Component : sarViewForm:subjectDetails:j_id401, path:
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/sarView.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
sarViewForm][Class: org.apache.myfaces.custom.div.Div,Id: myDiv][Class:
javax.faces.component.html.HtmlPanelGrid,Id: j_id104][Class:
org.apache.myfaces.custom.htmlTag.HtmlTag,Id: j_id121][Class:
org.apache.myfaces.component.html.ext.HtmlDataTable,Id:
subjectDetails][Class: org.apache.myfaces.custom.column.HtmlSimpleColumn,Id:
j_id401]}
--
View this message in context:
http://www.nabble.com/Duplicate-ID-error-in-using-myfaces-and-facelets-tp19518814p19518814.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.