Author: nbelaevski
Date: 2007-03-13 16:56:05 -0400 (Tue, 13 Mar 2007)
New Revision: 61
Modified:
trunk/richfaces/drag-drop/src/main/java/org/richfaces/renderkit/DragIndicatorRendererBase.java
trunk/richfaces/drag-drop/src/main/templates/org/richfaces/htmlDragIndicator.jspx
Log:
CDATA sectioning corrected
Modified:
trunk/richfaces/drag-drop/src/main/java/org/richfaces/renderkit/DragIndicatorRendererBase.java
===================================================================
---
trunk/richfaces/drag-drop/src/main/java/org/richfaces/renderkit/DragIndicatorRendererBase.java 2007-03-13
20:39:09 UTC (rev 60)
+++
trunk/richfaces/drag-drop/src/main/java/org/richfaces/renderkit/DragIndicatorRendererBase.java 2007-03-13
20:56:05 UTC (rev 61)
@@ -135,6 +135,9 @@
throws IOException {
ResponseWriter responseWriter = context.getResponseWriter();
+ //surround by CDATAs
+ responseWriter.write("/*<![CDATA[*/");
+
for (Iterator iterator = MARKERS_PREDEFINED.iterator(); iterator.hasNext();) {
String markerName = (String) iterator.next();
@@ -172,5 +175,8 @@
responseWriter.write(result + ";\n new Insertion.Top(element,
content);\n");
responseWriter.write("};");
}
+
+ //surround by CDATAs
+ responseWriter.write("/*]]>*/");
}
}
Modified:
trunk/richfaces/drag-drop/src/main/templates/org/richfaces/htmlDragIndicator.jspx
===================================================================
---
trunk/richfaces/drag-drop/src/main/templates/org/richfaces/htmlDragIndicator.jspx 2007-03-13
20:39:09 UTC (rev 60)
+++
trunk/richfaces/drag-drop/src/main/templates/org/richfaces/htmlDragIndicator.jspx 2007-03-13
20:56:05 UTC (rev 61)
@@ -22,15 +22,15 @@
<div id="#{clientId}" class="drgind_fly drgind_default drag_indicator
#{component.attributes['styleClass']}" style="display: none;
#{component.attributes['style']}">
<script type="text/javascript">
- //<![CDATA[
+ /*<![CDATA[*/
var elt = $("#{clientId}");
elt.markers = {};
elt.indicatorTemplates = {};
- //]]>
+ /*]]>*/
<f:call name="encodeChildScripts" />
- //<![CDATA[
+ /*<![CDATA[*/
createDragIndicator(elt);
- //]]>
+ /*]]>*/
</script>
<vcp:body />
</div>
Show replies by date