Have you tried beta 2?

On Thu, 13 Feb 2014 10:35:43 -0200, Barry Books <trs...@gmail.com> wrote:

I added a Bootstrap drop down to the navigation on one of my sites but I
cannot reliably get tapestry to include the Bootstrap javascript.

In my layout.java file I have this

@Import( stack = { InternalConstants.CORE_STACK_NAME }, module={
"bootstrap/dropdown", "bootstrap/collapse"})


With just that I get prototype as the core stack and the bootstrap
javascript is loaded. The menu does not behave correctly because prototype
makes it disappear when the mouse button is release.

So I add this to my AppModule

configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");

Now the core stack is Jquery but the menu does not work at all because
dropdown.js and collapse.js are no longer loaded.

I notice I'm not in production mode so I remove this

configuration.add(SymbolConstants.PRODUCTION_MODE, false);


Now all the javascript is combined into core.js and dropdown.js and
collapse.js are included.


Just for fun I switch back to development mode and add this

configuration.add(SymbolConstants.COMBINE_SCRIPTS,false);


which for some reason causes  dropdown.js and collapse.js to be loaded.


So it works in production mode and I have a workaround for development but
I don't understand why I need to set combine scripts to false to make
things work in development mode.


Any ideas?


Thanks

Barry


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to