You should look at the Script tab of Firebug or Chrome's tools to check
whether a given .js file was loaded or not. In addition, adding a
tag with code inside is pretty bad form and not guaranteed to work, as
Tapestry itself puts .js files included by it last in the page, a
Alright,
Well I made the change and made sure JavaScriptStack returns javaScriptLibraries
Here is the markup at the bottom of home.tml
It still dont work.
This is for t-5.4
I will try to shake this out .
If you have a sample deomnstrating this working above and beyond 5.3 I wold
love to see
ok thanks thoiago
i will give get javascriptlibaries() a shot
have great weekend
Thiago,
I really appreciate the help truely.
And folks spotting the issue(s).
But they come with no course of action of solution
and assuming I am able to be on the same page as you without being as intimate
with the internals
If you could clarify the proper course of action that would be terr
Now I've figured out your problem. It's not actually related to
Require.js. You added non-AMD .js files (what Tapestry call modules) in
your, but they're not modules at all. Angular.js doesn't even support
Require.js out-of-the-box. The URLs to your .js files are being returned
by getModule
Thanks guys I really appreciate the help.
And it makes sense.
Without making the code worse, can someone specify the proper course of action?
beit an include or an import or placement of such at the top of a module or at
the head or the bottom?
It shouldn't be that important. And it really helps u
On Fri, 09 Jan 2015 15:53:08 -0200, nhhockeyplayer nashua
wrote:
Ok I see what you meant
in my AppModule.java
public static void contributeJavaScriptStackSource(
MappedConfiguration configuration) {
configuration.addInstance(CustomJavaScriptStack.STACK_ID,
Tapestry loads all the JavaScript in the background; libraries are loaded
sequentially, modules will load in parallel. Your is executing
immediately, before any of this background loading has started.
On Fri, Jan 9, 2015 at 9:53 AM, nhhockeyplayer nashua <
nhhockeypla...@hotmail.com> wrote:
> Ok
You know, I sometimes post that link to "How to ask questions ..." but
here's another observation: play more face-to-face board games if you want
better support.
Playing a F2F game (Settlers of Catan and its thousands of descendants)
teaches you non-emotional empathy: the ability to view the worl
Ok I see what you meant
in my AppModule.java
public static void contributeJavaScriptStackSource(
MappedConfiguration configuration) {
configuration.addInstance(CustomJavaScriptStack.STACK_ID,
CustomJavaScriptStack.class);
}
}
its at the bottom
and you
On Fri, 09 Jan 2015 14:56:17 -0200, nhhockeyplayer nashua
wrote:
personally I think if JavaScriptStack requires a developer to list ALL
their modules there... and since JavaScriptStack is in the eye of the
hurricane anyway, it should import and load the scripts automagically.
JavaScriptS
On Fri, 09 Jan 2015 14:49:22 -0200, nhhockeyplayer nashua
wrote:
Good question Thiago,
I dont know what your definition of import is.
There's only one: importing CSS, JavaScript or mudules using
JavaScriptSupport's import*() methods directly or indirectly through
@Import(stacks="yourSt
personally I think if JavaScriptStack requires a developer to list ALL their
modules there... and since JavaScriptStack is in the eye of the hurricane
anyway, it should import and load the scripts automagically.
If it doesnt do this I would sure like to know.
And if there is anything else I need
Good question Thiago,
I dont know what your definition of import is.
The markup generated is actually spelling out all my modules at the bottom as
shown here
require(["t5/core/pageinit"], function(pi) {
pi([
"/assets/meta/z8c24aeca/js/bower_components/bootstrap/js/bootstrap.js",
"/assets/m
Have you actually imported your custom JavaScript stack?
On Thu, 08 Jan 2015 21:56:30 -0200, nhhockeyplayer nashua
wrote:
I put this at the base of my home page
if (typeof angular == 'undefined')
alert('angular did not load properly');
and the alert box comes up
for some re
I put this at the base of my home page
if (typeof angular == 'undefined')
alert('angular did not load properly');
and the alert box comes up
for some reason angular is not being loaded when I
public class CustomJavaScriptStack implements JavaScriptStack {
public static final
Hi Folks,
I am trying to operate my own stack within tapestry.
Below is the lower portion of my Home page
Does it seem questionable to you?
Angular doesnt seem to want to be running and I am wondering if this is a tap
bug or I mis-used the JavaScript stack class erronaously.
Thanks for any h
17 matches
Mail list logo