Hi, I'm using myFaces 1.0.8 and I get the following error when using a datagrid:
exception
javax.servlet.ServletException: cannot add component 'prodLabelzert123'
javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
root cause
javax.faces.FacesException: cannot add component 'prodLabelzert123'
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:410)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:244)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:290)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
I changed the id to something I knew was unique. I'm using the
datagrid in similar pages without problems (as long as I always define
the id). Any ideas what the problem is?
<[EMAIL PROTECTED] file="/common/include/headers.jsp" %>
<[EMAIL PROTECTED] file="/common/include/htmlBegin.jsp" %>
<[EMAIL PROTECTED] file="/common/include/htmlBody.jsp" %>
<f:view>
<[EMAIL PROTECTED] file="/common/include/menu.jsp" %>
<h:outputText id="pageTitle" styleClass="title2"
value="Strings" /><br />
<[EMAIL PROTECTED] file="/common/include/info.jsp" %>
<h:form id="newForm" binding="#{stringBean.newForm}">
<h:commandButton id="submit"
action="#{stringBean.invoke}" value="Create New String" />
<h:inputHidden id="versionID"
value="#{stringSearchBean.versionID}" />
<h:inputHidden id="cmd" value="displayNew" />
</h:form>
<f:subview id="searchView">
<h:outputText id="titleText" styleClass="title3"
value="Select search crieria" /><br />
<h:form id="dataForm"
binding="#{stringSearchBean.searchForm}">
<h:panelGrid id="searchData" columns="2">
<h:outputText id="verLabel"
value="Version ID:" />
<h:inputText id="verID" disabled="true"
required="false" value="#{stringSearchBean.versionID}" />
<h:outputText id="prodLabelzert123"
value="Product ID:" />
<h:inputText id="prodID"
disabled="true" required="false" value="#{stringSearchBean.productID}" />
<h:outputText id="empty" value=" "
escape="false" />
<h:commandButton id="submit"
action="#{stringSearchBean.invoke}" value="Search" />
</h:panelGrid>
</h:form>
</f:subview>
</f:view>
<[EMAIL PROTECTED] file="/common/include/htmlEnd.jsp" %>