You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Ryan Austin <re...@popmail.ucsd.edu> on 2003/06/25 20:18:10 UTC
RawScreen
I have a template and the corresponding java file extends RawScreen, but
when
I try to view the template, it is ignored? Is this the nature of RawScreen?
Is there
a way to output raw data and also have a corresponding template?
Thanks,
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: RawScreen
Posted by Jeffery Painter <pa...@kiasoft.com>.
I wanted to chime in with my methods
in my $WEBAPP/template/app/layout/Default.vm I have as my first lines
$page.setStyleSheet($content.getURI("resources/css/appstyle.css"))
$page.setBgColor("#ffffff")
so every screen that uses the default layout will pick up the
style sheet and background color information.
the page tool inherits its methods from
org.apache.turbine.util.template.TemplatePageAttributes
and supports the following (in 2.1 at least)
$page.setBackground(url)
$page.setBgColor(color)
$page.setDescription(description)
$page.setHttpEquiv(httpEquiv, content)
$page.setKeywords(keywords)
$page.setLinkColor(color)
$page.setStyleSheet(url)
$page.setTextColor(color)
$page.setTitle(intitle)
$page.setVlinkColor(color)
I hope this is a little helpful to the discussion.
Jeff Painter
On Wed, 25 Jun 2003, Ryan Austin wrote:
> Thanks for the help.
>
> Ryan
>
> ----- Original Message -----
> From: "Chris K Chew" <ch...@fenetics.com>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Wednesday, June 25, 2003 1:45 PM
> Subject: RE: RawScreen
>
> > Hi Ryan.
> >
> > As far as I know, CSS files don't have to have a .css extension. You could
> > simply make the css file a normal template with a blank layout, and link to
> > it inside your normal layout:
> >
> > <link href="$link.setPage("StyleSheet.vm")" rel="stylesheet"
> > type="text/css">
> >
> > But, it would be more efficient in terms of HTTP overhead if you could put
> > the styles inside the layout.
> >
> >
> > > -----Original Message-----
> > > From: Ryan Austin [mailto:reaustin@ucsd.edu]
> > > Sent: Wednesday, June 25, 2003 2:27 PM
> > > To: Turbine Users List
> > > Subject: Re: RawScreen
> > >
> > >
> > > What I want to do is process a css file which has certain values
> > > changed based on which user is logged in. I guess I could just
> > > put the css in the default layout and make a pull tool to fill in the
> > > values. I just thought there might be another way?
> > >
> > > Thanks,
> > > Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: RawScreen
Posted by Ryan Austin <re...@ucsd.edu>.
Thanks for the help.
Ryan
----- Original Message -----
From: "Chris K Chew" <ch...@fenetics.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, June 25, 2003 1:45 PM
Subject: RE: RawScreen
> Hi Ryan.
>
> As far as I know, CSS files don't have to have a .css extension. You
could
> simply make the css file a normal template with a blank layout, and link
to
> it inside your normal layout:
>
> <link href="$link.setPage("StyleSheet.vm")" rel="stylesheet"
> type="text/css">
>
> But, it would be more efficient in terms of HTTP overhead if you could put
> the styles inside the layout.
>
> I hope this helps,
>
> Chris
>
> > -----Original Message-----
> > From: Ryan Austin [mailto:reaustin@ucsd.edu]
> > Sent: Wednesday, June 25, 2003 2:27 PM
> > To: Turbine Users List
> > Subject: Re: RawScreen
> >
> >
> > What I want to do is process a css file which has certain values
> > changed based on which user is logged in. I guess I could just
> > put the css in the default layout and make a pull tool to fill in the
> > values. I just thought there might be another way?
> >
> > Thanks,
> > Ryan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: RawScreen
Posted by Chris K Chew <ch...@fenetics.com>.
Hi Ryan.
As far as I know, CSS files don't have to have a .css extension. You could
simply make the css file a normal template with a blank layout, and link to
it inside your normal layout:
<link href="$link.setPage("StyleSheet.vm")" rel="stylesheet"
type="text/css">
But, it would be more efficient in terms of HTTP overhead if you could put
the styles inside the layout.
I hope this helps,
Chris
> -----Original Message-----
> From: Ryan Austin [mailto:reaustin@ucsd.edu]
> Sent: Wednesday, June 25, 2003 2:27 PM
> To: Turbine Users List
> Subject: Re: RawScreen
>
>
> What I want to do is process a css file which has certain values
> changed based on which user is logged in. I guess I could just
> put the css in the default layout and make a pull tool to fill in the
> values. I just thought there might be another way?
>
> Thanks,
> Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: RawScreen
Posted by Ryan Austin <re...@ucsd.edu>.
What I want to do is process a css file which has certain values
changed based on which user is logged in. I guess I could just
put the css in the default layout and make a pull tool to fill in the
values. I just thought there might be another way?
Thanks,
Ryan
----- Original Message -----
From: "Chris K Chew" <ch...@fenetics.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, June 25, 2003 12:09 PM
Subject: RE: RawScreen
> > From: Ryan Austin [mailto:reaustin@popmail.ucsd.edu]
> >
> > I have a template and the corresponding java file extends RawScreen, but
> > when
> > I try to view the template, it is ignored? Is this the nature of
> > RawScreen?
> > Is there
> > a way to output raw data and also have a corresponding template?
>
> RawScreen is generally used for things like delivering binaries or pdf's,
> etc. Templates would be used for text-based content like HTML. As such,
> your question is a little confusing...can you say more about what you are
> trying to deliver to the browser? That way we will be able to provide so
> more intelligent feedback
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: RawScreen
Posted by Chris K Chew <ch...@fenetics.com>.
> From: Ryan Austin [mailto:reaustin@popmail.ucsd.edu]
>
> I have a template and the corresponding java file extends RawScreen, but
> when
> I try to view the template, it is ignored? Is this the nature of
> RawScreen?
> Is there
> a way to output raw data and also have a corresponding template?
RawScreen is generally used for things like delivering binaries or pdf's,
etc. Templates would be used for text-based content like HTML. As such,
your question is a little confusing...can you say more about what you are
trying to deliver to the browser? That way we will be able to provide so
more intelligent feedback
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org