Re: CSS in Database

2010-10-27 Thread Inge Solvoll
Quick thought: You could copy the code for that from T5.1 RenderSupport, and recreate it as your own environmental? On Thu, Oct 28, 2010 at 4:34 AM, Mark wrote: > Ok I found that I can @Inject RenderSupport and call it like: > > @SetupRender >public void setupRender() { > renderSupport

Re: CSS in Database

2010-10-27 Thread Mark
Ok I found that I can @Inject RenderSupport and call it like: @SetupRender public void setupRender() { renderSupport.addStylesheetLink("CustomCSS", null); } This works, but RenderSupport has been deprecated and "replaced" by JavaScriptSupport. Unfortunately JavaScriptSupport only

Re: CSS in Database

2010-10-27 Thread Mark
Ok, I'll assume it is a bug (https://issues.apache.org/jira/browse/TAP5-1330 ) Is there anyway to use the @Import annotation to add a stylesheet that isn't a local asset--as in a page that is rendering as css instead of HTML. If there is a way to @Import a stylesheet that is on a remote server, it

Re: CSS in Database

2010-10-27 Thread Thiago H. de Paula Figueiredo
On Wed, 27 Oct 2010 19:32:29 -0200, Mark wrote: This is on 5.2.2-SNAPSHOT and on 5.2.1. Has it behaved differently in the past? I haven't tried any 5.2, unfortunately, but I have one T5.1.0.5 website (www.cristilenesalomao.com.br) doing exactly what you've done and the

Re: CSS in Database

2010-10-27 Thread Mark
On Wed, Oct 27, 2010 at 4:05 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > > That seems strange, as any resource included by Tapestry (CSS and > JavaScript) is put before anything you add in your template inside . > > Hm. That does not seem to be happening: Layout.tml:

Re: CSS in Database

2010-10-27 Thread Thiago H. de Paula Figueiredo
On Wed, 27 Oct 2010 18:36:54 -0200, Mark wrote: It seems to work, but it is rendering after the other stylesheets, so they are overriding it. Is there a way to tell it to render after the other stylesheets instead of before? That seems strange, as any resource included by Tapestry (CSS a

Re: CSS in Database

2010-10-27 Thread Mark
Ok that seems to work in most browsers, but I'm pretty sure that isn't valid HTML. I tried Thiago's suggestion of creating a page that renders a TextStreamResponse. That works, but I can't find a way to import it using: @Import(stylesheet = {"context:layout/layout.css","CustomCSS"}) because it is

Re: CSS in Database

2010-10-27 Thread Michael Gentry
Hi Mark, Try moving: to be inside the body instead of the head and see if that helps. mrg On Wed, Oct 27, 2010 at 4:36 PM, Mark wrote: >> >> >>> 1) Use the OutputRaw to output the CSS content. >> 2) Create a page that returns a StreamResponse (in th

Re: CSS in Database

2010-10-27 Thread Mark
> > >> 1) Use the OutputRaw to output the CSS content. > 2) Create a page that returns a StreamResponse (in this case, you can use > TextStreamResponse) containing your CSS. > > Thanks Michael and Thiago. I'm trying the output raw method first like this: Re: CSS in Database
On Wed, 27 Oct 2010 16:51:32 -0200, Mark wrote: I'm looking for a way to make it easy for a designer to tweak some of the visual attributes of an application without giving them access to the filesystem. My thought was to let them put text into the database that will be pulled out as a CSS s

Re: CSS in Database

In your .tml: On Wed, Oct 27, 2010 at 2:51 PM, Mark wrote: > I'm looking for a way to make it easy for a designer to tweak some of the > visual attributes of an application without giving them access to the > filesystem.  My thought was to let th

CSS in Database

I'm looking for a way to make it easy for a designer to tweak some of the visual attributes of an application without giving them access to the filesystem. My thought was to let them put text into the database that will be pulled out as a CSS stylesheet so they can override anything they want. Ho