I strongly suspect it is something else; Tapestry doesn't do anything with
the APPLICATION_VERSION but embed it into some URLs.


On Mon, Jan 14, 2013 at 5:33 AM, trsvax <trs...@gmail.com> wrote:

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


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

Reply via email to