• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java ServerFaces in Action  RSS feed

 
Mike London
Ranch Hand
Posts: 1340
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does anyone think about this book?

Based on the free chapter 1, it seems that it make sense to use this book with Sun's Studio creator (or one of the other two IDEs shown). Is this true?

One of the things the book supposedly covers is JSF integration with Hibernate. I'm not sure how easy this is to do with Sun's IDE, for example.

I'm currently using MyEclipse 4.1, but it seems a long way behind these other IDEs' functionality and, especially, ease of use. I'm not sure that doesn't come the cost of flexibility, however. (Why can't I have a great IDE with flexibility? )

Has anyone worked through this book and can shed some light here?

Thanks.

Mike
 
Anthony Carlos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot say that I've worked through the book, but I've used it to understand the basics of JSF. I come from a Struts background and tried reading Core JSF first. In my opinion, it didn't explain why JSF does things in certain ways. I felt that the author spoke mostly by example.

The JSF In Action book did a better job explaining things from a high level then going into more details. I guess I'd say that the author eased me into JSF.

Just my 2 cents,

-Anthony
 
Mike London
Ranch Hand
Posts: 1340
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

Here's a simple situation I'd like to know how well the book explains...

Say you have a login form where, after your validate the user/password, you want to store a token in the user's session then check that token when the user goes to any other form.

Does the book explain well how to deal with session variables in JSF?

Thanks... Mike
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I guess you're jsut going to have to read it.

I think JSFIA is pretty good. I never noticed it even mentioned IDE's, though. I'm using IntelliJ, but it doesn have builtin support for JSF like Sun or Oracle's IDEs do.

The easiest way to manage session variables in JSF is to make Managed Beans out of them. That way you don't have to go fetching and storing them, you just use them like any other JavaBean (except it's a VERY good idea to declare them as implementing java.io.Serializable, just like any other J2EE session object).
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
Well I guess you're jsut going to have to read it.

I think JSFIA is pretty good. I never noticed it even mentioned IDE's, though. I'm using IntelliJ, but it doesn have builtin support for JSF like Sun or Oracle's IDEs do.

The easiest way to manage session variables in JSF is to make Managed Beans out of them. That way you don't have to go fetching and storing them, you just use them like any other JavaBean (except it's a VERY good idea to declare them as implementing java.io.Serializable, just like any other J2EE session object).


I too use IDEA. I don't think JSFIA expects IDE's to be used. Kito is just explaining that part of the purpose of the JSF spec is tool support. The rest of the book shows everything else being done by hand.

As far as session management, I don't really agree with Tim here. While I understand his point and agree that it works, I tend to still have this old fasion legion to HttpSession. So I have a base class that most all my managed beans extend and in this base class I have the wiring for adding, removing, retrieving information from session via simple access methods.

And to answer your question, yes, Kito does discuss this in the book.
 
Mike London
Ranch Hand
Posts: 1340
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks all!!!

I guess you're right too... I just need to get the book!!!



Thanks again.

Mike
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!