This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF -- Best way to learn? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF -- Best way to learn?" Watch "JSF -- Best way to learn?" New topic

JSF -- Best way to learn?

Mike D Smith

Joined: Mar 04, 2013
Posts: 1
I'm a java newbie, having spent most of my time writing C# code. I've been dumped in a project that will be using PrimeFaces. Since I don't really know Java, nor JEE, nor JSP/JSF, or PrimeFaces, I am hoping someone can give me some suggestions on how to quickly (if that's even possible) come up to speed on JSF and Primefaces. I know, not the smartest move by my organization to ask a .Net developer to jump in and contribute to a Primefaces project, but that's where I find myself unfortunately. Could really use some suggestions as I'm pulling my hair out trying to make sense of all this stuff.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17282

That's a pretty tall order. You're attempting to switch languages and frameworks all at once.

I can give some basic info, but it's just a scratch.

1. JSF is a fairly strict implementation of the Model/View/Controller paradigm. You define the Models (Backing Beans) and the Views (xhtml), and the Controllers are pre-supplied by JSF itself.

2. The normal mode of operation of JSF is to
A. present (render) a View using values obtained from its Model(s).
B. accept a form submission from that View
C. validate the inputs from that form
D. Update the Model from the form
E. Invoke the form submit action method to act on the updated Model and possibly update the Model further in anticipation of new View rendering.
F. Navigate to whatever View the action method wishes.
G. repeat from A

Steps D-F are bypassed if any of the form values are invalid. For actual details, consult the docs on the "JSF Lifecycle".

3. I consider a good start for learning how to do common JSF functions to be Rick Hightower's IBM Developerworks series "JSF for Non-Believers". Use your web search engine to locate it.

4. JSF is designed to make Simple Things Simple and Complex Things Possible. It is based on the Plain Old Java Object (POJO JavaBean) concept. If you find yourself writing code that digs into javax.faces classes other than the model classes (DataModel and SelectItem), you are probably doing it wrong. Nothing screams "n00b!" louder than a lot of platform-specific JSF code. The less a JSF code module looks like "JSF", the more JSF it's likely to be (how's that for Zen?)

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF -- Best way to learn?
It's not a secret anymore!