[richfaces-svn-commits] JBoss Rich Faces SVN: r4745 - in branches/3.1.x/samples/orderingListDemo/src/main: webapp/pages and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Dec 11 15:37:09 EST 2007


Author: nbelaevski
Date: 2007-12-11 15:37:09 -0500 (Tue, 11 Dec 2007)
New Revision: 4745

Modified:
   branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/Bean.java
   branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
Log:
width handling added for rich:column

Modified: branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/Bean.java
===================================================================
--- branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/Bean.java	2007-12-11 20:37:04 UTC (rev 4744)
+++ branches/3.1.x/samples/orderingListDemo/src/main/java/org/richfaces/Bean.java	2007-12-11 20:37:09 UTC (rev 4745)
@@ -49,7 +49,7 @@
 		}
 	
 		for (int i = 0; i < 6; i++) {
-			zebraItems.add("Item " + i);
+			zebraItems.add(String.valueOf(i));
 		}
 	}
 

Modified: branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp
===================================================================
--- branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp	2007-12-11 20:37:04 UTC (rev 4744)
+++ branches/3.1.x/samples/orderingListDemo/src/main/webapp/pages/index.jsp	2007-12-11 20:37:09 UTC (rev 4745)
@@ -3,6 +3,7 @@
 <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
 <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
 <%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/orderingList" prefix="ol" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/dataTable" prefix="rich" %>
 <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
 
 <html>
@@ -200,12 +201,12 @@
 					<h:panelGroup>
 						<ol:orderingList value="#{bean.zebraItems}" var="item" 
 								controlsType="link" columnClasses="zebraCell1, zebraCell2" rowClasses="zebraRow1, zebraRow2">
-							<h:column>
+							<rich:column width="10px">
 								<f:facet name="header">
 									<h:outputText value="Name" />
 								</f:facet>
 								<h:outputText value="#{item}" />
-							</h:column>
+							</rich:column>
 							<h:column>
 								<f:facet name="header">
 									<h:outputText value="Name" />




More information about the richfaces-svn-commits mailing list