Re: @IncludeStylesheet and non-local CSS

2009-03-27 Thread Fernando Padilla
I vote that this is added to tapestry-core. :) Robert Zeigler wrote: The Chenillekit module provides a URIAssetFactory, as well; I've just started playing with this library, but I've been pretty pleased so far. Robert On Mar 26, 2009, at 3/2610:06 PM , Geoffrey Wiseman wrote: On Thu, Mar 26,

Re: @IncludeStylesheet and non-local CSS

2009-03-27 Thread Robert Zeigler
The Chenillekit module provides a URIAssetFactory, as well; I've just started playing with this library, but I've been pretty pleased so far. Robert On Mar 26, 2009, at 3/2610:06 PM , Geoffrey Wiseman wrote: On Thu, Mar 26, 2009 at 9:53 PM, Fernando Padilla wrote: that's exactly what we

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 9:53 PM, Fernando Padilla wrote: > that's exactly what we do.. we just named it "url", instead of "uri". :) :) Well, it's a trivial piece of code, so if a committer wants to run with it - feel free, although you might want to check to make sure I didn't do something inap

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Fernando Padilla
that's exactly what we do.. we just named it "url", instead of "uri". :) :) Geoffrey Wiseman wrote: On Thu, Mar 26, 2009 at 1:40 PM, Dave Greggory wrote: Just use RenderSupport. I just built my own component named asset attacher for this purpose. And if anyone's curious what the other appr

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Fernando Padilla
we use YUI. We simply added a "url" asset factory prefix (which tapestry should really really add by default actually, like 10 lines of code). If you want it, I can attach my code easily. And no, you should not bundle yui locally. It already does a tonne of on-demand loading, dependency reso

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Howard Lewis Ship
Another reason to host the YUI scripts locally is so that you can take advantage of JavaScript combination (in Tapestry 5.1). That only works if all of the individual script files are located on the server (in the context, or on the classpath). On Thu, Mar 26, 2009 at 11:48 AM, Geoffrey Wiseman w

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 1:40 PM, Dave Greggory wrote: > > Just use RenderSupport. > > I just built my own component named asset attacher for this purpose. > And if anyone's curious what the other approach might look like: package com.tsg.tapestry; import java.io.IOException; import java.io.Inpu

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Dave Greggory
eoffrey Wiseman To: Tapestry users Sent: Thursday, March 26, 2009 1:05:52 PM Subject: Re: @IncludeStylesheet and non-local CSS On Thu, Mar 26, 2009 at 12:47 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > If I were to build component that uses YUI, and I wanted to atta

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 1:25 PM, Howard Lewis Ship wrote: > I think you are on to something, but is bundling YUI locally a real > problem? > It's not a huge problem, no -- I'd just rather get it from the source, given: - Yahoo's servers are pretty reliable - the per-host browser limits on

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Howard Lewis Ship
I think you are on to something, but is bundling YUI locally a real problem? On Thu, Mar 26, 2009 at 10:05 AM, Geoffrey Wiseman wrote: > On Thu, Mar 26, 2009 at 12:47 PM, Geoffrey Wiseman < > geoffrey.wise...@gmail.com> wrote: > >> If I were to build component that uses YUI, and I wanted to attac

Re: @IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
On Thu, Mar 26, 2009 at 12:47 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > If I were to build component that uses YUI, and I wanted to attach the > stylesheet from Yahoo (rather than copying it to my application), it doesn't > seem as if @IncludeStylesheet will let me do that; am I

@IncludeStylesheet and non-local CSS

2009-03-26 Thread Geoffrey Wiseman
If I were to build component that uses YUI, and I wanted to attach the stylesheet from Yahoo (rather than copying it to my application), it doesn't seem as if @IncludeStylesheet will let me do that; am I correct? - Geoffrey -- Geoffrey Wiseman http://www.geoffreywiseman.ca/