As I mention in my question that to say JSF is supported by sun is not the acceptable reason for me to select JSF. And your second point about a struts need 5 file and JSF need 2 to do the same work is replied by Mark Spritzler.
If you tell me the superiority of JSF over Struts in real working enviroment. It will help me more.
Joined: May 18, 2006
But when it come JSF, I am in doubt.
In JSF, I am very comfortable when I want to display table and when I want to make form submission.
but when I want to user Custom Components and when I want to use AJAX I find I have to do 5 time more work then Struts and simple JSP.
Then don't use it. Nobody forces you too. The abundance of frameworks available out there has always led to these kind of discussions. I don't know if there is such a thing as which framework is better than which. Each of us have their own opinions about things, and what is important to you may not be necessarily important to me. So I guess it's just a matter of preference more than anything else, or perhaps what you feel best suits the kind of problem you are solving.
Personally, I use JSF for most of my projects. Not because I think it is the most "superior" out of the bunch, but simply because it was the first framework I have been exposed to and have been using for quite some time, and I don't really have the time to devote myself to the learning curve that it takes to learn a new framework. It also works for most of the projects that I am doing so there is really no need to shift. And plus, I came from a Swing background so the JSF paradigm makes more sense to me.
And standards is not the end all and be all. It just simply means that Sun is endorsing it. [ September 13, 2007: Message edited by: Eugene Abarquez ]
There's so much to learn in this industry, and not everybody has the necessary interest.
Joined: Jan 17, 2002
I prefer JSF to Struts anytime. The reason being that you have so many reusable components out there to achieve task one would have needed many lines of code in Struts. Components such as Trees, HTML Editors,date Pickers, Color Pickers e.t.c. You mentioned AJAX, I guess you have'nt tried Ajax4JSF components. Another reason why i feel prefer JSF to struts is that the newest Frameworks (Such as Seam which solves most of the problems Programmers encounter while Developing Stateful web applications) are based on JSF. Well I don't really think one framework is better than the other. Struts has been used over the years to develop some of the best web applications. I like the competition out there between Struts and JSF
FrontMan works for me, but my point was not to push any one particular solution, but to point out that there are a lot of solutions of varying complexity. The choice is not merely between big Struts or big JSF. [ September 13, 2007: Message edited by: Bear Bibeault ]
The nice thing about both Struts AND JSF is that they don't have to totally own the app. You can mix and match Struts, JSF, and raw JSPs in the same webapp with impunity, using the best technology for the specific task at hand.
Joined: Sep 01, 2003
Enjoy the Ajax in JSF by using phase listener. It work for me as an open servlet.
I never make all to all comparison but for ajax specific comparison. I ask for help. Any way now most of my issue is solved by IBM Article