Re: T5 accessing Java class variables in Javascript

2007-10-22 Thread Howard Lewis Ship
Look at the code for the DateField component. On 10/21/07, Ritesh.S <[EMAIL PROTECTED]> wrote: > > > 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 try

Re: T5 accessing Java class variables in Javascript

2007-10-21 Thread Ritesh.S
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 incl

Re: T5 accessing Java class variables in Javascript

2007-10-13 Thread Howard Lewis Ship
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