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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to