Choice between GWT and ZK

My team has been using an in-house framework (Echo) built some years ago.

The idea is cool, design is nice, and implementation good. With good developers they achieve this.

The framework is created sometime ago, even before spring, struts, hibernate become popular. So at that time, the framework is designed to act as an one-stop solution for all, from UI, to service, to persistence. Till now, it’s slightly outdated. As the service part has been replaced with Spring, the persistence part has partially moved aside for using hibernate.

However, there is still one layer (UI) intensively using it. This should thanks to the great integration with ZK.

The framework (Echo) has created a lot of extension to ZK, form element, container element, eventhandler element etc. It has been in same ideology we have been using for the DB UI framework, creating bean to generate the HTML output corresponding each such XML element (forms, container, eventhandler, action etc).

Great ideas are similar. Smart are in similar ways.

That’s how I come to know ZK. The UI framework by some Chinese developers, based on their client-server fusion architecture. Basically, if I understand correctly, it’s translating ZHTML file, (their languge/context) into HTML, at the same time, put their javascripts, client layout engine. Server side, they have the couterparty to listen to their javascript’s ajax calls.

Not bad. Especially plugin with ZK studio.

Just drawback, debugging is really hard. At the same time, compared to GWT, Google is better in architecture, and design.

Simply, I vote for GWT.

refer to Zk vs GWt

ZK Architecture

GWT Overview

maven projects

Since last week, I have been working on an automation testing project (volunteering).

It’s developed in my Eclipse, with Spring and Maven plugin. The technology used is Spring (DI or IoC), Camel (registering each test case as a camel routes) and selenium (testing framework); jasper report (for output) and java mail (for publisher).

It’s been working well within eclipse, invoke within.

Then I plan to publish to the team, and it supposed to be maven (mvn commands, the default approach).

however, wtf, 6pm I started preparing on this “packaging” till now finally solved. HA, 3 hours around (dinner, mrt, games excluded).

Thanks to maven.

I like the structure it required.

|-- pom.xml
`-- src
    |-- main
    |   `-- java
    |       `-- com
    |           `-- mycompany
    |               `-- app
    |                   `--
    `-- test
        `-- java
            `-- com
                `-- mycompany
                    `-- app

refer to Maven Project Structure
which is PERFECT!!!

(Actually, my own problem. I am not YET expert on maven!)

and the command I used “mvn clean compile test”
and I have been using exec-maven-plugin, to start my application by invoking the boot strap class ( simple load the spring application context).

Refer to 3 ways to run java from maven

Another good day.