It seems now, everybody can read my mail. It is not in a mass again.
----------------------------------------------------------------------------------------
After read through the code. I am now having more understand about Turbine, and also
find the answer of my question.
In turbine, you can call your screen in serveral ways
1. file://local:8080/servlet/Turbine/screen/Test
this will call the test.java class, and use test.getLayout(Rundata data) function to
determin the layout. But notice, here the layout is not the *.wm file. It is the
layout class name. You have to write another layout class for it.
2. file://local:8080/servlet/Turbine/template/test.wm
If you call the screen in this way, the system will first define the name of the
class: test.java. Then it will look for layout file in this order:
layout/test.wm , layout/default.wm.
In this way, we do not do anything to change layout. We only need to write a layout
with the same name. If we want to go much futher, we can call
TempletInfo.setLayoutTemplate(xxxxxxx) to change the layout to another file
Regards
fanyun
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Turbine" <[EMAIL PROTECTED]>
Sent: Monday, July 31, 2000 2:08 AM
Subject: Re: How to change layout (If this mail is still in amass,pleaseforgive me)
> >
> >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.
>
> Make sure that you are overriding getLayout(RunData data) and not
> getLayout().
>
> Brian
>
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
�˛���m�n���z���p��"�h��(�:.�˛���m�n���z�ߖ+-�x��d�j�!��i��0�f���܆+�r����ۊw��X��
+�)�v�,r��>��鬎��"�h��(