From jira-events at lists.jboss.org Thu Nov 12 01:38:06 2009 Content-Type: multipart/mixed; boundary="===============1723274898625941013==" MIME-Version: 1.0 From: Lukas Fryc (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-7962) Dynamically generated TabPanel Date: Thu, 12 Nov 2009 01:38:06 -0500 Message-ID: <273388879.1258007886566.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1435318274.1255001166059.JavaMail.jboss@jira01.app.mwc.hst.phx2.redhat.com --===============1723274898625941013== 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:comment-tabpanel&focusedCommentId=3D12494262#a= ction_12494262 ] = Lukas Fryc commented on RF-7962: -------------------------------- Please add me to CC in that bug if you can. username=3Dlfryc > Dynamically generated TabPanel > ------------------------------ > > Key: RF-7962 > URL: https://jira.jboss.org/jira/browse/RF-7962 > Project: RichFaces > Issue Type: Bug > 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 --===============1723274898625941013==--