aspose file tools*
The moose likes Struts and the fly likes JavaServer Faces in Action: Reader question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JavaServer Faces in Action: Reader question" Watch "JavaServer Faces in Action: Reader question" New topic
Author

JavaServer Faces in Action: Reader question

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, mr. Kito D. Mann, is your book for novice? i know nothing in jsf, will your book help me ? besides, i do have some knowledge on jsp and servlet....thank you !
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

See this thread where a similar question was asked and answered.
[ August 31, 2004: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thanks, Gregg Bolinger !!

can anyone share the different between struts and jsf ? why jsf come out as struts consider a very mature web framework so far..is there any weakness of struts ?
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
is there any sample website which is developed by jsf ?
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
when we should not use jsf ?
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
mr. Kito D. Mann, what would you mention on chapter 5 - Using the input components ? thank you !
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
mr. Kito D. Mann, your book focus on more theory based or practical based ? how many percent on practical code as compare theory ?
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Alvin chew:
thanks, Gregg Bolinger !!

can anyone share the different between struts and jsf ? why jsf come out as struts consider a very mature web framework so far..is there any weakness of struts ?


We got that issue in the past where we got a book promotion with "JavaServer Faces" from Oreilly... Hans got really good explanation in that thread... Pradeep also got bunch of links to old threads about the difference between JSF and Struts... It's really invaluable thread that I bookmarked before...

Here is the link.

I do believe that you will find the answer in that thread..


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Alvin chew:
is there any sample website which is developed by jsf ?


Alvin,
I guess, Gregg's article on JSF would be enough for you to get to know about JSF... For more advance info about JSF, you might need to access to other resources... Gregg's article on the Ranch is really good... He did a dedicated research on JSF, wherever there are authors coming for book promotions... We got chances to talk with the real authors of the book and get invaluable knowledge from them...

I hope you will benefit a lot from it...
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thanks, ko ko , thank for providing such value information to me, really appreciated it
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

Thanks for the compliments Ko Ko. I would just like to point out that my tiny article on JSF doesn't even begin to scratch the surface of the capabilites of JSF. While it does provide a very basic understanding of UI Components, the Navigation Model, Managed Beans, and Listeners, there are many many more features just waiting for developers.

The reason I did the Login example is because aside from Hello World, Login pages seem to be a defacto standard in beginning tutorials for web applications because most people need a login page. And the fact that Tom had already done the Login example using Struts. So looking at both our examples is a very good example of the differences between the 2 frameworks.
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
is there any sample website which is developed by jsf ?


Alvin, I don't know of any sites *publicly* available that are built using JSF, although people have already completed projects using it. You can find a lot of information on my web site, JSF Central (link below).


Kito D. Mann
Author of JSF in Actionwww.JSFCentral.com - JSF FAQ, news, and info
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
when we should not use jsf ?


Alvin,

That's sort of a tough question, but in general, I'd say you should use it most of the time . Some would argue that for really small applications, JSP is enough ("model 1"). I think JSF is great for small apps because you can build them really quickly.

For a really large project, you may find yourself extending it in some ways, or needing to integrate with another framework like Struts for some additional features. You can still, however, take advantage of JSF components.
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
mr. Kito D. Mann, what would you mention on chapter 5 - Using the input components ? thank you !


Alvin,

Chapters 4 and 5 survey each of the standard components. For each component, there is a table containing a list of properties and other information, as well as examples.

There are other chapters that cover using the standard components, as well as creating custom components.
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
mr. Kito D. Mann, your book focus on more theory based or practical based ? how many percent on practical code as compare theory ?


Alvin,

Quite a lot of practical, code, as matter of fact. See this thread.
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
thank you, mr.kito D. Mann for answering me the question, for your book, is it focus on jsf 1.2 or 1.1 ? thank you!
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Alvin chew:
thank you, mr.kito D. Mann for answering me the question, for your book, is it focus on jsf 1.2 or 1.1 ? thank you!


If I am not wrong, JSF 1.2 is just some kinda small enhancement to JSF 1.1 and even though JSF 1.2 is not focused in the book. We would need not much effords to cover new things in JSF 1.2... But I believe JSF 2.0 will be a big issue and at the time when JSF 2.0 is released, I believe that Mr.Kito will come up with a new version of "JavaServer Faces in Action"...

The following is some portions of an articile on TheServerSide.com, which is about the upcoming JSF 2.0...

Sun is committed to filing a separate JSR for JavaServer Faces 2.0 that will focus primarily on tools support, and secondarily on new features. The following features will specifically not be addressed in this JSR, but may be addressed in the JSR for JavaServer Faces 2.0:
-improved tools support
-additional components in the standard component library (for example, the Form File Upload component)
-JSR 227 aware JSF components
-client side, inter-component, multi-form validation
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, is jsf contains something like validator in struts for validation ?
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
thank you, mr.kito D. Mann for answering me the question, for your book, is it focus on jsf 1.2 or 1.1 ? thank you!


Ko Ko is correct. Also, JSF 1.2 won't be out until the second half of next year, as part of J2EE 5.0.
Kito Mann
author
Ranch Hand

Joined: Dec 11, 2003
Posts: 118
Originally posted by Alvin chew:
hi, is jsf contains something like validator in struts for validation ?


Alvin,

It does have validators, but they're handled quite differently than Struts. Validators are classes that handle validation for a particular input field, and you can attach one ore more to any control. You can also associate a validation method with a specific control.

See this article, which should give you an overview of JSF. It's kind of dated, but it does touch on validation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaServer Faces in Action: Reader question