Author: jjamrich
Date: 2011-07-28 17:48:18 -0400 (Thu, 28 Jul 2011)
New Revision: 22571
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
Log:
Add submit button and output to rich:editor page
Add controls to submit and verify submited value in editor component.
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-07-27
20:19:22 UTC (rev 22570)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-07-28
21:48:18 UTC (rev 22571)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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"
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j">
@@ -60,6 +60,11 @@
valueChangeListener="#{richEditorBean.attributes['valueChangeListener'].value}"
width="#{richEditorBean.attributes['width'].value}"
/>
+ <br/>
+ <h:commandButton id="hButton" value="Submit" />
+
+ <br/><br/>
+ Your selection: <h:outputText id="output"
value="#{richEditorBean.attributes['value'].value}"/>
</ui:define>