[richfaces-svn-commits] JBoss Rich Faces SVN: r556 - trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Wed Apr 25 15:00:31 EDT 2007
Author: abelevich
Date: 2007-04-25 15:00:30 -0400 (Wed, 25 Apr 2007)
New Revision: 556
Added:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml
Removed:
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp
trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml
Log:
Deleted: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp 2007-04-25 18:59:53 UTC (rev 555)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.jsp 2007-04-25 19:00:30 UTC (rev 556)
@@ -1,12 +0,0 @@
-<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
-<html>
- <head>
- <title></title>
- </head>
- <body>
- <f:view>
-
- </f:view>
- </body>
-</html>
Deleted: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml 2007-04-25 18:59:53 UTC (rev 555)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml 2007-04-25 19:00:30 UTC (rev 556)
@@ -1,12 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:f="http://java.sun.com/jsf/core"
- xmlns:h="http://java.sun.com/jsf/html"
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
- xmlns:c="http://java.sun.com/jsp/jstl/core"
- >
- <f:view>
-
- </f:view>
-</html>
\ No newline at end of file
Copied: trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml (from rev 535, trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/index.xhtml)
===================================================================
--- trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml (rev 0)
+++ trunk/sandbox-samples/scrollable-grid-demo/src/main/webapp/pages/scrollable-grid.xhtml 2007-04-25 19:00:30 UTC (rev 556)
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ >
+ <head>
+
+ <script type="text/javascript">
+
+ function processCellValue(cell, value) {
+ var cell = $(cell);
+ if(cell) {
+ if(value && value.indexOf("2")>0) {
+ cell.setStyle({backgroundColor: "red"});
+ }
+ else {
+ cell.setStyle({backgroundColor: ""});
+ }
+ }
+ }
+
+ function onSort(column, order) {
+ alert("Column " + column + " sorted in " + order + " order.");
+ }
+ </script>
+ </head>
+
+ <body>
+
+ </body>
+</html>
\ No newline at end of file
More information about the richfaces-svn-commits
mailing list