On 10/7/07, Ted Steen <[EMAIL PROTECTED]> wrote: > Doing what?.... >
Removing the context I guess... :-) > 2007/10/7, Celia Mou <[EMAIL PROTECTED]>: > > Hi Mark, > > > > Sorry, I guess you still don't have my phone number: (718) 204-0626 > > > > Cell: (917) 299-1208 (usually held by Frank) > > > > I'm at home and doing it. > > > > Thanks! > > > > celia > > > > > > > > On Oct 7, 2007, at 12:18 PM, Mark Alhadeff wrote: > > > > > Move your js up one directory from WEB-INF. See here: > > > http://wiki.apache.org/tapestry/Tapestry5WhereToStoreExternalResources > > > > > > The contents of WEB-INF are protected from browsing. > > > Most assets are usually placed above it. > > > > > > Cheers, > > > Nick. > > > > > > > > > Angelo Chen wrote: > > >> if I remove the context, then I have to put js/query.js under pages > > >> directory, this will eliminate the error message, however the > > >> script is > > >> included in the <body></body>, anyway to include it in the header > > >> part? > > >> Thanks. > > >> Shing Hing Man wrote: > > >>> Have you tried @Path("context:js/jquery.js") > > >>> > > >>> (no slash after context:) ? > > >>> > > >>> Shing > > >>> > > >>> > > >>> --- Angelo Chen <[EMAIL PROTECTED]> wrote: > > >>> > > >>>> Hi, > > >>>> > > >>>> I use following code to include a javascript: > > >>>> > > >>>> @Inject > > >>>> @Path("context:/js/jquery.js") > > >>>> private Asset _library; > > >>>> > > >>>> @Environmental > > >>>> private PageRenderSupport _renderSupport; > > >>>> > > >>>> void beginRender() { > > >>>> _renderSupport.addScriptLink(_library); } > > >>>> > > >>>> but always got :Unable to locate asset > > >>>> 'context:js/jquery.js' (the file does > > >>>> not exist). > > >>>> > > >>>> the js file is under WEB-INF/js, why? Thanks, > > >>>> A.C. > > >>>> > > >>>> -- > > >>>> View this message in context: > > >>>> > > >>> http://www.nabble.com/T5%3A-why-not-able-to-locate-js-- > > >>> tf4583504.html#a13083743 > > >>>> Sent from the Tapestry - User mailing list archive > > >>>> at Nabble.com. > > >>>> > > >>>> > > >>>> > > >>> -------------------------------------------------------------------- > > >>> - > > >>>> To unsubscribe, e-mail: > > >>>> [EMAIL PROTECTED] > > >>>> For additional commands, e-mail: > > >>>> [EMAIL PROTECTED] > > >>>> > > >>>> > > >>> > > >>> Home page : http://www.lombok.demon.co.uk/ > > >>> > > >>> > > >>> > > >>> ___________________________________________________________ > > >>> Want ideas for reducing your carbon footprint? Visit Yahoo! For > > >>> Good http://uk.promotions.yahoo.com/forgood/environment.html > > >>> > > >>> -------------------------------------------------------------------- > > >>> - > > >>> 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] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > /ted > > --------------------------------------------------------------------- > 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]