Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When to use JSF

 
Ralph Steven
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, it is NOT recommended to use JSF if I am not going to need rich graphics on my website. I want to make sure that this is the case.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use JSF for HTML output and web forms.Do NOT use JSF to generate XML and binary formats such as PDF, MS-Office, and image files.

JSF is not greedy. You can use JSF in webapps that create non-HTML output, just route your non-JSF URL requests to something more appropriate than the FacesServlet.
 
Ralph Steven
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim. If I have a very simple web form and simple navigation, should I use JSF or Struts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic