Nevermind, it isn't that difficult. User error. On Wed, May 4, 2011 at 9:21 AM, Ray Nicholus <[email protected]> wrote:
> Sigh, that didn't work. Surely it can't be this difficult to add a js > library to all pages in Tapestry. I must be doing something wrong. Note > that I cannot use the import in my layouts as I can only add this library > conditionally. > > > On Wed, May 4, 2011 at 9:09 AM, Ray Nicholus <[email protected]> wrote: > >> n/m, I found an example at >> http://tapestry.1045711.n5.nabble.com/Global-stylesheets-and-Javascripts-documentation-proposal-td2433280.html >> >> >> On Wed, May 4, 2011 at 9:05 AM, Ray Nicholus <[email protected]> wrote: >> >>> I looked at the documentation for contributeMarkupRenderer, and I'm not >>> even sure what this is, much less what I need to do to simply add a js >>> library to each page. Are there any useful examples that explain how to add >>> a js library to a page in this manner? >>> >>> >>> On Wed, May 4, 2011 at 8:44 AM, Taha Hafeez <[email protected]>wrote: >>> >>>> You can add it to your layout as >>>> >>>> @Import(library = "yourlibraryname.js") >>>> public class Layout { >>>> } >>>> >>>> or >>>> >>>> You can also add it by contributing to MarkupRendererFilter >>>> >>>> regards >>>> Taha >>>> >>>> >>>> On Wed, May 4, 2011 at 7:08 PM, Ray Nicholus <[email protected]> >>>> wrote: >>>> >>>> > Any idea how I can easily do this? Ideally, I'd like to only make >>>> this >>>> > happen if a specific JVM arg is present. >>>> > >>>> >>> >>> >> >
