Good solution that unfortunately for me does not carry over well into JSP.
I really am trying to bring the layout/navigation/screen system into the
JspService, but it sure is not going smoothly.


----- Original Message -----
From: Rafal Krzewski <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, August 30, 2000 12:49 PM
Subject: Re: headers on templates: John M


> John McNally wrote:
> >
> > Rafal was doing some work regarding this.  I do not have the details on
how
> > stuff gets added to the head sorted out.  Rafal have you done work
regarding
> > this?  BTW, I am dropping my resistance to using the same context in the
> > layout.  And I did not see any problems with Web...OnlyLayout.java you
sent
> > me.  I did not test it though.  I have my machine set up to test my JSP
> > integration (which is plugging along slowly.)
>
> We use this class with no problems - it handles double <html> etc. issue.
> Adding stuff to the head requires adding an object to the context that
> will be available both to screen class and screen template before
> layout rendering takes place - I mean it must be added to the context
> by the page, when new context is created. We have such a class but it's
not
> final yet (we need to disscuss it a bit with our page designers). We will
> contribute it when it's ready.
> Ultimately page designer will write in the layout template something like
that:
>
> <head>
>    #if $head.hasTitle() #begin
>        <title>$head.getTitle()</title>
>    #end
>    #foreach $css in $head.getCSS() #begin
>        <link rel="stylesheet" href="$css" type="text/css">
>    #end
>    #foreach $meta in $head.getMetaHTTP() #begin
>        <meta http-equiv="$meta.header" content="$meta.content">
>    #end
>    #foreach $lang in $head.getMetaLang() #begin
>        #foreach $meta in $head.getMeta($lang) #begin
>        <meta name="$meta.name" content="$meta.content" lang="$lang">
>        #end
>    #end
> </head>
>
> of course there are more things that could be added...
>
> all the values may be set by screen class/template as apropriate,
> but not the navigations. I believe that it shouldn't be a problem.
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to