[richfaces-svn-commits] JBoss Rich Faces SVN: r12178 - in trunk/samples/richfaces-demo/src/main: webapp/richfaces/editor/examples and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jan 9 09:11:10 EST 2009


Author: ilya_shaikovsky
Date: 2009-01-09 09:11:10 -0500 (Fri, 09 Jan 2009)
New Revision: 12178

Modified:
   trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/editor/EditorBean.java
   trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
Log:


Modified: trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/editor/EditorBean.java
===================================================================
--- trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/editor/EditorBean.java	2009-01-09 14:03:32 UTC (rev 12177)
+++ trunk/samples/richfaces-demo/src/main/java/org/richfaces/demo/editor/EditorBean.java	2009-01-09 14:11:10 UTC (rev 12178)
@@ -21,6 +21,10 @@
 		configurations.add(new SelectItem(CONFIGS_PACKAGE + "advanced", "Advanced"));
 	}
 	
+	public void resetValue() {
+		value = "";
+	}
+	
 	public String getCurrentConfiguration() {
 		return currentConfiguration;
 	}

Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml	2009-01-09 14:03:32 UTC (rev 12177)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/editor/examples/editor.xhtml	2009-01-09 14:11:10 UTC (rev 12178)
@@ -50,7 +50,7 @@
 					<h:outputText value="Use Seam Text: " />
 					<h:selectBooleanCheckbox value="#{editorBean.useSeamText}">
 						<a4j:support event="onclick" reRender="editor,result" requestDelay="500"
-							eventsQueue="settingsQueue" similarityGroupingId="settings" />
+							eventsQueue="settingsQueue" similarityGroupingId="settings" action="#{editorBean.resetValue}"/>
 					</h:selectBooleanCheckbox>
 				</h:panelGrid>
 			</rich:panel>




More information about the richfaces-svn-commits mailing list