And please try again with the nightly build of today... Thanks!
Martin On 12/27/05, xzuma <[EMAIL PROTECTED]> wrote: > It is working without setting explicit id in 22 Dec build. > Also with 22 Dec build the "Required value is missing." messages are > showing for every field as they used to in RI, unlike the 25 Dec build with > the explicit datatable id. In the latter case the "Required value is > missing." strings are not showing with the information in the console: > > 21:48:55,843 ERROR HtmlMessageRendererBase:79 - Could not render Message. > Unable to find component '_id33' (calling findComponent on component > 'create:createForm:beanTable_0:_id74'). If the provided id > was correct, wrap the message and its component into an h:panelGroup or > h:panelGrid. > > However, _id33 is not present in the page. > > > Z > > On 12/26/05, Dennis Byrne <[EMAIL PROTECTED]> wrote: > > No, you shouldn't have to specify @id. In the meantime, please do MyFaces > a favor and try the following. Reproduce the error by removing the explicit > @id from the dataTable. Then, try using the nightly build from dec. 22 > http://cvs.apache.org/builds/myfaces/nightly/ . Let the > list know if your problem goes away. If this solves the problem, add > yourself as a watcher to this JIRA issue, and please put a comment in there > mentioning the fact that you got this problem using a dataTable. TIA. > > > > http://issues.apache.org/jira/browse/MYFACES-978 > > > > >-----Original Message----- > > >From: xzuma [mailto: [EMAIL PROTECTED] > > >Sent: Monday, December 26, 2005 09:02 PM > > >To: 'MyFaces Discussion' > > >Subject: Re: Duplicate id IllegalStateException upon submitting an empty > h:datatable form > > > > > >It is working with id explicitely set. Is this supposed to work like > that? > > > > > >On 12/26/05, Dennis Byrne <[EMAIL PROTECTED]> wrote: > > >> > > >> Do you still have this problem after explicitly setting the id > attribute > > >> of the dataTable element ? > > >> > > >> >-----Original Message----- > > >> >From: xzuma [mailto:[EMAIL PROTECTED] > > >> >Sent: Monday, December 26, 2005 08:05 PM > > >> >To: [email protected] > > >> >Subject: Duplicate id IllegalStateException upon submitting an empty > > >> h:datatable form > > >> > > > >> >Hello, > > >> > > > >> >With the Dec 25 build I get the exception stack below upon submitting > an > > >> >h:datatable (also below), which has all input fields empty (they are > all > > >> >required). The exception is being thrown when a datatable UIComponent > is > > >> >being added to the _list, which already has this component. > > >> > > > >> >If I submit a form with the fields filled, everything works. Is this a > > >> bug? > > >> > > > >> >Thanks. > > >> > > > >> >Z. > > >> > > > >> >-------------jsp > > >> > > > >> ><f:subview id="create"> > > >> > <h:form id="createForm"> > > >> > <h:inputHidden id="id" value="#{heteroBean.id}" /> > > >> > <h:dataTable var="property" binding="#{heteroBean.table}" > > >> value="#{ > > >> >heteroBean.properties}" > > >> columnClasses="list-column-right,list-column-left" > > >> >styleClass="box"> > > >> > <h:column> > > >> > <h:outputText value="#{property.name}" /> > > >> > </h:column> > > >> > <h:column> > > >> > <h:inputText value="#{property.value}" size="25" > > >> >required="#{property.required==true}" validator="#{ > > >> >heteroBean.validateProperty}"> > > >> > <f:attribute name="beanId" > value="#{heteroBean.id}" > > >> /> > > >> > </h:inputText> > > >> > <h:message styleClass="errorMessage" > for="#{heteroBean.id > > >> }" > > >> >binding="#{heteroBean.errorMessage}" /> > > >> > </h:column> > > >> > <f:facet name="footer"> > > >> > <h:column> > > >> > <h:commandButton > value="#{bundle.deleteLabel}" > > >> >action="#{heteroBean.deleteAction}" type="submit" style="#{ > > >> >heteroBean.displayEdit}" /> > > >> > <h:commandButton > value="#{bundle.editLabel}" > > >> action="#{ > > >> >heteroBean.editAction}" type="submit" > style="#{heteroBean.displayEdit}"/> > > >> > <h:commandButton > value="#{bundle.createLabel}" > > >> >action="#{heteroBean.createAction}" type="submit" style="#{ > > >> >heteroBean.displayCreate}"/> > > >> > <h:messages > errorClass="errorMessage" > > >> globalOnly="true" > > >> >/> > > >> > </h:column> > > >> > </f:facet> > > >> > </h:dataTable> > > >> > </h:form> > > >> ></f:subview> > > >> >------------------exception > > >> >java.lang.IllegalStateException: Duplicate id : _id71. Child could not > be > > >> >added. > > >> > at > javax.faces.component._ComponentChildrenList.checkAddAllowed > > >> >(_ComponentChildrenList.java:95) > > >> > at > javax.faces.component._ComponentChildrenList.add > > >> >(_ComponentChildrenList.java:84) > > >> > at > javax.faces.webapp.UIComponentTag.findComponent( > > >> UIComponentTag.java > > >> >:553) > > >> > at > javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java > > >> :309) > > >> > at > org.apache.jsp.newindex_jsp._jspx_meth_h_dataTable_0( > > >> >org.apache.jsp.newindex_jsp:1171) > > >> > at > org.apache.jsp.newindex_jsp._jspx_meth_h_form_1( > > >> >org.apache.jsp.newindex_jsp:1129 ) > > >> > at > org.apache.jsp.newindex_jsp._jspx_meth_f_subview_2( > > >> >org.apache.jsp.newindex_jsp:1101) > > >> > at > org.apache.jsp.newindex_jsp._jspx_meth_f_view_0( > > >> >org.apache.jsp.newindex_jsp:185 ) > > >> > at org.apache.jsp.newindex_jsp._jspService( > > >> >org.apache.jsp.newindex_jsp:134) > > >> > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > > >> > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > >> > at > org.apache.jasper.servlet.JspServletWrapper.service( > > >> >JspServletWrapper.java:322) > > >> > at > org.apache.jasper.servlet.JspServlet.serviceJspFile ( > > >> JspServlet.java > > >> >:291) > > >> > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > >> > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > >> >ApplicationFilterChain.java:252) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.doFilter( > > >> >ApplicationFilterChain.java:173) > > >> > at > org.apache.catalina.core.ApplicationDispatcher.invoke( > > >> >ApplicationDispatcher.java:672) > > >> > at > org.apache.catalina.core.ApplicationDispatcher.processRequest > ( > > >> >ApplicationDispatcher.java:463) > > >> > at > org.apache.catalina.core.ApplicationDispatcher.doForward( > > >> >ApplicationDispatcher.java:398) > > >> > at > org.apache.catalina.core.ApplicationDispatcher.forward ( > > >> >ApplicationDispatcher.java:301) > > >> > at > > >> > >org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch( > > >> >ServletExternalContextImpl.java:416) > > >> > at > org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView( > > >> >JspViewHandlerImpl.java:234) > > >> > at > org.apache.myfaces.lifecycle.LifecycleImpl.render( > > >> LifecycleImpl.java > > >> >:372) > > >> > at > javax.faces.webapp.FacesServlet.service(FacesServlet.java:109) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > >> >ApplicationFilterChain.java:252) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.doFilter( > > >> >ApplicationFilterChain.java:173) > > >> > at > ru.scriptum.view.util.SetCharacterEncodingFilter.doFilter( > > >> > SetCharacterEncodingFilter.java:44) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > > >> >ApplicationFilterChain.java:202) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.doFilter > ( > > >> >ApplicationFilterChain.java:173) > > >> > at > ru.scriptum.view.util.SecurityFilter.doFilter(SecurityFilter.java > > >> :72) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > ( > > >> >ApplicationFilterChain.java:202) > > >> > at > org.apache.catalina.core.ApplicationFilterChain.doFilter( > > >> >ApplicationFilterChain.java:173) > > >> > at > org.apache.catalina.core.StandardWrapperValve.invoke ( > > >> >StandardWrapperValve.java:213) > > >> > at > org.apache.catalina.core.StandardContextValve.invoke( > > >> >StandardContextValve.java:178) > > >> > at > org.apache.catalina.core.StandardHostValve.invoke ( > > >> >StandardHostValve.java:126) > > >> > at > org.apache.catalina.valves.ErrorReportValve.invoke( > > >> >ErrorReportValve.java:105) > > >> > at > org.apache.catalina.core.StandardEngineValve.invoke ( > > >> >StandardEngineValve.java:107) > > >> > at > org.apache.catalina.connector.CoyoteAdapter.service( > > >> >CoyoteAdapter.java:148) > > >> > at > org.apache.coyote.http11.Http11Processor.process ( > > >> Http11Processor.java > > >> >:856) > > >> > at > > >> > > > >> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection > > >> >(Http11Protocol.java :744) > > >> > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( > > >> >PoolTcpEndpoint.java:527) > > >> > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( > > >> > LeaderFollowerWorkerThread.java:80) > > >> > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( > > >> >ThreadPool.java:684) > > >> > at java.lang.Thread.run(Thread.java:595) > > >> > > > >> > > >> > > >> > > > > > > > > > > > -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

