Next Generation B / S Development Framework - Echo Tutorial (9)
advantage disadvantage
This topic is originally in the beginning of this tutorial, but I want to make my own evaluation from the previous examples to see if our conclusion is consistent:
advantage:
Develop B / S procedures with OO, fully face-to-object programming. No HTML and scripting knowledge, generated standard HTML and scripts by the framework, the client only needs a browser, no additional plugin, the server-side control provides status management based on events Programming. You can use the HTML interface using the template. Based on the state management of the window, not the state management of the page-based status management ASP.NET based on page. Echo's window management is based on Frame, so there is a benefit:
Open / Hide / Close Other Window Background Sub-Sub-Sub-Subsidiary When you refresh the controls that modify other windows, you will update it immediately. Using design patterns, you can unify the style. Convenient post-page modification has a lot of templates available. And you can develop controls yourself The accumulation of controls / reuse modular development is suitable for writing complex inputs, with a plurality of sub-windows. Based on servlet, it can be used in combination with existing frameworks (JSP, Struts, Coocoon), which supports IE, Opera, Netscape Mozilla.
Disadvantages:
Large resource overhead, is not suitable for high-loading situations to require self-developing controls for browser versions. There is no more difficult data binding to support lack of visualized development tool portal fixed, and cannot be directly linked to internal. (Very icard desktop program) Version instability
TIPS:
Using the design mode to implement the web page MVC. When there is a large similar component on the page, you can write it into a control, use it directly. Echopoint should be registered before use: echopoint.ui.installer.register (); the default attribute of the window is not automatic Close. Window.dispose_on_close; debugging error does not print in the IDE. Modify the code echoservlet. Resin will immediately reload after the class changes, suitable for UI debugging to improve recommendations to ECHO. Recommend you to echopoint Control. For code correction, please submit to the author, it is LGPL.
Looking back, look at the server-side control technology, which simulates stateful connections on the basis of the stateful HTTP, implements status maintenance and event processing. The cost is a greater resource consumption, and the pain of developers is passed to the server. It It is a fool-type, shielded Internet personality, so that people who do not have B / S can also develop, write B / S program with desktop, some originally complex desktop, now we can easily move to browse The device is realized, and even code transplant is easy. The client does not need any additional plugins. ASP.NET has been adopted. SAP is about to launch Web DynPro technology uses a similar mechanism. Use it in the portal may not be large Suitable, use in OA, ERP, should be wise.
Thanks to NextApp, we offer us an Open source echo. I hope everyone can do some help while you can enjoy it. Here is two two pieces I can think of:
Make a graphical design tool. Make a program that generates / static code generation data binding / authentication based on Schema's dynamic interface.
It turned out that there was an example of lunch order in the tutorial 6. I was too complicated by I wrote, so cut it. Interested friends can download: I have used some of the sculptor tips mentioned in this tutorial, for reference only.