I have the same problem Peter.. I will let you know if I figure it out ...

On 10/17/06, Peter Beshai <[EMAIL PROTECTED]> wrote:
I have got the widget working in plain HTML and dojo. The problem I am
having is I don't know how to configure the relative paths for the widget
since dojo is packaged within the tapestry library.
djConfig.baseRelativePath =
"http://localhost:8080/myapp/app?service=asset&path=%2Fdojo%2F"; and I don't
know how to work with that to get my widgets pointing to the right spot.

i.e., I don't know how to properly configure the relative paths in:
my html:
dojo.hostenv.setModulePrefix('ricebridge', '../dojo/ricebridge');

widget's js file:
this.templatePath    =
dojo.uri.dojoUri("../dojo/ricebridge/widget/progress.htm");
this.templateCssPath =
dojo.uri.dojoUri("../dojo/ricebridge/widget/progress.css");

>From: "Karthik N" <[EMAIL PROTECTED]>
>Reply-To: "Tapestry users" <users@tapestry.apache.org>
>To: "Tapestry users" <users@tapestry.apache.org>
>Subject: Re: How do you add custom dojo widget?
>Date: Tue, 17 Oct 2006 06:28:22 +0530
>
>peter - the first step would be to isolate the issue
>
>are you able to make this widget work without tapestry and with just plain
>vanilla HTML and dojo?
>
>if not, then that would be an excellent starting point.
>
>On 10/17/06, Peter Beshai <[EMAIL PROTECTED]> wrote:
>>
>>I am interested in using the dojo progress bar discussed at
>>http://www.richardrodger.com/roller/page/richard/Weblog/dojo_progress, but
>>I
>>can't figure out how to get it to work in Tapestry (4.1). I'm confused
>>about
>>where to put the widget files and how to reference them. Do I have to add
>>it
>>as an asset into my page??
>>
>>Ive currently put them in src/main/webapp/dojo/ricebridge/widget  -- and
>>i'm
>>not sure if that's a good spot. How do I point tapestry to the right spot
>>of
>>the widget so it can find it?
>>
>>I currently get the following warnings from my log:
>>WARN  (tapestry.services.Asset:251) Classpath resource
>>'/dojo/dojo/ricebridge/widget/RicebridgeProgress.js' does not exist.
>>WARN  tapestry.services.Asset Classpath resource
>>'/dojo/dojo/ricebridge/widget/RicebridgeProgress.js' does not exist.
>>WARN  (tapestry.services.Asset:251) Classpath resource
>>'/dojo/dojo/ricebridge/widget.js' does not exist.
>>WARN  tapestry.services.Asset Classpath resource
>>'/dojo/dojo/ricebridge/widget.js' does not exist.
>>WARN  (tapestry.services.Asset:251) Classpath resource
>>'/dojo/dojo/ricebridge/__package__.js' does not exist.
>>WARN  tapestry.services.Asset Classpath resource
>>'/dojo/dojo/ricebridge/__package__.js' does not exist.
>>WARN  (tapestry.services.Asset:251) Classpath resource
>>'/dojo/dojo/ricebridge.js' does not exist.
>>WARN  tapestry.services.Asset Classpath resource
>>'/dojo/dojo/ricebridge.js'
>>does not exist.
>>WARN  (tapestry.services.Asset:251) Classpath resource
>>'/dojo/__package__.js' does not exist.
>>WARN  tapestry.services.Asset Classpath resource '/dojo/__package__.js'
>>does
>>not exist.
>>
>>
>>Peter Beshai
>>
>>_________________________________________________________________
>>Voyez vos amis en faisant un appel vidèo dans Windows Live Messenger
>>http://imagine-msn.com/messenger/launch80/default.aspx?locale=fr-ca
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>--
>Thanks, Karthik

_________________________________________________________________
Essayez la nouvelle génération de recherche avec Live Search.
http://www.live.com/?mkt=fr-ca


---------------------------------------------------------------------
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