Hello,
flywind has commented on http://tapestry.apache.org/community.html. 
You can find the comment here:
http://tapestry.apache.org/community.html#comment_1490
Please note that if the comment contains a hyperlink, it must be approved
before it is shown on the site.

Below is the reply that was posted:
~~~~
Somebody help me please? How to use Tapestry 5.4: jQuery Support ? my 
AppModule.java add this code: @Contribute(ModuleManager.class)
public static void setupFoundationFramework(MappedConfiguration<String, Object> 
configuration,
                                            @Inject 
@Symbol(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER)
                                            String provider,
                                            @Inject 
@Path("classpath:org/apache/tapestry5/t5-core-dom-prototype.js")
                                            Resource domPrototype,
                                            @Inject 
@Path("classpath:org/apache/tapestry5/t5-core-dom-jquery.js")
                                            Resource domJQuery)
{
    if (provider.equals("prototype"))
    {
        configuration.add("t5/core/dom", new 
JavaScriptModuleConfiguration(domPrototype));
    }

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

    // If someone wants to support a different infastructure, they should set 
the provider symbol to some other value
    // and contribute their own version of the t5/core/dom module.
}

When I run the project error:HTTP ERROR 500

Problem accessing /test/. Reason:

    Exception constructing service 'ModuleManager': Error invoking service 
contribution method 
org.apache.tapestry5.modules.JavaScriptModule.setupFoundationFramework(MappedConfiguration,
 String, Resource, Resource): Service contribution (to service 'ModuleManager') 
conflicts with existing contribution (by 
org.flywind.app.services.AppModule.setupFoundationFramework(MappedConfiguration,
 String, Resource, Resource) (at AppModule.java:75)).
~~~~

With regards,
The Apache Tapestry Project.

You are receiving this email because you have subscribed to changes for the 
tapestry site.
To stop receiving these emails, unsubscribe from the mailing list that is 
providing these notifications.
        

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

Reply via email to