[richfaces-svn-commits] JBoss Rich Faces SVN: r11697 - in trunk/test-applications/realworld/web/src/main: webapp and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Dec 10 10:45:02 EST 2008


Author: amarkhel
Date: 2008-12-10 10:45:01 -0500 (Wed, 10 Dec 2008)
New Revision: 11697

Modified:
   trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/tree/TreeSelectionManager.java
   trunk/test-applications/realworld/web/src/main/webapp/imagePreview.xhtml
   trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml
   trunk/test-applications/realworld/web/src/main/webapp/search.xhtml
Log:


Modified: trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/tree/TreeSelectionManager.java
===================================================================
--- trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/tree/TreeSelectionManager.java	2008-12-10 15:33:41 UTC (rev 11696)
+++ trunk/test-applications/realworld/web/src/main/java/org/richfaces/realworld/tree/TreeSelectionManager.java	2008-12-10 15:45:01 UTC (rev 11697)
@@ -265,7 +265,9 @@
 	private void setDataScrollerIndex(int index) {
 		UIComponent component = FacesContext.getCurrentInstance().getViewRoot();
 		UIDatascroller scroller = (UIDatascroller)component.findComponent("mainform:sc1");
-		scroller.setPage(index+1);
+		//scroller.setPage(index+1);
+		Map<String, Object> attributes = scroller.getDataTable().getAttributes();
+		attributes.put(UIDatascroller.SCROLLER_STATE_ATTRIBUTE, index+1);
 		selectedImageIndex.setSelectedImageIndex(index+1);
 	}
 	
@@ -277,7 +279,9 @@
 		selectedImage = selectedAlbum.getImages().get(index +1);
 		UIComponent component = FacesContext.getCurrentInstance().getViewRoot();
 		UIDatascroller scroller = (UIDatascroller)component.findComponent("mainform:sc1");
-		scroller.setPage(index+2);
+		//scroller.setPage(index+2);
+		Map<String, Object> attributes = scroller.getDataTable().getAttributes();
+		attributes.put(UIDatascroller.SCROLLER_STATE_ATTRIBUTE, index+2);
 		selectedImageIndex.setSelectedImageIndex(index+2);
 	}
 

Modified: trunk/test-applications/realworld/web/src/main/webapp/imagePreview.xhtml
===================================================================
(Binary files differ)

Modified: trunk/test-applications/realworld/web/src/main/webapp/layout/menu.xhtml
===================================================================
(Binary files differ)

Modified: trunk/test-applications/realworld/web/src/main/webapp/search.xhtml
===================================================================
(Binary files differ)




More information about the richfaces-svn-commits mailing list