Hi Howard, (Sorry for late reply :})
Thanks for your reply. I worked on it and tried to write addscript()
method inside Java class. But I am getting a null-pointer exception.
While I am trying to only declare a variable using this method, I get
the exception. Can I have a proper example for including the Javascript
using addscript() method?
Any help from anybody will be helpful for me.
Thanks in advance...
Ritesh Sandupatla.
Java Web Developer
Howard Lewis Ship wrote:
>
> Expansions (the name for the "${...}") syntax do not currently occur
> inside
> comments, only inside body text and inside attributes.
>
> Generally, the correct way to accomplish what you want is to inject the
> @Environmental PageRenderSupport object and use the addScript() method to
> add JavaScript to the page. The concept is to keep such JavaScript
> minimal. The JavaScript will be invoked when the page is fully loaded.
>
> --
> Howard M. Lewis Ship
> Partner and Senior Architect at Feature50
>
> Creator Apache Tapestry and Apache HiveMind
>
>
--
View this message in context:
http://www.nabble.com/T5-accessing-Java-class-variables-in-Javascript-tf4618529.html#a13337683
Sent from the Tapestry - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]