• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is a Component?  RSS feed

 
glenn spjuver
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been doing some reading on JSF and the fact that it is a component based framework seems to be one of the big deals. So whats the big difference between JSF components and ordinary JSP tags?
It seems to me they do pretty much the same thing. I started creating my own custom components in JSF (which is somewhat tedious btw), then I though, - Hey, couldn't I just aswell make this an ordinary custom tag? JSF components are supposed to be context independet or something, right? But what does that really mean?

Best regards
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by glenn spjuver:
So whats the big difference between JSF components and ordinary JSP tags?


That's like asking what the difference between Swing components and Java classes is. The latter is the way the former is implemented.

I started creating my own custom components in JSF (which is somewhat tedious btw), then I though, - Hey, couldn't I just aswell make this an ordinary custom tag?


Well, of course you could. JSF components *are* "just" ordinary custom tags - plus the JSF infrastructure (managed beans, being able to register listeners etc.).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!