Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why should I use JSF instead of using easy ZK framework [closed]

Tags:

java

jsf

zk

I have found the ZK Java Web framework very easy because of its built in support for Ajax, so why should I use JSF? I have found JSF's Ajax i.e. A4J not as good as ZK's Ajax.

like image 929
Narayan Subedi Avatar asked Dec 06 '12 06:12

Narayan Subedi


People also ask

What is Zul in ZK framework?

zul extension is a web file created with the User Interface Markup Language (ZUML) and contains definitions for user interface elements. Ajax and Java classes support using the XML-based ZUML for developing server side files.

How does ZK framework work?

ZK uses a server-centric approach in which the content synchronization of components and the event pipe-lining between clients and servers are automatically done by the engine, and Ajax plumbing codes are completely transparent to web application developers.


2 Answers

The answer to this is actually: It depends. There is no silver bullet for this issue.

JSF 2 comes with built-in AJAX support. Alternatively, if you want rich GUI with AJAX support, PrimeFaces, ICEFaces and others have rich capabilities built-in.

In essence, your view layer will mostly depend on the GUI, but in the Service Layer, one don't need to reference to PrimeFaces code, only Faces API.

It's all in a matter of taste: If you find ZK Framework easier to use than JSF, by all means, use it. At the end of the day, the client never cares about what Framework or architecture you've used to make your system, as long as the system does what it's supposed to do.

I hope this helps.

like image 153
Buhake Sindi Avatar answered Sep 22 '22 17:09

Buhake Sindi


You decide

  1. JSF is a Java EE standard
  2. ZK is much faster than JSF
  3. ZK has "ZK JSF components" but compatible only with JSF 1.2
  4. ZK has easy to use built in Ajax support while JSF 2.0 also supports Ajax well
  5. ZK is Easier to learn
  6. Finally there are 12000 JSF related questions in Stackoverflow while ZK has 250
like image 27
prageeth Avatar answered Sep 22 '22 17:09

prageeth