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