From jira-events at lists.jboss.org Wed Jul 16 08:15:23 2008 Content-Type: multipart/mixed; boundary="===============3095193907942045936==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Updated: (RF-3833) does not rerender specified component for newly added rows in a datatable Date: Wed, 16 Jul 2008 08:15:23 -0400 Message-ID: <19390206.1216210523496.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 8114334.1214843671363.JavaMail.jira@cloud.prod.atl2.jboss.com --===============3095193907942045936== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-3833?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski updated RF-3833: ------------------------------- Assignee: Ilya Shaikovsky > does not rerender specified component for newly added rows = in a datatable > -------------------------------------------------------------------------= -------------- > > Key: RF-3833 > URL: https://jira.jboss.org/jira/browse/RF-3833 > Project: RichFaces > Issue Type: Bug > Affects Versions: 3.2.1 > Environment: JBoss 4.2.2 / Seam 2.0.2 / RichFaces 3.2.1 / Facele= ts 1.1.14 > Reporter: Tareq Nabeel > Assignee: Ilya Shaikovsky > > When page is loaded initially and page size is 2, clicking on table rows = causes to rerender correctly. > However, when page size is increased to 4, clicking on the added rows (3 = and 4) does not rerender "myText". Clicking on rows 1 and 2 still updates = "myText" correctly. = > output for good rows clicks: > Response content: > > event 1 > > > Message: Find > output for bad rows clicks: > Response content: > does not contain the information above but section contains > > = > Message: "no information in response about elements to replace" = > Here's the code: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > package event.action; > import java.util.ArrayList; > import java.util.List; > import javax.faces.model.DataModel; > import javax.faces.model.ListDataModel; > import javax.faces.model.SelectItem; > import org.jboss.seam.ScopeType; > import org.jboss.seam.annotations.In; > import org.jboss.seam.annotations.Name; > import org.jboss.seam.annotations.Out; > @Name("testEventList") > public class TestEventList { > private DataModel eventsModel =3D new ListDataModel(); > private int pageSize =3D 2; > private List events =3D new ArrayList(); > = > @In(required =3D false) > @Out(scope =3D ScopeType.PAGE, required =3D false) > private Integer rowKeyVar; > public TestEventList() { > events.add("event 1"); > events.add("event 2"); > events.add("event 3"); > events.add("event 4"); > events.add("event 5"); > events.add("event 6"); = > } > = > public List getPageSizes() { > List pageSizeOptions =3D new ArrayList(); > pageSizeOptions.add(new SelectItem(new Integer(2), "2")); > pageSizeOptions.add(new SelectItem(new Integer(4), "4")); > pageSizeOptions.add(new SelectItem(new Integer(6), "6")); > return pageSizeOptions; > } > public DataModel getEvents() { > eventsModel.setWrappedData(events.subList(0, pageSize)); > return eventsModel; > } > public String getSelectedEvent() { > if (rowKeyVar=3D=3Dnull) { > rowKeyVar =3D 0; > } > eventsModel.setRowIndex(this.rowKeyVar.intValue()); > return (String) eventsModel.getRowData(); > } > public int getPageSize() { > return pageSize; > } > public void setPageSize(int pageSize) { > this.pageSize =3D pageSize; > } > = > public void noOp() { > System.out.println("********noOp() rowKeyVar=3D"+rowKeyVar); > } = > } > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > > > > > > >
> #{event} > >
>
>
> > > > > > = > = >
> >
-- = 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 --===============3095193907942045936==--