In fact,there are two type users:administrator and visitors.Before startting 
system,administrators can implement many set of html pages and install them. 
After system started,visitors can select their favorite page set such 
as "aaa",for example,user Tom selected "aaa",then all rendered html page come 
from template directoy [context]\templates\aaa\*.html.
In fact,there is only onet set of .page.For example,there's only one 
Login.page,but there maybe many html templates:Login.html,all the Login.html 
files have the same components defined in Loing.page.Then in context template 
directory you'll see as following:
[context]
          templtes
                 temlate_1
                       Login.html
                 temlate_2
                       Login.html
                 temlate_3
                       Login.html

All the Login.html have the same Login.page which defined in .application.

So what's difference between the Login.html files?They have same 
components ,but they may have different css styles,different images,different 
text,different description and different more.Administrators can only implemnet 
html files ,they cannot modify *.page files ,cannot modify .application 
file,what they do just(only) modify html files,and give visitors a chance to 
select their favorite templates.For example,When first logining system ,Tom may 
see login page rendered by template_1\Login.html(by default),but after 
selecting favorite tempalate "template_3" in control panel,he will see one 
login page rendered by template_3\Login.html when next logining system.

In "getTemplate" we can load page by checking selection var stored in "visit" 
such as "template_3".So there's a key problem ,how to get method "getTemplate" 
invoked every time when rendering Login page?In fact the visitor maybe 
Tom,John,Lisa etc.

thanks
Jone.hwk




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to