Author: ppitonak(a)redhat.com
Date: 2010-09-21 11:48:39 -0400 (Tue, 21 Sep 2010)
New Revision: 19284
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JAjaxBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jAjax/hCommandButton.xhtml
Log:
* small refactoring in A4JAjaxBean
* changed string added to page log after action/action listener invoked
* added second output to the page for command button and a4j:ajax
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-09-21
15:44:05 UTC (rev 19283)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/Attributes.java 2010-09-21
15:48:39 UTC (rev 19284)
@@ -366,7 +366,7 @@
return null;
}
- RichBean.logToPage("action invoked");
+ RichBean.logToPage("* action invoked");
// if no select options for "action" are defined in property file and
it is an EL expression
if (!hasSelectOptions("action") && isStringEL(outcome)) {
@@ -407,7 +407,7 @@
return;
}
- RichBean.logToPage("action listener invoked");
+ RichBean.logToPage("* action listener invoked");
// if no select options for "actionListener" are defined in property
file and it is an EL expression
if (!hasSelectOptions("actionListener") &&
isStringEL(listener)) {
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JAjaxBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JAjaxBean.java 2010-09-21
15:44:05 UTC (rev 19283)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JAjaxBean.java 2010-09-21
15:48:39 UTC (rev 19284)
@@ -64,9 +64,10 @@
attributes = Attributes.getBehaviorAttributes(AjaxBehavior.class, getClass());
// the 'event' attribute for behavior tag must be a literal
attributes.remove("event");
- attributes.get("render").setValue("output");
- attributes.get("execute").setValue("@form");
+ attributes.setAttribute("render", "output1, output2");
+ attributes.setAttribute("execute", "@form");
+
cars = new ArrayList<String>();
cars.add("Ferrari");
cars.add("Lexus");
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jAjax/hCommandButton.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jAjax/hCommandButton.xhtml 2010-09-21
15:44:05 UTC (rev 19283)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/a4jAjax/hCommandButton.xhtml 2010-09-21
15:48:39 UTC (rev 19284)
@@ -60,9 +60,12 @@
/>
</h:commandButton>
- <a4j:outputPanel id="output" layout="block">
+ <a4j:outputPanel id="output1" layout="block">
<h:outputText value="#{a4jAjaxBean.input}"/>
</a4j:outputPanel>
+ <a4j:outputPanel id="output2" layout="block">
+ <h:outputText value="#{a4jAjaxBean.input}"/>
+ </a4j:outputPanel>
</ui:define>
Show replies by date