Hi,

I am using Turbine-WebMacro

now, I have a screen test.wm , and test.java.  The class test is inherated from 
WebMacroSiteScreen.

I can access this window by keyin:

    local:8080/servlet/Turbine/template/test.wm

This can work fine. It looks for the default.wm in layout directory as it's layout.

Now for some reason I want to change the layout to something else other then 
"default.wm".


I read some part of the source code, and find in some comment said I can override the 
getLayout() funtion and reture a new layout template name.

But it can not work.


I try another way to do this: 

I add     data.getTemplateInfo().setLayoutTemplate("/abc.wm"); at the beginning of 
doBuildTemplate().

Now it can work.



I want to know 
    1.why I can not do this by override the function "getLayout" 
    2.Is it good, if I do it in the seconed way. Will it bring some side effect?
    3.Since I am a new user, it is so difficult to understand how Turbine works by 
reading the code. Is there any document about the struct of Turbine. For example
        when Tomcat start Turbine, which classes are loaded into memory,and what is 
the initial value of them. When a URL request comes, how turbine define which layout 
to use and which java classes and *.wm file will be called. What is the different 
between Template and Screen.... Such kine of things.



Regards


fanyun












N�.n�+�������'�+-�x��d�{.n�+�������~X��
+�)�v�,r��y�܆m����    ��V�r�y�&�۫n)��Ib��(�H��� ��&���nW��:'Š�x��

Reply via email to