You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Ma <er...@db.com> on 2009/06/01 17:15:58 UTC
Re: [t5.1.0.5] Expansion does not work in custom JavaScript block
Answering my own question - come to think about it, as the code is wrapped in
a comment block, I guess T5 has to treat it as literal string. After
removing the <div> tag and the comments, things are behaving properly in IE.
Eric
Eric Ma wrote:
>
> This is my .tml code:
>
> <div display="none">
> <!--//
> <script type="text/javascript">
> var myLiteral = "${myExpr}";
> </script>
> //-->
> <div>
>
> The ${myExpr} does not get replaced by the value from the Java class.
>
> If I remove <!--// //-->, it does get replaced, but I get a JavaScript
> error.
>
> Any suggestions?
>
> Eric
>
>
--
View this message in context: http://www.nabble.com/-t5.1.0.5--Expansion-does-not-work-in-custom-JavaScript-block-tp23787674p23816624.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org