Experiencing JSF 1.2: Good but Needs a Framework
Join the DZone community and get the full member experience.Join For Free
i’ve got an opportunity to experiment with jsf 1.2 while preparing a lecture about dbunit express and test webapp for jsf el validator . same as jsf 1.1, it’s much easier to use than the low level, too http-ish servlets but still it is not flexible enough and usable per se, it is absolutely necessary to use a decent framework (such as rich or ice faces) to be really productive. automatic value and method binding is cool but not sufficient.
for example forcing datatable to get filtered when you change selection in a select list was rather non-trivial and making the table sortable by every column required quite lot of work and if i wanted to have that for every table, i’d need to develop framework of my own. of course with various jsf component libraries you get such things out of the box but still jsf 1.2 is little to rigid, for example methods that could take parameters (which came in jsf 2.0) would make things a lot simpler.
i’ve also considered using business objects – such as ejbs – directly as jsf backing beans but i feel that in this version it might be suitable only for small applications (where the overhead of concern separation doesn’t pay off) or some special ones. the problem is that even though backing beans are pojos, jsf still forces them to a rather specific shape, which should be confined to the web layer – such as having action methods that take no parameters and return an indication of which view to dislay next.
i would very much like to experiment with and compare other interesting frameworks such as play!, grails, and gwt (and given that i’ve finally got to learning clojure, perhaps also compojure), though i likely won’t have time for that. if i do, you will come to know
Opinions expressed by DZone contributors are their own.