After reading your last comment that made you unhappy ;) I checked it
out....
Yeah - putting assets in ${context} is going to be removed in tapestry-5.5
and is there for backwards compat for 5.3
So after reading [1] & [2] & [3] and a few failed attempts
moved bootstrap main dir from src/main/webapp/assets/
to
src/main/resources/META-INF/assets/
Updated AppModule's snippet to
configuration.add(SymbolConstants.BOOTSTRAP_ROOT,
"META-INF/assets/bootstrap");
And it works.
I have other assets to move into this spot for future-proofing, but will
have to go through my .tml files to update ${context:...} to ${asset:....}
- another time.
[1] -
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/META-INF-assets-in-5-4-td5714677.html
[2] -
https://github.com/bobharner/blog/wiki/Jumping-Into-Tapestry-5.4-Alpha-3
[3] - http://tapestry.apache.org/assets.html
On Tue, 07 Oct 2014 15:02:27 +1100, nhhockeyplayer nashua
<nhhockeypla...@hotmail.com> wrote:
Well I got my app to launch. Not sure if its correct... i thought
everything is suppose to go into the META-INF/assets directory according
to the new documentation
anyway
I had to eliminate
@Contribute(ModuleManager.class)
public static void setupBaseModules {...}
altogether... t-5.4-beta-22 complained that it was already being
implemented internally by tapestry... so I got rid of my implementation
onward
I had to copy ALL my bootstrap js files over to my root dir from my
node_modules
here are my default config
configuration.add(SymbolConstants.BOOTSTRAP_ROOT,
"context:assets/bootstrap");
configuration.add(SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,
"jquery");
In the end it accepted
C:\Prototype\Mavenized\Product\tynamo\trunk\tynamo-examples\pphl\src\main\webapp\assets\bootstrap\css\*
C:\Prototype\Mavenized\Product\tynamo\trunk\tynamo-examples\pphl\src\main\webapp\assets\bootstrap\fonts\*
C:\Prototype\Mavenized\Product\tynamo\trunk\tynamo-examples\pphl\src\main\webapp\assets\bootstrap\js\*
all the twitter plugins go here
C:\Prototype\Mavenized\Product\tynamo\trunk\tynamo-examples\pphl\src\main\webapp\assets\js\bootstrap.min.js
this is what t-5.4-beta-22 accepted
I remain unclear about what js modules to copy over or whether there is
replication. guess i will soon find out.
below is the markup... i guess I will figure out what works and what
doesnt from here on out. going to tryout jquery widgets.
- cheers
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
data-debug-enabled="true" data-locale="en"
xmlns="http://www.w3.org/1999/xhtml"><head><title>Login
page</title><meta content="Apache Tapestry Framework (version
5.4-beta-22)" name="generator"/><meta content="pphl/FacebookFriends"
name="tapestry-page-name"/><link type="text/css" rel="stylesheet"
href="/pphl/assets/ctx/z317f59ba/assets/bootstrap/css/bootstrap.css"/><link
type="text/css" rel="stylesheet"
href="/pphl/assets/meta/z98619821/tapestry5/tapestry.css"/><link
type="text/css" rel="stylesheet"
href="/pphl/assets/meta/ze8a5779c/tapestry5/exception-frame.css"/><link
type="text/css" rel="stylesheet"
href="/pphl/assets/meta/zceffa0e4/tapestry5/tapestry-console.css"/><link
type="text/css" rel="stylesheet"
href="/pphl/assets/meta/z44f0b8d4/tapestry5/tree.css"/><!--[if IE
9]><style
type="text/css">.pageloading-mask{opacity:0.25;}</style><![endif]--><!--[if
lt IE 9]><style
type="text/css">.pageloading-mask{filter:alpha(opacity=25);}</style><![endif]--></head><body
data-page-initialized="false"
style="text-align:center;font-family:'lucida grande','lucida sans
unicode','bitstream vera sans', 'trebuchet
ms',arial,sans-serif;"><script
type="text/javascript">document.write("<div
class=\"pageloading-mask\"><div></div></div>");</script><div
class="tynamoMessage">
</div>
Welcome administrator, administrator : email acolas...@gmail.com! <a
href="/pphl/pphl/facebookfriends.tynamologoutlink">Logout</a><div><a
data-update-zone="friendResults"
href="/pphl/pphl/facebookfriends.listfriends">Check who's my
friend</a><div data-container-type="zone"
id="friendResults"></div></div><script type="text/javascript">var
require = {
"waitSeconds" : 300,
"shim" : {
"t5/core/typeahead" : [
"jquery"
],
"bootstrap/affix" : [
"bootstrap/transition"
],
"bootstrap/alert" : [
"bootstrap/transition"
],
"bootstrap/modal" : [
"bootstrap/transition"
],
"bootstrap/tab" : [
"bootstrap/transition"
],
"bootstrap/transition" : [
"jquery"
],
"bootstrap/button" : [
"bootstrap/transition"
],
"bootstrap/scrollspy" : [
"bootstrap/transition"
],
"bootstrap/collapse" : [
"bootstrap/transition"
],
"bootstrap/dropdown" : [
"bootstrap/transition"
],
"bootstrap/tooltip" : [
"bootstrap/transition"
],
"bootstrap/carousel" : [
"bootstrap/transition"
],
"bootstrap/popover" : [
"bootstrap/tooltip"
]
},
"baseUrl" : "/pphl/modules.gz"
};
</script><script src="/pphl/assets/meta/z8d348af1/tapestry5/require.js"
type="text/javascript"></script><script
src="/pphl/assets/meta/z12d98417/tapestry5/underscore-1.5.2.js"
type="text/javascript"></script><script
src="/pphl/assets/meta/zd746764f/tapestry5/t53-compatibility.js"
type="text/javascript"></script><script
src="/pphl/assets/meta/z8631d47d/tapestry5/jquery.js"
type="text/javascript"></script><script
type="text/javascript">require(["t5/core/pageinit"], function(pi) {
pi([], [
"t5/core/zone"
]); });</script></body></html>
--
Using Opera's mail client: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org