Author: pyaschenko
Date: 2011-01-27 11:08:30 -0500 (Thu, 27 Jan 2011)
New Revision: 21285
Added:
trunk/examples/misc-demo/src/main/webapp/pages/componentControl.xhtml
Log:
https://issues.jboss.org/browse/RF-10080
sample was added
Added: trunk/examples/misc-demo/src/main/webapp/pages/componentControl.xhtml
===================================================================
--- trunk/examples/misc-demo/src/main/webapp/pages/componentControl.xhtml
(rev 0)
+++ trunk/examples/misc-demo/src/main/webapp/pages/componentControl.xhtml 2011-01-27
16:08:30 UTC (rev 21285)
@@ -0,0 +1,25 @@
+<!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:input="http://richfaces.org/input"
+
xmlns:misc="http://richfaces.org/misc">
+<f:view>
+ <h:head></h:head>
+ <h:body>
+ <h:form>
+ <input:autocomplete id="myInput" value="aaaaaa"/>
+ <h:commandButton value="getValue">
+ <misc:componentControl target="myInput" operation="getValue"
event="click"/>
+ </h:commandButton>
+ <h:commandButton value="setValue">
+ <misc:componentControl target="myInput" operation="setValue"
+ event="click"
onbeforeoperation="alert(event.type+': cancel operation');return
false;">
+ <f:param value="bla-bla-bla" />
+ </misc:componentControl>
+ </h:commandButton>
+ </h:form>
+ </h:body>
+</f:view>
+</html>
\ No newline at end of file