Re: external libraries an assets

2009-03-09 Thread Andrea Chiumenti
np, found solution using AssetSource service On Mon, Mar 9, 2009 at 2:44 PM, Andrea Chiumenti wrote: > ok got this, but then how the following methos should be modified? > > public String getDojoSource(Page page) { >        if (this.dojoInitialization == null) { >            return null; >      

Re: external libraries an assets

2009-03-09 Thread Andrea Chiumenti
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().getCo

Re: external libraries an assets

2009-03-09 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 9, 2009 at 10:32 AM, Andrea Chiumenti 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

Re: external libraries an assets

2009-03-09 Thread Andrea Chiumenti
no, or I haven't understood: "asset:classpath/net/sourceforge/tapestryjfly/dojotapestry5/dojo-${dojo-release-version}/dojo/dojo.js" gives Could not convert 'asset:classpath/net/sourceforge/tapestryjfly/dojotapestry5/dojo-1.2.3/dojo/dojo.js' into a component parameter binding: Unable to locate ass

Re: external libraries an assets

2009-03-09 Thread Thiago H. de Paula Figueiredo
On Mon, Mar 9, 2009 at 10:20 AM, Andrea Chiumenti wrote: >    String dojoSource() default > "asset:../assets/dojot5/dojotoolkit/dojo-${dojo-release-version}/dojo/dojo.js"; >    String djConfig() default "parseOnLoad: true"; > } Try "asset:classpath/net/sourceforge -- Thiago ---

external libraries an assets

2009-03-09 Thread Andrea Chiumenti
Hello I'm having the follogin problem. I've created this Annotation for my library @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface DojoInitialization { String dojoSource() default "asset:../assets/dojot5/dojotoolkit/dojo-${dojo-release-version}/dojo/dojo.js";