Author: nbelaevski
Date: 2009-09-16 19:00:50 -0400 (Wed, 16 Sep 2009)
New Revision: 15600
Modified:
branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
Log:
https://jira.jboss.org/jira/browse/RF-7040
Modified: branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx
===================================================================
--- branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 22:07:54
UTC (rev 15599)
+++ branches/community/3.3.X/ui/editor/src/main/templates/editor.jspx 2009-09-16 23:00:50
UTC (rev 15600)
@@ -27,8 +27,7 @@
if
("input".equals(component.getAttributes().get("inputElementType"))) {
]]>
</jsp:scriptlet>
- <input type="text" id="#{clientId}TextArea"
name="#{clientId}TextArea"
- style="visibility: hidden"
+ <input type="hidden" id="#{clientId}TextArea"
name="#{clientId}TextArea"
value="#{this:getFormattedComponentStringValue(context, component)}" />
<jsp:scriptlet>
<![CDATA[
Modified:
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java
===================================================================
---
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16
22:07:54 UTC (rev 15599)
+++
branches/community/3.3.X/ui/editor/src/test/java/org/richfaces/component/EditorComponentTest.java 2009-09-16
23:00:50 UTC (rev 15600)
@@ -169,9 +169,7 @@
+ UIEditor.EDITOR_TEXT_AREA_ID_SUFFIX);
assertNotNull(input);
assertEquals(input.getTagName(), "input");
- String style = input.getAttribute("style");
- assertNotNull(style);
- assertTrue(style.contains("visibility: hidden"));
+ assertEquals("hidden", input.getAttribute("type"));
String value = input.getAttribute("value");
assertEquals("Some value", value);
}