You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2007/10/07 17:14:16 UTC
T5: why not able to locate js?
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: why not able to locate js?
Posted by Angelo Chen <an...@yahoo.com.hk>.
i tried, but same problem.
Shing Hing Man wrote:
>
> Have you tried
>
> @Path("context:js/jquery.js")
>
> (no slash after context:) ?
>
> Shing
>
>
>
> --- Angelo Chen <an...@yahoo.com.hk> 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:
>> users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail:
>> users-help@tapestry.apache.org
>>
>>
>
>
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5%3A-why-not-able-to-locate-js--tf4583504.html#a13084059
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: NYSERDA
Posted by Martino Piccinato <ma...@gmail.com>.
On 10/7/07, Ted Steen <te...@gmail.com> wrote:
> Doing what?....
>
Removing the context I guess... :-)
> 2007/10/7, Celia Mou <ce...@ocean7.com>:
> > 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 <an...@yahoo.com.hk> 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:
> > >>>> users-unsubscribe@tapestry.apache.org
> > >>>> For additional commands, e-mail:
> > >>>> users-help@tapestry.apache.org
> > >>>>
> > >>>>
> > >>>
> > >>> 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: users-unsubscribe@tapestry.apache.org
> > >>> For additional commands, e-mail: users-help@tapestry.apache.org
> > >>>
> > >>>
> > >>>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> /ted
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: NYSERDA
Posted by Ted Steen <te...@gmail.com>.
Doing what?....
2007/10/7, Celia Mou <ce...@ocean7.com>:
> 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 <an...@yahoo.com.hk> 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:
> >>>> users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail:
> >>>> users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>
> >>> 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: users-unsubscribe@tapestry.apache.org
> >>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>
> >>>
> >>>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: NYSERDA
Posted by Celia Mou <ce...@ocean7.com>.
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 <an...@yahoo.com.hk> 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:
>>>> users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail:
>>>> users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>> 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: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: why not able to locate js?
Posted by Nick Westgate <ni...@key-planning.co.jp>.
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 <an...@yahoo.com.hk> 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:
>>> users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail:
>>> users-help@tapestry.apache.org
>>>
>>>
>>
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: why not able to locate js?
Posted by Angelo Chen <an...@yahoo.com.hk>.
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 <an...@yahoo.com.hk> 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:
>> users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail:
>> users-help@tapestry.apache.org
>>
>>
>
>
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/T5%3A-why-not-able-to-locate-js--tf4583504.html#a13084243
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: why not able to locate js?
Posted by Shing Hing Man <ma...@yahoo.com>.
Have you tried
@Path("context:js/jquery.js")
(no slash after context:) ?
Shing
--- Angelo Chen <an...@yahoo.com.hk> 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:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
>
>
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org