Author: ppitonak(a)redhat.com
Date: 2010-09-15 03:58:13 -0400 (Wed, 15 Sep 2010)
New Revision: 19210
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml
Log:
https://jira.jboss.org/browse/RFPL-669
* not testable attributes removed
* fixed typos
* added submit button to the page
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java 2010-09-15
01:09:27 UTC (rev 19209)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichAutocompleteBean.java 2010-09-15
07:58:13 UTC (rev 19210)
@@ -63,13 +63,17 @@
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getUIComponentAttributes(UIAutocomplete.class,
getClass());
+ attributes.setAttribute("converterMessage", "converter
message");
attributes.setAttribute("mode", "cachedAjax");
attributes.setAttribute("rendered", true);
+ attributes.setAttribute("tokens", ", ");
+ attributes.setAttribute("validatorMessage", "validator
message");
-
attributes.remove("autocompleteMethod");
attributes.remove("converter");
+ attributes.remove("fetchValue");
attributes.remove("itemConverter");
+ attributes.remove("validator");
// these are hidden attributes
attributes.remove("autocompleteList");
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml 2010-09-15
01:09:27 UTC (rev 19209)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richAutocomplete/autocomplete.xhtml 2010-09-15
07:58:13 UTC (rev 19210)
@@ -84,10 +84,9 @@
required="#{richAutocompleteBean.attributes['required'].value}"
requiredMessage="#{richAutocompleteBean.attributes['requiredMessage'].value}"
selectFirst="#{richAutocompleteBean.attributes['selectFirst'].value}"
-
selectItemClass="#{richAutocompleteBean.attributes['selectItemClass'].value}"
+
selectedItemClass="#{richAutocompleteBean.attributes['selectedItemClass'].value}"
showButton="#{richAutocompleteBean.attributes['showButton'].value}"
tokens="#{richAutocompleteBean.attributes['tokens'].value}"
-
validator="#{richAutocompleteBean.attributes['validator'].value}"
validatorMessage="#{richAutocompleteBean.attributes['validatorMessage'].value}"
value="#{richAutocompleteBean.attributes['value'].value}"
valueChangeListener="#{richAutocompleteBean.attributes['valueChangeListener'].value}"
@@ -100,6 +99,8 @@
</ui:remove>
</rich:autocomplete>
+ <h:commandButton id="sendButton" execute="@form"
render="outputPanel,messages" value="Submit"/>
+
<br/><br/>
<a4j:outputPanel id="outputPanel" layout="block">
Your selection: <h:outputText id="output"
value="#{richAutocompleteBean.attributes['value'].value}"/>