[richfaces-svn-commits] JBoss Rich Faces SVN: r6380 - in trunk/sandbox/samples/fileUploadDemo: src/main/webapp/WEB-INF and 1 other directories.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Feb 27 11:20:13 EST 2008


Author: andrei_exadel
Date: 2008-02-27 11:20:13 -0500 (Wed, 27 Feb 2008)
New Revision: 6380

Modified:
   trunk/sandbox/samples/fileUploadDemo/pom.xml
   trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/faces-config.xml
   trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/web.xml
   trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
Log:
add skinning form

Modified: trunk/sandbox/samples/fileUploadDemo/pom.xml
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/pom.xml	2008-02-27 16:18:42 UTC (rev 6379)
+++ trunk/sandbox/samples/fileUploadDemo/pom.xml	2008-02-27 16:20:13 UTC (rev 6380)
@@ -22,10 +22,15 @@
 			<version>3.2.0-SNAPSHOT</version>
 		</dependency>
 		<dependency>
-					<groupId>org.richfaces.ui</groupId>
-					<artifactId>progressBar</artifactId>
-					<version>3.2.0-SNAPSHOT</version>
-				</dependency>
+			<groupId>org.richfaces.ui</groupId>
+			<artifactId>progressBar</artifactId>
+			<version>3.2.0-SNAPSHOT</version>
+		</dependency>
+        <dependency>
+            <groupId>org.richfaces.samples</groupId>
+            <artifactId>skins</artifactId>
+            <version>${project.version}</version>
+        </dependency>
 	</dependencies>
   <build>
     <finalName>fileUploadDemo</finalName>

Modified: trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/faces-config.xml	2008-02-27 16:18:42 UTC (rev 6379)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/faces-config.xml	2008-02-27 16:20:13 UTC (rev 6380)
@@ -7,4 +7,9 @@
   <managed-bean-class>org.richfaces.Bean</managed-bean-class>
   <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>
+  <managed-bean>
+        <managed-bean-name>skinBean</managed-bean-name>
+        <managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
+        <managed-bean-scope>session</managed-bean-scope>
+    </managed-bean>
 </faces-config>

Modified: trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/web.xml	2008-02-27 16:18:42 UTC (rev 6379)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/webapp/WEB-INF/web.xml	2008-02-27 16:20:13 UTC (rev 6380)
@@ -26,6 +26,13 @@
   <filter-name>ajax4jsf</filter-name>
   <filter-class>org.ajax4jsf.Filter</filter-class>
  </filter>
+ 
+ 
+ <filter>
+  <display-name>Sleep Filter</display-name>
+  <filter-name>sleepFilter</filter-name>
+  <filter-class>org.richfaces.SleepDemoFilter</filter-class>
+ </filter>
   
  <filter>
   <display-name>FileUpload Filter</display-name>
@@ -41,13 +48,7 @@
   </init-param>
    </filter>
   
- 
- <filter>
-  <display-name>Sleep Filter</display-name>
-  <filter-name>sleepFilter</filter-name>
-  <filter-class>org.richfaces.SleepDemoFilter</filter-class>
- </filter>
-
+ 
  <filter-mapping>
   <filter-name>sleepFilter</filter-name>
   <servlet-name>Faces Servlet</servlet-name>

Modified: trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp	2008-02-27 16:18:42 UTC (rev 6379)
+++ trunk/sandbox/samples/fileUploadDemo/src/main/webapp/pages/index.jsp	2008-02-27 16:20:13 UTC (rev 6380)
@@ -3,7 +3,7 @@
 <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
 <%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/fileUpload"
 	prefix="fu"%>
-<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/ui/progressBar" prefix="progressBar" %>
+<%@ taglib uri="http://labs.jboss.com/jbossrichfaces/ui/progressBar" prefix="progressBar" %>
 <html>
 <head>
 <title></title>
@@ -19,6 +19,11 @@
 </head>
 <body>
 <f:view>
+
+<h:form>
+           <h:selectOneRadio binding="#{skinBean.component}" />
+           <h:commandLink action="#{skinBean.change}" value="set skin" />
+	</h:form>
  
 <h:form>
 <table cellpadding="0" cellspacing="0" style="width: 500px">
@@ -41,12 +46,6 @@
 		fileUploadListener="#{bean.listener}" 
 		listWidth="#{bean.width}px" 
 		listHeight="#{bean.height}px"
-		uploadListClass="list"
-		uploadListClassDisabled="list_disabled"
-		fileEntryClass="entry"
-		fileEntryClassDisabled="entry_disabled"
-		fileEntryControlClass="entry_control"
-		fileEntryControlClassDisabled="entry_control_disabled"
 		maxFilesQuantity="#{bean.maxFiles}"
 		acceptedTypes="#{bean.fileTypes}">
 	<f:facet name="progress">




More information about the richfaces-svn-commits mailing list