• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaServer Faces in Action: Reader question

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See this thread where a similar question was asked and answered.
[ August 31, 2004: Message edited by: Gregg Bolinger ]
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there any sample website which is developed by jsf ?
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when we should not use jsf ?
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mr. Kito D. Mann, what would you mention on chapter 5 - Using the input components ? thank you !
 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mr. Kito D. Mann, your book focus on more theory based or practical based ? how many percent on practical code as compare theory ?
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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..
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks, ko ko , thank for providing such value information to me, really appreciated it
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 Mann
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, is jsf contains something like validator in struts for validation ?
 
Kito Mann
author
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
reply
    Bookmark Topic Watch Topic
  • New Topic