From jira-events at lists.jboss.org Mon Jun 30 12:34:31 2008 Content-Type: multipart/mixed; boundary="===============1204272144614358231==" MIME-Version: 1.0 From: Tareq Nabeel (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-3833) does not rerender specified component for newly added rows in a datatable Date: Mon, 30 Jun 2008 12:34:31 -0400 Message-ID: <8114334.1214843671363.JavaMail.jira@cloud.prod.atl2.jboss.com> --===============1204272144614358231== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable does not rerender specified component for newly added rows in= a datatable ---------------------------------------------------------------------------= ------------ Key: RF-3833 URL: http://jira.jboss.com/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 / Facelet= s 1.1.14 Reporter: Tareq Nabeel When page is loaded initially and page size is 2, clicking on table rows ca= uses to rerender correctly. However, when page size is increased to 4, clicking on the added rows (3 an= d 4) does not rerender "myText". Clicking on rows 1 and 2 still updates "m= yText" 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 com.jdsu.ntcems.webapp.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= p://jira.jboss.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1204272144614358231==--