Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
n Fri, 09 Jan 2015 18:26:36 -0200, nhhockeyplayer nashua </tt><tt><nhhockeypla...@hotmail.com> wrote: </tt><pre style="margin: 0em;"> </pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
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

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
ok thanks thoiago i will give get javascriptlibaries() a shot have great weekend

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
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

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
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

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
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

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
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,

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Howard Lewis Ship
wrote: > Ok I see what you meant > > in my AppModule.java > > public static void contributeJavaScriptStackSource( > MappedConfiguration<String, JavaScriptStack> configuration) { > configuration.addInstance(CustomJavaScriptStack.STACK_ID, >

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Howard Lewis Ship
le :-). On Fri, Jan 9, 2015 at 9:39 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 09 Jan 2015 14:56:17 -0200, nhhockeyplayer nashua < > nhhockeypla...@hotmail.com> wrote: > > personally I think if JavaScriptStack requires a developer to list AL

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
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

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
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

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
ort(stacks="yourStackId"). My scripts are the ones from the bower path, mixins and top of path. So this is obviously the JavaScriptStack interface in action. Isnt this the import ? Apparently, yes. Import meaning you specify the module with script tag, type, src in the head section.

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
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

RE: JavaScriptStack markup syntax ok

2015-01-09 Thread nhhockeyplayer nashua
assets/meta/psi/za58fd9c5/app.js", "/assets/meta/psi/z3636d550/mixins/ngscripts/partialmodal.js", "/assets/meta/ze8aeab29/tapestry5/scriptaculous_1_9_0/dragdrop.js" ], [ [ "t5/core/pageinit:evalJavaScript", "Tapestry.DEBUG_ENABLED = true;" ],

Re: JavaScriptStack markup syntax ok

2015-01-09 Thread Thiago H de Paula Figueiredo
x comes up for some reason angular is not being loaded when I public class CustomJavaScriptStack implements JavaScriptStack { public static final String ANGULAR_CORE_PATH = "angular.core.path"; public static final String ANGULAR_VERSION = "angular.versi

RE: JavaScriptStack markup syntax ok

2015-01-08 Thread nhhockeyplayer nashua
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 {

JavaScriptStack markup syntax ok

2015-01-08 Thread nhhockeyplayer nashua
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

Re: [5.4] JavascriptStack with module and css.

2014-11-13 Thread Paul Stanton
great, and it works. thanks. is this documented? On 13/11/2014 10:31 PM, Thiago H de Paula Figueiredo wrote: On Thu, 13 Nov 2014 04:05:11 -0200, Paul Stanton wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok since it isn

Re: [5.4] JavascriptStack with module and css.

2014-11-13 Thread Thiago H de Paula Figueiredo
On Thu, 13 Nov 2014 04:05:11 -0200, Paul Stanton wrote: oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok since it isn't updated often. If you're using AssetSource, and Geoff's suggest code does, all the caching and checksum

Re: [5.4] JavascriptStack with module and css.

2014-11-12 Thread Paul Stanton
oh ok, so hard code the meta-inf/assets part -- but this won't use the checksum cache key - which i suppose is ok since it isn't updated often. cheers. On 13/11/2014 4:46 PM, Geoff Callender wrote: public class YourJavaScriptStack implements JavaScriptStack { pri

Re: [5.4] JavascriptStack with module and css.

2014-11-12 Thread Geoff Callender
public class YourJavaScriptStack implements JavaScriptStack { private final AssetSource assetSource; public YourJavaScriptStack(final AssetSource assetSource) { this.assetSource = assetSource; } // etc and when you set up a StyleSheetLink, the

[5.4] JavascriptStack with module and css.

2014-11-12 Thread Paul Stanton
Hi all, I am trying to include some non-requirejs resources in the most recommended way. In this case, a javascript package which requires some css. From what I can tell the recommended approach is to 'shim' it in from the location "META-INF/assets", which I've done public static void

Re: JavascriptStack

2011-10-09 Thread Martin Strand
The User-Agent header is very unreliable (unless this is for an intranet) and you would also need to add "Vary: User-Agent" to defeat caching by shared proxies. It's probably better to use two stacks instead, and include the IE stack with a conditional comment. For example, I use this "IERe

Re: JavascriptStack

2011-10-09 Thread François Facon
Hi Dimitris, Perphas a perThread service could detect with the useragent header if the browser used by the client is IE. by injecting this service to stack, you could use it to verify if you have to add the js when the method getJavaScriptLibraries get called . Regards François 2011/10/9 Dimitr

JavascriptStack

2011-10-09 Thread Dimitris Zenios
Hi guys.I have a javascript stack which includes two javascript files. One should be always added and the other only when internet explorer. Is there a possibility to append the internet explorer javascript file only when needed or it should be always added? Dimitris Zenios --

Re: JavaScriptStack demo

2011-01-19 Thread Angelo C.
Thanks for sharing, very helpful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/JavaScriptStack-demo-tp3348381p3348750.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

JavaScriptStack demo

2011-01-19 Thread LLTYK
Here's an example of the 5.2 JavaScriptStack api. I used it to load Datatables (http://www.datatables.net/). The page: @Import( stack={"datatable"}) public class PageWithDatatable { void afterRender() { //connect datatable to tml here } } The AppModule: pub