Hello Kamesh garu, Entandi JSF himsichadam modalupettinda ? Im also user in this group :)
Regards, Sunil G Ext:123 -----Original Message----- From: dearkamesh [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 2:05 AM To: [email protected] Subject: Re: Duplicate ID error in using myfaces and facelets Yes, i have replaced the c:if with <h:panelGrid rendered="true">, but still it comes. Also i'm surprised that that id it says as duplicated "j_id401" is not at all there in the view source. Not sure where this has come from.. Please let me know if anyone has any idea about this problem. Andrew Robinson-5 wrote: > > Does it still happen if you remove the c:if? > > On Tue, Sep 16, 2008 at 1:31 PM, dearkamesh > <[EMAIL PROTECTED]> wrote: >> >> 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-t p19518814p19518814.html >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Duplicate-ID-error-in-using-myfaces-and-facelets-t p19518814p19520062.html Sent from the MyFaces - Users mailing list archive at Nabble.com.

