« Return to Thread: Generated script not well-formed

Generated script not well-formed

by M. Huber :: Rate this Message:

| View in Thread

Hi!

I am using MyFaces Tomahawk 1.1.15 on Mojarra JSF 1.2 Impl
with XHTML-based JSF pages. Tomahawk renders source code like

<script type="text/javascript">
function getScrolling()
...&&...
}</script>

which is not valid XML because the "&&" is not XML-escaped.
I think it should be something like

<script type="text/javascript">//<![CDATA[
function getScrolling()...&&...}
//]]></script>

The responsible Java class seems to be
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils

How can I change the behavior of this class to render XML
compliant script code (without loosing the nice
org.apache.myfaces.AUTO_SCROLL feature)?

Thanks

Martin
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

 « Return to Thread: Generated script not well-formed