Author: nbelaevski
Date: 2010-04-17 09:13:45 -0400 (Sat, 17 Apr 2010)
New Revision: 16770
Modified:
root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
Log:
Added wrapping example for a4j:ajax demo
Modified: root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml
===================================================================
--- root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml 2010-04-16
15:41:56 UTC (rev 16769)
+++ root/examples/trunk/components/core-demo/src/main/webapp/support.xhtml 2010-04-17
13:13:45 UTC (rev 16770)
@@ -6,7 +6,7 @@
xmlns:a="http://richfaces.org/a4j">
<h:head>
Richfaces Ajax Sample
-
+
</h:head>
<h:body>
<script type="text/javascript">
@@ -14,7 +14,7 @@
jQuery(source).css('border', borderStyle);
}
</script>
-
+
<h:form>
<a:status name="ilStatus" startText="...start..."
stopText="...stop..." />
<h:panelGrid columns="2">
@@ -23,44 +23,51 @@
<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>
+ </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>
+ </h:panelGroup>
</a:outputPanel>
</h:panelGrid>
-
-
+
+
</h:form>
- </h:body>
-</html>
\ No newline at end of file
+ </h:body>
+</html>
\ No newline at end of file