From jira-events at lists.jboss.org Thu Mar 18 07:52:38 2010 Content-Type: multipart/mixed; boundary="===============1652023475616510577==" MIME-Version: 1.0 From: Lukas Fryc (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Closed: (RF-7962) Dynamically generated TabPanel Date: Thu, 18 Mar 2010 07:52:38 -0400 Message-ID: <469107447.1268913158317.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1435318274.1255001166059.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com --===============1652023475616510577== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-7962?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Lukas Fryc closed RF-7962. -------------------------- > Dynamically generated TabPanel > ------------------------------ > > Key: RF-7962 > URL: https://jira.jboss.org/jira/browse/RF-7962 > Project: RichFaces > Issue Type: Bug > Security Level: Public(Everyone can see) = > Components: examples > Affects Versions: 3.3.2.GA > Environment: JBoss AS 5.1.0.GA, JDK6 > Reporter: Lukas Fryc > Assignee: Ilya Shaikovsky > Fix For: 3.3.3.BETA1 > > Attachments: dyntabpanel.tar.gz > > > When generates rich:tabPanel dynamically using c:forEach, the model doesn= 't accept removing and adding again the rich:tab with the same id. > Maven sample attached (dyntabpanel.tar.gz). > Reproducing: > 1. open application /dyntabpanel > 2. let inputText as "2" > 3. click Remove (the tab with "2" disappers) > 4. click Add (EXCEPTION) > [code] > package org.richfaces.samples.dyntabpanel; > import java.util.Arrays; > import java.util.LinkedList; > import java.util.List; > public class Bean { > List tabs =3D new LinkedList(Arrays.asList(new String[] = {"1", "2", "3"})); > String number =3D "2"; > = > public String getNumber() { > return number; > } > = > public void setNumber(String number) { > this.number =3D number; > } > = > public String[] getNumberArray() { > return tabs.toArray(new String[tabs.size()]); > } > = > public void remove() { > if (tabs.contains(number)) { > tabs.remove(number); > } > } > = > public void add() { > if (!tabs.contains(number)) { > tabs.add(number); > } > } > } > [/code] > [code] > > xmlns:c=3D"http://java.sun.com/jstl/core" > xmlns:f=3D"http://java.sun.com/jsf/core" > xmlns:h=3D"http://java.sun.com/jsf/html" > xmlns:ui=3D"http://java.sun.com/jsf/facelets" > xmlns:a4j=3D"http://richfaces.org/a4j" > xmlns:rich=3D"http://richfaces.org/rich"> > > > > > > > = > > > > > > = > > > > > > > > > [/cpde] -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1652023475616510577==--