Wednesday, September 29, 2004

Struts atau JSF atau Struts+JSF?

Sebagai java web developer, kadang kita dibingungkan dengan banyaknya web MVC framework yang telah ada. Kemudian tiba-tiba Sun membuat spesifikasi framework standar aplikasi web yaitu JSF (JSR-127), ini membuat kita untuk belajar teknologi baru, membandingkannya untuk kemudian memilih mana yang tepat untuk kebutuhan kita.

Craig McClanahan, orang dulu pertama kali membuat Struts dan salah satu lead dari tim spesifikasi JSF, menulis dalam blog-nya tentang kedua teknologi web tersebut: "Struts or JSF? Struts and JSF?." Untuk aplikasi yang sudah menggunakan Struts menurutnya sebaiknya untuk view layer diganti dengan JSF component tags, untuk menambah kemampuan user interface (JSF memang fokus pada view layer dalam terminologi framework MVC).

Untuk aplikasi baru, dia menyarankan mempertimbangkan hal-hal berikut:

  • Evaluate the two technologies individually, to see if they satisfy your requirements.

  • If one or the other technology is sufficient, go ahead and use it (it's easier to learn and use one technology rather than two where possible); keeping in mind, however, the caveats about Struts HTML tags mentioned above.

  • If your requirements include unique features supported only by Struts (such as Tiles or client side validation support), feel free to use the two frameworks together.


No comments:

Followers