After removing most of the code from the project I found the line that causes
prototype to be included. If I SymbolConstants.APPLICATION_VERSION contains
'-SNAPSHOT' I get prototype.

So this includes prototype and dom.js is the prototype version

public class AppModule
{
   @Contribute(SymbolProvider.class)
    @ApplicationDefaults
    public static void
contributeApplicationDefaults(MappedConfiguration<String, Object>
configuration) {   
       configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");

        configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
        configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
        configuration.add(SymbolConstants.APPLICATION_VERSION,
"0.0.1-SNAPSHOT");        
       configuration.add(SymbolConstants.HMAC_PASSPHRASE,"test");       
     }
     
    @Contribute(Compatibility.class)
    public static void disableScriptaculous(MappedConfiguration<Trait,
Boolean> configuration) {
        configuration.add(Trait.SCRIPTACULOUS, false);
        configuration.add(Trait.INITIALIZERS, false);
    }
}

This does not include prototype and dom.js is the jquery version

public class AppModule
{
   @Contribute(SymbolProvider.class)
    @ApplicationDefaults
    public static void
contributeApplicationDefaults(MappedConfiguration<String, Object>
configuration) {   
       configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");

        configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en");
        configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
        configuration.add(SymbolConstants.APPLICATION_VERSION, "0.0.1");        
       configuration.add(SymbolConstants.HMAC_PASSPHRASE,"test");       
     }
     
    @Contribute(Compatibility.class)
    public static void disableScriptaculous(MappedConfiguration<Trait,
Boolean> configuration) {
        configuration.add(Trait.SCRIPTACULOUS, false);
        configuration.add(Trait.INITIALIZERS, false);
    }
}

I'm guessing this is not a feature? This release is very interesting and now
that I have it working I'll report my comments later this week.

Thanks
Barry



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/5-4-alpha-2-jQuery-support-solution-and-another-question-tp5719299.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to