You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by John McNally <jm...@collab.net> on 2001/11/30 17:09:51 UTC
Re: Implementing Layout
The layout is in:
com.financialfinesse.xanadu.modules.layouts.MyLayout
and getLayout(RunData data) returns "MyLayout"?
john mcnally
"Paul J. Boyes" wrote:
>
> Hello,
>
> I apologize in advance if this topic has been discuss, but, after doing
> research all day, I have not been able to come up with an answer.
>
> I have been trying to figure out how to implement my own Layout class with
> Turbine and Velocity. I have the layout templates working just fine, but
> would be interested in having multiple layout classes (2 to be exact...
> Maybe more in the future). I have subclassed VelocityECSLayout (as I read
> to do on this list) and placed the subclass in my modules directory (not
> the apache modules) and in my screens I defined getLayout to return the
> name of my new Layout class, but it is not getting used. I also tryed
> putting it in modules.layouts and it did not work. Where does this need to
> be put for Turbine to find it? I consistently get a message telling me
> that it was not found.
>
> java.lang.ClassNotFoundException:
>
> Requested Layout not found: Layout
> Turbine looked in the following modules.packages path:
> [com.financialfinesse.xanadu.modules, org.apache.turbine.modules]
>
> I am trying to accomplish two things:
>
> 1) I'd like to have all of the templates that are passed throught the
> layout escaped in a proprietary format, but also have a layout that does
> not do this. So, I'd like to be able to put an object in the context that
> will escape these. If I can figure out how to get my layout found, this
> should be easy.
>
> 2) I'd like to strip some or all of the html document tags that are added
> on with the layout. Reading the ECS apidocs, it looks like this can be done.
>
> Any info you can provide would be greatly appreciated.
>
> Thanks,
>
> Paul J. Boyes
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Implementing Layout
Posted by "Paul J. Boyes" <bo...@eskimo.com>.
John,
I did have the package wrong. I changed it last night and that was it. I
thought that I had done it earlier, but I guess I did not. I ended up
using your VelocityOnlyLayout as an example and that did the trick. Thank
you very much for the help.
Paul J. Boyes
At 08:09 AM 11/30/2001 -0800, you wrote:
>The layout is in:
>
>com.financialfinesse.xanadu.modules.layouts.MyLayout
>
>and getLayout(RunData data) returns "MyLayout"?
>
>john mcnally
>
>"Paul J. Boyes" wrote:
>>
>> Hello,
>>
>> I apologize in advance if this topic has been discuss, but, after doing
>> research all day, I have not been able to come up with an answer.
>>
>> I have been trying to figure out how to implement my own Layout class with
>> Turbine and Velocity. I have the layout templates working just fine, but
>> would be interested in having multiple layout classes (2 to be exact...
>> Maybe more in the future). I have subclassed VelocityECSLayout (as I read
>> to do on this list) and placed the subclass in my modules directory (not
>> the apache modules) and in my screens I defined getLayout to return the
>> name of my new Layout class, but it is not getting used. I also tryed
>> putting it in modules.layouts and it did not work. Where does this need to
>> be put for Turbine to find it? I consistently get a message telling me
>> that it was not found.
>>
>> java.lang.ClassNotFoundException:
>>
>> Requested Layout not found: Layout
>> Turbine looked in the following modules.packages path:
>> [com.financialfinesse.xanadu.modules, org.apache.turbine.modules]
>>
>> I am trying to accomplish two things:
>>
>> 1) I'd like to have all of the templates that are passed throught the
>> layout escaped in a proprietary format, but also have a layout that does
>> not do this. So, I'd like to be able to put an object in the context that
>> will escape these. If I can figure out how to get my layout found, this
>> should be easy.
>>
>> 2) I'd like to strip some or all of the html document tags that are added
>> on with the layout. Reading the ECS apidocs, it looks like this can be
done.
>>
>> Any info you can provide would be greatly appreciated.
>>
>> Thanks,
>>
>> Paul J. Boyes
>>
>> --
>> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
>> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
>For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>