You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by abhilash <so...@gmail.com> on 2008/05/13 07:23:31 UTC

problem in defining dojo.registerModulePath

Hi all,
I am using Tapestry4.1.5
I have a custom widget.When i try to access my custom widget the javascript
errors i am getting are as follows.

GET
http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F../mywidgets/widget/__package__.js404
(23ms)asset.svc (line 766)
GET
http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F../mywidgets/__package__.js404
(14ms)asset.svc (line 766)
GET
http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F__package__.js404
(14ms)asset.svc (line 766)
symbol 'mywidgets.widget' is not defined after loading '__package__.js'


what i understood from these errors is dojo is failing to locate my
"mywidgets" module.I tried giving paths using dojo.registerModulePath but
its throwing same exceptions.
any ideas?
Thanks in advance.
-- 
View this message in context: http://www.nabble.com/problem-in-defining-dojo.registerModulePath-tp17201314p17201314.html
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: problem in defining dojo.registerModulePath

Posted by Andreas Andreou <an...@gmail.com>.
Try enabling friendly urls for assets

<contribution configuration-id="tapestry.url.ServiceEncoders">
<asset-encoder id="asset" path="/assets"/>
</contribution>

On Tue, May 13, 2008 at 8:23 AM, abhilash <so...@gmail.com> wrote:
>
> Hi all,
> I am using Tapestry4.1.5
> I have a custom widget.When i try to access my custom widget the javascript
> errors i am getting are as follows.
>
> GET
> http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F../mywidgets/widget/__package__.js404
> (23ms)asset.svc (line 766)
> GET
> http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F../mywidgets/__package__.js404
> (14ms)asset.svc (line 766)
> GET
> http://localhost:8080/dentaprise/asset.svc?path=%2Fdojo-0.4.3-custom-4.1.5%2F__package__.js404
> (14ms)asset.svc (line 766)
> symbol 'mywidgets.widget' is not defined after loading '__package__.js'
>
>
> what i understood from these errors is dojo is failing to locate my
> "mywidgets" module.I tried giving paths using dojo.registerModulePath but
> its throwing same exceptions.
> any ideas?
> Thanks in advance.
> --
> View this message in context: http://www.nabble.com/problem-in-defining-dojo.registerModulePath-tp17201314p17201314.html
> 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
>
>



-- 
Andreas Andreou - andyhot@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org