2 Replies Latest reply on Mar 16, 2007 11:28 AM by Ricardo Alba

    rich:dataTable Problems

    Ricardo Alba Newbie

      When I assign a binding to my dataTable and press F5 in explorer I get an error?? What can be the problem?

      <rich:dataTable value="#{tablaMB.formadores}" var="form" rows="5"
      binding="#{tablaMB.formTable}" id="tabPlanif">
      <rich:column >
      <f:facet name="header">Code</f:facet>
      <h:outputText value="#{form.codigo}" ></h:outputText>

      * Created on 10/03/2007
      * TODO To change the template for this generated file go to
      * Window - Preferences - Java - Code Style - Code Templates
      package demo;

      import java.util.LinkedList;
      import java.util.List;

      public class TablaMB {

      private org.richfaces.component.html.HtmlDataTable formTable = new org.richfaces.component.html.HtmlDataTable();
      private List formadores = new LinkedList();

      public TablaMB(){
      String frms[] = {"001","002","003","004","005","006","007","008","009","010","011","012","013","014","015","016","017","018","019","020","021","022","023","024"};

      for (int i=0 ; i < frms.length ;i++) {
      Formador formador = new Formador();

      public org.richfaces.component.html.HtmlDataTable getFormTable() {
      return formTable;

      public void setFormTable(org.richfaces.component.html.HtmlDataTable formTable) {
      this.formTable = formTable;

      public List getFormadores() {
      return formadores;

      public void setFormadores(List formadores) {
      this.formadores = formadores;


        • 1. Re: rich:dataTable Problems
          Sergey Smirnov Master

          What the error you have got?

          • 2. Re: rich:dataTable Problems
            Ricardo Alba Newbie

            Here you have:

            An Error Occurred:
            Component ID helloForm:tabPlanif:j_id7 has already been found in the view. See below for details. +id: _viewRoot type: org.ajax4jsf.framework.ajax.AjaxViewRoot@6f8860 +id: j_id0 type: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > +id: j_id1 type: +id: j_id2 type: +id: j_id3 type: Prevensis +id: j_id4 type: +id: j_id5 type: Prevensis - Planificacion de Cursos +id: j_id6 type: +id: indicator type: org.richfaces.component.html.HtmlDragIndicator@627bc7 +id: helloForm type: javax.faces.component.html.HtmlForm@1ac4f3e +id: panTabPlanif type: org.richfaces.component.html.HtmlPanel@186b0ee +id: tabPlanif type: org.richfaces.component.html.HtmlDataTable@1c9de24 +id: j_id7 type: org.richfaces.component.html.HtmlColumn@1743be +id: j_id7 type: Code +id: j_id9 type: javax.faces.component.html.HtmlOutputText@16091de +id: j_id8 type: org.richfaces.component.html.HtmlDatascroller@108b095 +id: j_id9 type: