Search |
||||
TOTD #48: Converting a JSF 1.2 application to JSF 2.0 - Facelets and AjaxPosted by arungupta on October 15, 2008 at 5:40 AM PDT
TOTD #47 showed how to deploy a JSF 1.2 application (using Facelets and Ajax/JSF Extensions) on Mojarra 2.0-enabled GlassFish. In this blog we'll use new features added in JSF 2.0 to simplify our application:
Notice how the Facelet is so simplified.
Have you tried your JSF 1.2 app on Mojarra 2.0 ? Drop a comment on this blog if you have. File JSF related bugs here using "2.0.0 EDR1" version and ask your questions on webtier@glassfish.dev.java.net. Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. An archive of all the tips is available here. Technorati: totd javaserverfaces glassfish mojarra netbeans »
Related Topics >>
Glassfish Comments
Comments are listed in date ascending order (oldest first)
Submitted by agoncal on Wed, 2008-10-15 07:38.
That's really good, thanks for this TOTD.
As for another suggestion, what about having this same TOTD but calling a ManagedBean. I would like to see how declaring ManagedBeans and navigation have been simplified in JSF 2.0 (any @ManagedBean annotation ?)
Submitted by varan on Wed, 2008-10-15 10:44.
Like a broken record, I will put in my two cents that it is astounding at best that Sun, which used to be a leader in this area, is still pushing all this tagged based development framework comprising of heterogeneous technologies (XML, scripting etc.) when so may other environments wherein you can program almost all of a web application in pure Java are already available. I expect better from Sun.
Submitted by edburns on Wed, 2008-10-15 11:22.
V> Like a broken record, I will put in my two cents that it is
V> astounding at best that Sun, which used to be a leader in this area,
V> is still pushing all this tagged based development framework
V> comprising of heterogeneous technologies (XML, scripting etc.) when
V> so may other environments wherein you can program almost all of a web
V> application in pure Java are already available. I expect better from
V> Sun.
Hello Varan, and thanks for your interest. Like the ancient Roman Empire, Java's strength is its diversity. Are you asserting that programming a web application in pure Java is the "best" way to do so? You're certainly welcome to make that assertion, but I know for a fact that many users would not agree. The best thing is you can have your Wicket and eat it too!
Ed
Submitted by rogerk on Wed, 2008-10-15 11:56.
Nahh... You can use annotations instead of xml if you like... ;-)
Submitted by edburns on Wed, 2008-10-15 11:58.
I'm saying render to XML what is XML's and render to Java what is Java's. Less cryptically, I think the record shows that describing a UI in markup is a great way to build a UI quickly for a large number of kinds of applications.
Submitted by varan on Wed, 2008-10-15 13:22.
Et tu, ED?
Anyway, I think there is much to be said for frameworks where the developer does not have to go back and forth between various languages for programming. It makes both maintenance and development easier for everybody.
Perhaps for large mythical teams where you have UI being developed in Botswana and the controller in Belige and the datamodel in Ghaziabad, it's more productive to have some people to specialize in XML and others in Java etc. but for entities with less than a zillion Rupees in capitalization it is quite cumbersome to use different languages for different parts of the applications.
|
||||
|
|