You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ville Virtanen (JIRA)" <ji...@apache.org> on 2009/05/05 17:26:30 UTC
[jira] Commented: (TAP5-684) Evaluating script element
[ https://issues.apache.org/jira/browse/TAP5-684?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706065#action_12706065 ]
Ville Virtanen commented on TAP5-684:
-------------------------------------
You have to use CDATA, see
http://www.w3schools.com/XML/xml_cdata.asp
or
http://en.wikipedia.org/wiki/CDATA
If you encounter problems with that read http://www.nabble.com/RenderSupport-addScript-old-browsers-td23039476.html and http://www.nabble.com/t5:-embed-a-variable-in-a-javascript-in-a-tml--to23382334s302.html
> Evaluating script element
> -------------------------
>
> Key: TAP5-684
> URL: https://issues.apache.org/jira/browse/TAP5-684
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.1.0.4
> Reporter: Pedro Januário
>
> Occurs one exception, if we use a javascript html element inside de tempate, and the javascript contains the and operator (&&).
> Exception assembling root component of page X: Failure parsing template classpath:X.tml: [com.ctc.wstx.exc.WstxLazyException] Unexpected character '&' (code 38) (expected a name start character)
> Example:
> <script type="text/javascript">
> function functionX() {
> var x = $$('input[field="x"]');
> if(x && x.size() > 0) {
> // Do something
> }
> }
> </script>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.