ok got this, but then how the following methos should be modified?

public String getDojoSource(Page page) {
        if (this.dojoInitialization == null) {
            return null;
        } else {
            Binding b = bindingSource.newBinding("dojo binding
source", page.getRootComponent().getComponentResources(),
BindingConstants.ASSET, this.dojoInitialization.getDojoSource());
            if (b.getBindingType().equals(Asset.class)) {
                return ((Asset) b.get()).toClientURL();
            } else if (b.getBindingType().equals(String.class)) {
//assume it's an external URI
                return b.get().toString();
            } else { // ?
                throw new RuntimeException("Unable to parse
dojoSource: \"" + this.dojoInitialization.getDojoSource() + "\"");
            }
        }
    }

On Mon, Mar 9, 2009 at 2:41 PM, Thiago H. de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Mon, Mar 9, 2009 at 10:32 AM, Andrea Chiumenti <kium...@gmail.com> wrote:
>> no, or I haven't understood:
>
> I messed up. You shouldn't use asset: in an Asset annotation, obviously.
>
>> Shoud I really use (and only this) instead?
>> "classpath:net/sourceforge/tapestryjfly/dojotapestry5/dojo-1.2.3/dojo/dojo.js"
>
> I guess it should be classpath:/net .... (note the slash), so you
> don't have problems with relative paths.
>
> --
> Thiago
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to