In some ways, a Page is just a Component that has no parent. I'm not
100% sure why they're separated, except that it's a historical
artifact. Components (and pages being a special-case component) are a
piece of java software that renders itself (usually as tags and
possibly with a body, which may contain the renderings of other
components.) It's quite different than tag-libs. Taglibs get turned
into generated code that executes with other JSP code. Components
don't generate code, they are live objects with life-cycles that
respond to events, just like a swing or Mac-OS Cocoa component. JSP's
code gets turned into a very very long execute() method on a servlet,
so there's lots of entanglement. There was a good article on this in
the t5 docs, but I can't remember which one.
Christian.
On 16-Jan-09, at 16:01 , mjparme wrote:
In the last couple of days I have been working with Tapestry. I have
read
Tutorial #1 and all the User Guides articles found here:
http://tapestry.apache.org/tapestry5/
I think I understand enough to get going at this point; however, one
main
point I still don't quite understand (and seems like it is probably
something I should understand) is the difference between a Page and a
Component. I understand what pages are and have done some simple
things over
the last couple of days but I don't understand when I would use a
Component
and what they are for. Are they somewhat like a tag in a tag library?
BTW, I really like what I am seeing with Tapestry, vastly better
than the
XML hell that is Struts. However, since it is a vast departure from
most web
frameworks there is a pretty big learning curve. Seems worth it so far
though.
--
View this message in context:
http://www.nabble.com/Pages-vs-Components-tp21508386p21508386.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org
Christian Edward Gruber
christianedwardgru...@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org