How can we smooth the gap between JavaScript and servlet to build rich client applications? [SOS]

Source: Internet
Author: User
    • InSilverlightIn the world, Ria service + Silverlight can be seamlessly integrated. If there is an object and a complex associated sub-object, it can be easily implemented here:

1. Build a public domain class definition

2. The Silverlight client can use two-way binding and the above object Association.

3. The server can use the above domain class for storage.

Therefore, it is very convenient. the WCF framework has provided the support for WCF trackable. For example, the change content of an object can be tracked ..

 

    • FlexIn combination with blazds can also be very convenient to handle this problem.

 

    • InJavascript + ServletIn the environment, which of the above objects should be used?

After reading the relevant information, we can summarize the following information:

1. Java Improvement Plan

GWT: RPC transmits the objects shared by the client and the server, and the client interface elements are bound in two directions. It does not seem to have reached this level.

ZK: This new servlet-based framework can simplify processing, but it consumes a lot of server resources.

...

2. Javascript Improvement Plan

Knockoutjs: It is highly developed for MVC clients. But how can JavaScript objects be shared with domain objects? Writing them twice is too complicated.

Jquery template: I did not look at it carefully, but it is still difficult to deal with this gap.

...

 

How to build a domain object in the common SSH framework in the client with JavaScriptCodeWhat about repeated solutions?

Is there such development recommendations in the garden? This is really a confusing question!

 

The most ideal method [to be solved]:

    • Objects can be shared on the server and client to reduce the secondary encoding of the front-end and backend.
    • The client can bind the object in two directions, such as jquery UI easyui and other interface elements.
    • Objects passed to the server can be persisted to the database using hibernate/JPA (or conversions such as automapper)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.