Author: nbelaevski
Date: 2010-05-26 15:18:57 -0400 (Wed, 26 May 2010)
New Revision: 17297
Modified:
root/examples/core-demo/trunk/src/main/webapp/button.xhtml
root/examples/core-demo/trunk/src/main/webapp/link.xhtml
Log:
https://jira.jboss.org/browse/RF-8696
Modified: root/examples/core-demo/trunk/src/main/webapp/button.xhtml
===================================================================
--- root/examples/core-demo/trunk/src/main/webapp/button.xhtml 2010-05-26 19:18:28 UTC
(rev 17296)
+++ root/examples/core-demo/trunk/src/main/webapp/button.xhtml 2010-05-26 19:18:57 UTC
(rev 17297)
@@ -15,11 +15,12 @@
<h:outputText value="Name:" />
<h:form>
<h:inputText value="#{commandBean.name}" />
- <a4j:commandButton action="#{commandBean.submit}"
render="out" value="Say Hello" />
- <a4j:commandButton action="#{commandBean.submit}"
render="out" value="Say Hello with limitRender"
limitRender="true"/>
- <a4j:commandButton action="#{commandBean.reset}"
render="out" value="Reset" />
+ <a4j:commandButton action="#{commandBean.submit}"
render="out" value="Say Hello" execute="@form" />
+ <a4j:commandButton action="#{commandBean.submit}"
render="out" value="Say Hello with limitRender"
+ limitRender="true" execute="@form" />
+ <a4j:commandButton action="#{commandBean.reset}"
render="out" value="Reset" execute="@form" />
<a4j:commandButton value="Test AjaxBehavior">
- <f:ajax event="action" listener="#{commandBean.listener}"
/>
+ <f:ajax event="action" execute="@form"
render=":out" listener="#{commandBean.listener}" />
</a4j:commandButton>
</h:form>
<br />
Modified: root/examples/core-demo/trunk/src/main/webapp/link.xhtml
===================================================================
--- root/examples/core-demo/trunk/src/main/webapp/link.xhtml 2010-05-26 19:18:28 UTC (rev
17296)
+++ root/examples/core-demo/trunk/src/main/webapp/link.xhtml 2010-05-26 19:18:57 UTC (rev
17297)
@@ -15,17 +15,17 @@
<h:outputText value="Name:" />
<h:form>
<h:inputText value="#{commandBean.name}" />
- <a4j:commandLink action="#{commandBean.submit}"
render="out">
+ <a4j:commandLink action="#{commandBean.submit}" render="out"
execute="@form">
<h:outputText value="Say Hello" />
</a4j:commandLink>
- <a4j:commandLink action="#{commandBean.submit}" render="out"
limitRender="true">
+ <a4j:commandLink action="#{commandBean.submit}" render="out"
limitRender="true" execute="@form">
<h:outputText value="Say Hello with limitRender" />
</a4j:commandLink>
- <a4j:commandLink action="#{commandBean.reset}"
render="out">
+ <a4j:commandLink action="#{commandBean.reset}" render="out"
execute="@form">
<h:outputText value="Reset" />
</a4j:commandLink>
<a4j:commandLink>
- <f:ajax event="action" listener="#{commandBean.listener}"
/>
+ <f:ajax event="action" execute="@form"
render=":out" listener="#{commandBean.listener}" />
<h:outputText value="Test AjaxBehavior" />
</a4j:commandLink>
</h:form>