I created a project with alpha-2 in my POM and followed the blog post 

http://tapestryjava.blogspot.com/2013/01/tapestry-54-jquery-support-now-in-place.html

by adding this to my AppModule

   @Contribute(SymbolProvider.class)
    @ApplicationDefaults
    public static void
contributeApplicationDefaults(MappedConfiguration<String, Object>
configuration) {        
        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");       
       
configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");
     }
    
 
    
    @Contribute(Compatibility.class)
    public static void disableScriptaculous(MappedConfiguration<Trait,
Boolean> configuration) {
        // not needed with jquery configuration.add(Trait.SCRIPTACULOUS,
false);
        configuration.add(Trait.INITIALIZERS, false);
    }

Changing the Trait values works as I would expect but no matter what I set
SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER to I still get the
prototype.js and 
t5-core-dom-prototype.js (as dom.js). I set a break point and the code

if (provider.equals("prototype"))
        {
            configuration.add("t5/core/dom", new
JavaScriptModuleConfiguration(domPrototype));
        }
 
        if (provider.equals("jquery"))
        {
            configuration.add("t5/core/dom", new
JavaScriptModuleConfiguration(domJQuery));
        }

appears to do the right thing. Is there something I'm missing?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Can-t-get-Tapestry-5-4-alpha-2-jQuery-Support-to-work-tp5719266.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