on 9/12/2000 5:14 AM, "Joe Hudson" <[EMAIL PROTECTED]> wrote:
> I appoligize if this has been mentioned before or if there is a better way
> to fix these issues but I know some people have asked about so I just wanted
> to contribute what I have done...
>
> To fix the page to not automatically add the <body></body>:
-1. This is an ugly hack. Instead you should extend WebMacroSiteScreen and
override the getLayout() method with your own Layout that will not include
the <body> tag.
> Also, it looks like the WebMacroSiteLayout is "forgetting" what the layout
> is if it is not the defaut... to fix this change this method in
> WebMacroSiteLayout:
Ok, this looks like a bug, could you please send a diff?
> I also want to mention a couple of possible fixes...
> The WebMacro Template directory in TurbineResources.properties seems to need
> the full path instead of the relative path which the comments say.
No true. Relative path is working just fine for me. It all depends on where
you start tomcat.
> The ECS Document object has inconsistent getBody & setBody methods.
> The getBody returns the private property of the Document object
> public Body getBody()
> {
> return(body);
> }
> The setBody sets the Body object in the private Html object.
> public Document setBody(Body set_body)
> {
> html.addElement("body",set_body);
> return(this);
> }
> When the page is created, if I remember correctly, the private Body object
> is used, but there is no way to set that body since the Body object in the
> Html object is used for setting the Body.
Send a diff please.
thanks,
-jon
--
http://scarab.tigris.org/ | http://noodle.tigris.org/
http://java.apache.org/ | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/ | http://www.sourcexchange.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]