Next Generation BS Development Framework - Echo Tutorial (6)

zhaozj2021-02-11  154

Next Generation B / S Development Framework - Echo Tutorial (6)

HTML template

JSF and TapeStry are template-based Java web frameworks, but learn their specific grammar rules before use. Echo itself does not provide HTML template, ECHOPOINT provides us with template feature, first look at this template how to write:

Here Is Date Picker:


and a text field:


It seems that there is nothing special. Let's take a look at how to call in the program:

String TemplateFileName = "/Templates/test1.thtml";

HtmlTemplatePanel Template = New HTMLTemplatePanel

GetClass (). getResource (TemplateFileName);

Template.Add (New TextField (), "TextField1");

Template.Add (New DatePicker (), "DatePicker1");

Online only use the same name to register server-side controls. Then you can use all of the ECHO. Note:

ECHOPOINT's template function borrows WINS template feature, the former people plant trees, the future people are cold. HTML TAGs are copied into the control, such as the functionality of the value attribute property of TextField1 can be disabled, you can write PropertyManager yourself. To load special properties.

If you are also empty in love, or you need to log our website to your website, the HTML template is a good choice.

Unfortunately, Echo also visual design tool. In fact, Echo's procedures and Swing are extremely similar, and JBuilder has provided a very good OpenTools API to write For JBuilder plug-in, you can refer to the documentation inside Help and jBuilder's Examples. This. There are many jobs inside. If the DX is written on the SourceForge, it is also possible for the Chinese people. Interested friends can leave a message to discuss.

转载请注明原文地址:https://www.9cbs.com/read-5839.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.049, SQL: 9