Difference between JavaServerFaces and JavaServerPages+Swing ?

A

Arnold Peters

Ok, I read a couple of intros for JavaServerFaces. But I could not figure out:

What is the real difference between JavaServerFaces and the good ol'
JavaServerPages+Swing Programming ?

What can I do with JSF what I cannot with either JSP or Swing components ?

Arni
 
G

Greg Smith

arni,

swing is an applet. jsf is native html.

jsf makes the rendering 'kit' replaceable. so, you get a set of tags
that displays certain objects. it sort of acts like swing in that you
define an object to display on-screen, and the rendering kit decides
how to display it. you can swap in different rendering kits for
different look and feel.

its more like struts than like swing, if that makes any sense.

greg
 
C

Chris Smith

Greg said:
swing is an applet. jsf is native html.

Not exactly. The standard components provided for JSF render in native
HTML. JSF, though, is a framework that allows for maintaining state and
listening for events in pretty much any HTTP servlet-based
request/response environment. I could very easily write a JSF component
that is a Swing applet, assuming the presence of LiveConnect to
communicate the results back to hidden form fields in the HTML page.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top