If i read this, you're dumping the body of the script into the page via a 
OutputRaw.  (I can't see the actual content of the code on the java side w/o 
decompiling the class file, right?)  I'm also thinking that this isn't quite 
5.0.3 since u'r using t:type="OutputRaw" rather than the OutputRaw tag itself 
(new in 5.0.3).  
Is this really the way to do it (it seems more complicated than i would 
expect...)  That said, my attempts haven't worked...  The closest i came was 
using 
<script type="text/javascript" src="calendarJS"></script>
and then injecting an asset to the right location for calendarJS on the java 
side.  However, this doesn't get the URL to show up in the src attribute in the 
eventual html...  Am i close - or am i all wrong?  (and is the Output method 
above the way to go?)

Dan
Alexandru Dragomir <[EMAIL PROTECTED]> wrote: You might want to use this 
datepicker component

http://code.google.com/p/tapestry5-jscalendar/

And you can also look into it for an example of how to include javascript.

Cheers ,
Alex

On 4/11/07, Daniel Drasin  wrote:
>
> Can anyone point me to an example or how-to for including/using
> javascription in T5.0.3?  (like i want to drop a datepicker in...)
>
> Thanks in advance,
>
> Dan
>
>
> Daniel Drasin
> [EMAIL PROTECTED]             8612 Long Meadow Ct
> (c) 614 330 7795                Columbia, MD  21045
> (c) 443 742 5738
>
> ---------------------------------
> 8:00? 8:25? 8:40?  Find a flick in no time
> with theYahoo! Search movie showtime shortcut.



Daniel Drasin                   
[EMAIL PROTECTED]               8612 Long Meadow Ct
(c) 614 330 7795                Columbia, MD  21045
(c) 443 742 5738
       
---------------------------------
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

Reply via email to