ok sometimes you just need to leave your computer for a while....

the easiest way to use <include-script> is to put the static .js file
into the classpath, lets say "/common/js". The resource-path
attribute then requires an ABSOLUTE classpath to this resource,
like"/common/js/static.js".

if the .script is located at "WEB-INF/web" and the resource-path
attribute is "static.js". Tapestry will generate "gp/WEB-INF/web/static.js"
for the scripts url which will not work.







                                                                           
             Kristian                                                      
             Marinkovic                                                    
             <kristian.marinko                                          An 
             [EMAIL PROTECTED]          users@tapestry.apache.org          
             >                                                       Kopie 
                                                                           
             21.02.2007 13:55                                        Thema 
                                        Problem with including static      
                                        javascript file                    
              Bitte antworten                                              
                    an                                                     
             "Tapestry users"                                              
             <[EMAIL PROTECTED]                                             
                pache.org>                                                 
                                                                           
                                                                           





hi all,

i'm not able to include a static javascript file into
my page. could someone point me the right way

how can i include a static javascript file into my page
when using the @Body and @Shell component?

thats what i have so far:

.script file located at WEB-INF/web:
<script>
  <include-script resource-path="static.js" />
  <body>
  </body>
  <initialization>
    myinit();
  </initialization>
</script>

static.js is located :
WEB-INF/web/static.js

the rendered page has following url:
<script type="text/javascript" src="/gp/WEB-INF/web/static.js"></script>

i even tried to put into the classpath but with no success.
the path of static.js always gets the "web" prefix (folder
of my .script file )

thanks
kris


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to