Author: jjamrich
Date: 2011-08-01 11:03:20 -0400 (Mon, 01 Aug 2011)
New Revision: 22575
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
Log:
Fix problem with value not sett to model
Problem was with unnecessary attribute converterMessage, which caused
hidden error and then break component lifecycle when value was submitted
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java 2011-07-29
12:50:47 UTC (rev 22574)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/rich/RichEditorBean.java 2011-08-01
15:03:20 UTC (rev 22575)
@@ -51,6 +51,7 @@
attributes.setAttribute("rendered", Boolean.TRUE);
attributes.remove("converter");
+ attributes.remove("converterMessage");
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-07-29
12:50:47 UTC (rev 22574)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richEditor/simple.xhtml 2011-08-01
15:03:20 UTC (rev 22575)
@@ -39,7 +39,6 @@
<ui:define name="component">
<rich:editor id="editor"
-
converterMessage="#{richEditorBean.attributes['converterMessage'].value}"
height="#{richEditorBean.attributes['height'].value}"
immediate="#{richEditorBean.attributes['immediate'].value}"
onblur="#{richEditorBean.attributes['onblur'].value}"
@@ -60,7 +59,8 @@
width="#{richEditorBean.attributes['width'].value}"
/>
<br/>
- <h:commandButton id="hButton" value="Submit" />
+ <h:commandButton id="hButton" value="[h] Submit"
/>
+ <a4j:commandButton id="a4jButton" value="[a4j] Submit"
render="output" />
<br/><br/>
Your text: <h:outputText id="output"
value="#{richEditorBean.attributes['value'].value}"/>
Show replies by date