8 Replies Latest reply on Nov 10, 2008 5:54 AM by Ilya Shaikovsky

    Duplicate ID using rich:dataTable

    Carlos Eduardo Roque da Silva Newbie

      Hi everybody,

      I'm having an issue regarding rich:dataTable and a rich:datascroller. The problem seems simple, but I'm not understanding what's going on.

      When I enter the main page of my application (that has four text fields and two buttons, one dataTable and one dataScroller), everything works fine.

      But if I press F5 or browser's refresh button, JSF seems to break down, throwing a duplicate ID exception (see below).

      javax.servlet.ServletException: duplicate Id for a component j_id5:tabela:j_id16
       javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:246)
       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
       org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
       org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      


      In my case, my dataTable's got an id called "tabela", that is referenced by the datascroller.

      Has anybody had this problem?

      Appreciate your answer.

      Best Regards,

      ceduardo.roque