Author: ppitonak(a)redhat.com
Date: 2010-11-10 10:03:37 -0500 (Wed, 10 Nov 2010)
New Revision: 20013
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-757
* set of attributes updated
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-11-10
15:00:38 UTC (rev 20012)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-11-10
15:03:37 UTC (rev 20013)
@@ -36,6 +36,7 @@
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
+import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import javax.servlet.http.HttpSession;
@@ -369,4 +370,14 @@
public void dummyActionListener(ActionEvent event) {
logToPage("* action listener invoked");
}
+
+ /**
+ * A value change listener that logs to the page old and new value.
+ *
+ * @param event
+ * an event representing the activation of a user interface component (not
used)
+ */
+ public void valueChangeListener(ValueChangeEvent event) {
+ RichBean.logToPage("* value changed: " + event.getOldValue() + "
-> " + event.getNewValue());
+ }
}
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java 2010-11-10
15:00:38 UTC (rev 20012)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichInplaceInputBean.java 2010-11-10
15:03:37 UTC (rev 20013)
@@ -54,7 +54,7 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getUIComponentAttributes(UIInplaceInput.class,
getClass());
+ attributes = Attributes.getUIComponentAttributes(UIInplaceInput.class,
getClass(), false);
attributes.setAttribute("defaultLabel", "Click here to
edit");
attributes.setAttribute("editEvent", "click");
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml 2010-11-10
15:00:38 UTC (rev 20012)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richInplaceInput/simple.xhtml 2010-11-10
15:03:37 UTC (rev 20013)
@@ -41,22 +41,25 @@
<ui:define name="component">
<rich:inplaceInput id="inplaceInput"
+
changedStateClass="#{richInplaceInputBean.attributes['changedStateClass'].value}"
converter="#{richInplaceInputBean.attributes['converter'].value}"
converterMessage="#{richInplaceInputBean.attributes['converterMessage'].value}"
defaultLabel="#{richInplaceInputBean.attributes['defaultLabel'].value}"
+
disableStateClass="#{richInplaceInputBean.attributes['disableStateClass'].value}"
+
editClass="#{richInplaceInputBean.attributes['editClass'].value}"
editEvent="#{richInplaceInputBean.attributes['editEvent'].value}"
+
editStateClass="#{richInplaceInputBean.attributes['editStateClass'].value}"
immediate="#{richInplaceInputBean.attributes['immediate'].value}"
inputWidth="#{richInplaceInputBean.attributes['inputWidth'].value}"
-
localValue="#{richInplaceInputBean.attributes['localValue'].value}"
-
localValueSet="#{richInplaceInputBean.attributes['localValueSet'].value}"
+
noneClass="#{richInplaceInputBean.attributes['noneClass'].value}"
onblur="#{richInplaceInputBean.attributes['onblur'].value}"
onclick="#{richInplaceInputBean.attributes['onclick'].value}"
ondblclick="#{richInplaceInputBean.attributes['ondblclick'].value}"
onfocus="#{richInplaceInputBean.attributes['onfocus'].value}"
oninputblur="#{richInplaceInputBean.attributes['oninputblur'].value}"
-
oninputchangechange="#{richInplaceInputBean.attributes['oninputchange'].value}"
+
oninputchange="#{richInplaceInputBean.attributes['oninputchange'].value}"
oninputclick="#{richInplaceInputBean.attributes['oninputclick'].value}"
-
oninputdblClick="#{richInplaceInputBean.attributes['oninputdblClick'].value}"
+
oninputdblclick="#{richInplaceInputBean.attributes['oninputdblclick'].value}"
oninputfocus="#{richInplaceInputBean.attributes['oninputfocus'].value}"
oninputkeydown="#{richInplaceInputBean.attributes['oninputkeydown'].value}"
oninputkeypress="#{richInplaceInputBean.attributes['oninputkeypress'].value}"
@@ -75,19 +78,17 @@
onmouseout="#{richInplaceInputBean.attributes['onmouseout'].value}"
onmouseover="#{richInplaceInputBean.attributes['onmouseover'].value}"
onmouseup="#{richInplaceInputBean.attributes['onmouseup'].value}"
+
readyStateClass="#{richInplaceInputBean.attributes['readyStateClass'].value}"
rendered="#{richInplaceInputBean.attributes['rendered'].value}"
required="#{richInplaceInputBean.attributes['required'].value}"
requiredMessage="#{richInplaceInputBean.attributes['requiredMessage'].value}"
+
saveOnBlur="#{richInplaceInputBean.attributes['saveOnBlur'].value}"
showControls="#{richInplaceInputBean.attributes['showControls'].value}"
state="#{richInplaceInputBean.attributes['state'].value}"
-
submittedValue="#{richInplaceInputBean.attributes['submittedValue'].value}"
tabIndex="#{richInplaceInputBean.attributes['tabIndex'].value}"
-
valid="#{richInplaceInputBean.attributes['valid'].value}"
validatorMessage="#{richInplaceInputBean.attributes['validatorMessage'].value}"
-
validators="#{richInplaceInputBean.attributes['validators'].value}"
value="#{richInplaceInputBean.attributes['value'].value}"
-
valueChangeListener="#{richInplaceInputBean.attributes['valueChangeListener'].value}"
-
valueChangeListeners="#{richInplaceInputBean.attributes['valueChangeListeners'].value}"
+
valueChangeListener="#{richBean.valueChangeListener}"
<a4j:ajax event="inputchange"
render="output"/>