Author: SergeySmirnov
Date: 2007-11-09 15:59:54 -0500 (Fri, 09 Nov 2007)
New Revision: 3887
Added:
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/examples/
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/examples/simple.xhtml
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/usage.xhtml
Log:
rex-button demo is resent
Added:
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/examples/simple.xhtml
===================================================================
--- trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/examples/simple.xhtml
(rev 0)
+++
trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/examples/simple.xhtml 2007-11-09
20:59:54 UTC (rev 3887)
@@ -0,0 +1,78 @@
+<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rex="http://labs.jboss.com/jbossrichfaces/ui/ui/rex-button"
+
xmlns:mb="http://labs.jboss.com/jbossrichfaces/ui/ui/rex-messageBox&...
+
xmlns:cc="http://labs.jboss.com/jbossrichfaces/ui/ui/componentContro...
+
xmlns:rich="http://richfaces.org/rich">
+
+<f:view contentType="text/html">
+
+
+ <h:form id="f">
+
+ <rex:button id="a" style="color:red" value="The real button
Name">
+ <a4j:commandButton />
+ </rex:button>
+
+ <rich:panel id="mb3" style="width:100px;border:1px solid
red">Start</rich:panel>
+
+ <cc:componentControl event="onclick" attachTo="mb3"
for="mb4" operation="show"/>
+
+
+ <rex:button id="mb4" onclick="aaa()" value="Show Box"
/>
+
+
+ </h:form>
+
+
+
+
+ <rich:modalPanel id="dd">
+ <h:outputText value="hello" />
+ </rich:modalPanel>
+
+ <script>
+ jQuery('#f\\:mb4')[0].component = {};
+ jQuery('#f\\:mb4')[0].component.show = function(event, params) {
+ jQuery('#f\\:mb4').click();
+ }
+ </script>
+
+ <button onclick="upup()">UpUp</button>
+
+
+
+
+ <div id="ddd" style="position:absolute;top:400px;right:200px;
border:1px solid green;width:100px">x</div>
+ <div id="ddd2" style="position:absolute;top:800px;right:700px;
border:1px solid green;width:100px">x</div>
+
+ <div id="d:e">
+ <script type="text/javascript">
+ window.$pardiv = Ext.get('d:e').dom;
+ $pardiv.messageBox = new Object();
+ $pardiv.messageBox.show = function(anim) {
+ Ext.MessageBox.show({
+ title: 'Address',
+ msg: 'Please enter your address:',
+ width:300,
+ modal:true,
+ multiline:16,
+ buttons: {ok:'foo', cancel:'bar'},
+ animEl: anim || 'ddd2'
+ });
+ };
+ function aaa(par) {
+ Ext.get('d:e').dom.messageBox.show(par);
+ }
+ </script>
+
+ </div>
+
+
+
+
+</f:view>
+</ui:composition>
\ No newline at end of file
Added: trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/usage.xhtml
===================================================================
--- trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/usage.xhtml
(rev 0)
+++ trunk/sandbox/samples/rex-demo/src/main/webapp/richfaces/button/usage.xhtml 2007-11-09
20:59:54 UTC (rev 3887)
@@ -0,0 +1,27 @@
+<!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:ui="http://java.sun.com/jsf/facelets"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:rich="http://richfaces.org/rich">
+ <ui:composition template="/templates/component-sample.xhtml">
+ <ui:define name="sample">
+
+ <p>Description
+ </p>
+
+
+ <div class="sample-container" >
+
+ <ui:include src="/richfaces/button/examples/simple.xhtml"/>
+ <ui:include src="/templates/include/sourceview.xhtml">
+ <ui:param name="sourcepath"
value="/richfaces/button/examples/simple.xhtml"/>
+ </ui:include>
+ </div>
+
+
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file