[ 
https://jira.jboss.org/jira/browse/RF-7996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nick Belaevski resolved RF-7996.
--------------------------------

    Resolution: Won't Fix
      Assignee: Nick Belaevski


Not a bug: you should assign "id" to each tab explicitly: 

                for (int i=0; i < numOfTabs; i++){
                        HtmlTab tab = 
(HtmlTab)application.createComponent(HtmlTab.COMPONENT_TYPE);
                        tab.setLabel("Nice Tab # "+(i+1));
                        tab.setId("tab" + i);
                        tabPanel.getChildren().add(tab);
                }
 

> Dynamically creating tabPanels throws an Exception
> --------------------------------------------------
>
>                 Key: RF-7996
>                 URL: https://jira.jboss.org/jira/browse/RF-7996
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-panels-layout-themes
>    Affects Versions: 3.3.2.CR1, 3.3.2.GA
>         Environment: Windows XP, JDK 1.6.0_12, Apache Tomcat 6.0.20
>            Reporter: Achim Gundermann
>            Assignee: Nick Belaevski
>            Priority: Critical
>
> Creating tab Panels with a backing bean throws under the latest RichFaces 
> version 3.3.2 the following Exception:
> javax.servlet.ServletException: tabs with the same name not allowed
>       javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
>       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)
>       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
>       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
>       
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
>       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
> But when I run my servlet under RichFaces version 3.2.1 then it works an no 
> exception is thrown.
> You can find a code example under 
> http://mkblog.exadel.com/?s=Dynamically+creating+RichFaces+tabs
> Because of this bug (or feature?) I cannot create tab panels dynamically with 
> AJAX functionality. When I set IDs for components in my backing bean, the 
> servlet engine throws the following Exception:
> javax.servlet.ServletException: duplicate Id for a component j_id36:mainForm
>       javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:530)
>       org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
>       org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
>       
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
>       org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to