Hi Dragan,

Perhaps I can delete some code, then.

Thanks!

mrg


On Fri, Nov 8, 2013 at 12:47 PM, Dragan Sahpaski
<dragan.sahpa...@gmail.com>wrote:

> You don't need to contribute to the Compatibility service just to use
> jquery instead of prototype.
>
> The explanation is in the org.apache.tapestry5.services.compatibility.Trait
> enum javadoc.
>
> /**
>  * Defines different traits that may be enabled or disabled. This was
> introduced in Tapestry 5.4 to allow certain
>  * features that exist in Tapestry 5.3 to be optionally enabled for
> compatibility.
>  */
> public enum Trait
> {
>     /**
>      * Indicates that the Scriptaculous JavaScript libraries should be
> included.  Tapestry 5.3 includes options for performing
>      * some kinds of animations when certain elements were updated or
> removed; that is no longer present in Tapestry 5.4
>      * and Scriptaculous is not used. This trait is only used if the
>      * {@linkplain
> org.apache.tapestry5.SymbolConstants#JAVASCRIPT_INFRASTRUCTURE_PROVIDER
> JavaScript infrastructure provider}
>      * is set to "prototype".
>      */
>     SCRIPTACULOUS,
>
>     /**
>      * Support for Tapestry 5.3 style initializers (the client-side {@code
> T5.initializers} namespace).</code>
>      */
>     INITIALIZERS;
> }
>
> Cheers,
> Dragan Sahpaski
>
>
> On Fri, Nov 8, 2013 at 6:42 PM, Michael Gentry <mgen...@masslight.net
> >wrote:
>
> > Hi George,
> >
> > I did it this way in AppModule.java:
> >
> >     public static void
> > contributeApplicationDefaults(MappedConfiguration<String, String>
> > configuration)
> >     {
> >         ...
> >
> > configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
> > "jquery");
> >     }
> >
> >
> >     @Contribute(Compatibility.class)
> >     public static void disableScriptaculous(MappedConfiguration<Trait,
> > Boolean> configuration)
> >     {
> >         configuration.add(Trait.SCRIPTACULOUS, false);
> >         configuration.add(Trait.INITIALIZERS, false);
> >     }
> >
> >
> > mrg
> >
> >
> >
> > On Fri, Nov 8, 2013 at 12:36 PM, George Christman
> > <gchrist...@cardaddy.com>wrote:
> >
> > > I've read it is possible to turn off prototype while using jquery, how
> is
> > > this achieved? I'm running into conflicts with bootstrap hide.
> > >
> >
>

Reply via email to