Author: nbelaevski
Date: 2010-04-17 09:21:26 -0400 (Sat, 17 Apr 2010)
New Revision: 16771
Added:
root/examples/trunk/components/core-demo/src/main/webapp/ajax.xhtml
Removed:
root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
Modified:
root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml
Log:
ajax demo page file renamed
Copied: root/examples/trunk/components/core-demo/src/main/webapp/ajax.xhtml (from rev
16770, root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml)
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/ajax.xhtml
(rev 0)
+++ root/examples/trunk/components/core-demo/src/main/webapp/ajax.xhtml 2010-04-17
13:21:26 UTC (rev 16771)
@@ -0,0 +1,73 @@
+<!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:a="http://richfaces.org/a4j">
+ <h:head>
+ Richfaces Ajax Sample
+
+ </h:head>
+ <h:body>
+ <script type="text/javascript">
+ function selectEventSource(source, borderStyle) {
+ jQuery(source).css('border', borderStyle);
+ }
+ </script>
+
+ <h:form>
+ <a:status name="ilStatus" startText="...start..."
stopText="...stop..." />
+ <h:panelGrid columns="2">
+ <h:outputText value="a:ajax attached fires ajax submit on 'keyup'
event"/>
+ <h:inputText value="#{supportBean.text1}">
+ <a:ajax event="keyup" render="text1"
statusId="ilStatus" listener="#{supportBean.behaviorListener}"/>
+ </h:inputText>
+ </h:panelGrid>
+
+ <h:panelGrid columns="1">
+ <h:outputText value="a:ajax for 'keyup' event wrapping several
elements" />
+ <a:ajax event="keyup" execute="@this" render="text1"
statusId="ilStatus" listener="#{supportBean.behaviorListener}">
+ <h:inputText value="#{supportBean.text1}" />
+ <h:inputText value="#{supportBean.text1}" />
+ <h:inputText value="#{supportBean.text1}" />
+ </a:ajax>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2" style="border: 1px solid green;">
+ <h:outputText value="reRender text1: "/>
+ <h:outputText id="text1" value="#{supportBean.text1}" />
+
+ <h:outputText value="Ajax Panel ajaxRendered='true':"/>
+ <a:outputPanel ajaxRendered="true" style="border: 1px solid
red;">
+ <f:facet name="header">test</f:facet>
+ <h:outputText value="Ajax Panel ajaxRendered='true':" />
+ <h:panelGroup style="padding: 2px;">
+ <h:outputText value="#{supportBean.text1}"/>
+ </h:panelGroup>
+ </a:outputPanel>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2">
+ <h:outputText value="a:ajax attached fires ajax submit on default
event"/>
+ <h:inputText value="#{supportBean.text2}">
+ <a:ajax render="text2" statusId="ilStatus"
limitRender="true"/>
+ </h:inputText>
+ </h:panelGrid>
+
+ <h:panelGrid columns="2" style="border: 1px solid green;">
+ <h:outputText value="reRender text2 limitRender='true': "/>
+ <h:outputText id="text2" value="#{supportBean.text2}" />
+
+ <h:outputText value="Ajax Panel shouldn't work coz < a:ajax
limitRender='true' /> :"/>
+ <a:outputPanel ajaxRendered="true" style="border: 1px solid
red;">
+ <h:outputText value="Ajax Panel ajaxRendered='true':" />
+ <h:panelGroup style="padding: 2px;">
+ <h:outputText value="#{supportBean.text2}"/>
+ </h:panelGroup>
+ </a:outputPanel>
+ </h:panelGrid>
+
+
+ </h:form>
+ </h:body>
+</html>
\ No newline at end of file
Deleted: root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml 2010-04-17
13:13:45 UTC (rev 16770)
+++ root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml 2010-04-17
13:21:26 UTC (rev 16771)
@@ -1,73 +0,0 @@
-<!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:a="http://richfaces.org/a4j">
- <h:head>
- Richfaces Ajax Sample
-
- </h:head>
- <h:body>
- <script type="text/javascript">
- function selectEventSource(source, borderStyle) {
- jQuery(source).css('border', borderStyle);
- }
- </script>
-
- <h:form>
- <a:status name="ilStatus" startText="...start..."
stopText="...stop..." />
- <h:panelGrid columns="2">
- <h:outputText value="a:ajax attached fires ajax submit on 'keyup'
event"/>
- <h:inputText value="#{supportBean.text1}">
- <a:ajax event="keyup" render="text1"
statusId="ilStatus" listener="#{supportBean.behaviorListener}"/>
- </h:inputText>
- </h:panelGrid>
-
- <h:panelGrid columns="1">
- <h:outputText value="a:ajax for 'keyup' event wrapping several
elements" />
- <a:ajax event="keyup" execute="@this" render="text1"
statusId="ilStatus" listener="#{supportBean.behaviorListener}">
- <h:inputText value="#{supportBean.text1}" />
- <h:inputText value="#{supportBean.text1}" />
- <h:inputText value="#{supportBean.text1}" />
- </a:ajax>
- </h:panelGrid>
-
- <h:panelGrid columns="2" style="border: 1px solid green;">
- <h:outputText value="reRender text1: "/>
- <h:outputText id="text1" value="#{supportBean.text1}" />
-
- <h:outputText value="Ajax Panel ajaxRendered='true':"/>
- <a:outputPanel ajaxRendered="true" style="border: 1px solid
red;">
- <f:facet name="header">test</f:facet>
- <h:outputText value="Ajax Panel ajaxRendered='true':" />
- <h:panelGroup style="padding: 2px;">
- <h:outputText value="#{supportBean.text1}"/>
- </h:panelGroup>
- </a:outputPanel>
- </h:panelGrid>
-
- <h:panelGrid columns="2">
- <h:outputText value="a:ajax attached fires ajax submit on default
event"/>
- <h:inputText value="#{supportBean.text2}">
- <a:ajax render="text2" statusId="ilStatus"
limitRender="true"/>
- </h:inputText>
- </h:panelGrid>
-
- <h:panelGrid columns="2" style="border: 1px solid green;">
- <h:outputText value="reRender text2 limitRender='true': "/>
- <h:outputText id="text2" value="#{supportBean.text2}" />
-
- <h:outputText value="Ajax Panel shouldn't work coz < a:ajax
limitRender='true' /> :"/>
- <a:outputPanel ajaxRendered="true" style="border: 1px solid
red;">
- <h:outputText value="Ajax Panel ajaxRendered='true':" />
- <h:panelGroup style="padding: 2px;">
- <h:outputText value="#{supportBean.text2}"/>
- </h:panelGroup>
- </a:outputPanel>
- </h:panelGrid>
-
-
- </h:form>
- </h:body>
-</html>
\ No newline at end of file
Modified: root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml 2010-04-17
13:13:45 UTC (rev 16770)
+++ root/examples/trunk/components/core-demo/src/main/webapp/welcome.xhtml 2010-04-17
13:21:26 UTC (rev 16771)
@@ -9,7 +9,7 @@
<center>
<h1>Welcome To RichFaces 4.x Core Demo</h1>
<ul>
- <li><h:link outcome="support">a4j:ajax</h:link></li>
+ <li><h:link outcome="ajax">a4j:ajax</h:link></li>
<li><h:link
outcome="button">a4j:commandButton</h:link></li>
<li><h:link
outcome="link">a4j:commandLink</h:link></li>
<li><h:link outcome="log">a4j:log</h:link></li>