Author: alevkovsky
Date: 2008-10-21 10:58:50 -0400 (Tue, 21 Oct 2008)
New Revision: 10853
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
trunk/sandbox/ui/editor/src/main/templates/editor.jspx
Log:
Adjust template
Modified:
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java
===================================================================
---
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-10-21
14:11:16 UTC (rev 10852)
+++
trunk/sandbox/ui/editor/src/main/java/org/richfaces/renderkit/EditorRendererBase.java 2008-10-21
14:58:50 UTC (rev 10853)
@@ -94,4 +94,14 @@
}
+ protected String getFormattedComponentStringValue(FacesContext context,
+ UIEditor component) {
+ String fieldValue = (String) component.getSubmittedValue();
+ if (fieldValue == null) {
+ fieldValue = getConvertedStringValue(context, component, component
+ .getValue());
+ }
+ return fieldValue;
+ }
+
}
Modified: trunk/sandbox/ui/editor/src/main/templates/editor.jspx
===================================================================
--- trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-21 14:11:16 UTC (rev
10852)
+++ trunk/sandbox/ui/editor/src/main/templates/editor.jspx 2008-10-21 14:58:50 UTC (rev
10853)
@@ -17,17 +17,8 @@
class="rich-editor">
<textarea id="#{clientId}TextArea" name='#{clientId}TextArea'
- style="width: #{component.attributes['width']}px; height:
#{component.attributes['height']}px;">
- <jsp:scriptlet>
- <![CDATA[
- String fieldValue = (String)component.getSubmittedValue();
- if (fieldValue == null) {
- fieldValue = getConvertedStringValue(context, component, component.getValue());
- }
- variables.setVariable("fieldValue", fieldValue);
- writer.write(fieldValue);
- ]]>
- </jsp:scriptlet>
+ style="width: #{component.attributes['width']}px; height:
#{component.attributes['height']}px; visibility: hidden">
+ #{this:getFormattedComponentStringValue(context, component)}
</textarea>
<script type="text/javascript">
Show replies by date