Tapestry (programming)

Tapestry (programming)

Infobox Software
name = Apache Tapestry



caption =
developer = Apache Software Foundation
latest release version = 4.1.6
latest release date = 11 September 2008
latest preview version = 5.0.15
latest preview date = 21 September 2008
operating system = Cross-platform
programming language = Java
genre = Web Framework
license = Apache License 2.0
website = http://tapestry.apache.org

Tapestry is an object-oriented Java web application framework to implement applications in accordance with the model-view-controller design pattern. Tapestry was created by Howard Lewis Ship independently, and was adopted by the Apache Software Foundation. Tapestry emphasizes simplicity, ease of use, and aims to avoid forcing programmers to create enormous blocks of "glue code". Tapestry uses a modular approach to web development, by having strong binding between user interface components (objects) on the web page and their corresponding Java classes. This component-based architecture borrows many ideas from WebObjects [ [http://www.manning.com/lewisship/excerpt_preface.html Tapestry in Action - Preface] by Howard Lewis Ship] .

Tapestry 4

The current stable Tapestry release is version 4.1. Version 4 and below are relatively similar, whereas version 5 contains substantial changes.

Tapestry 4 web applications are broken down into pages and components. Pages dictate component layout, whereas components dictate functionality. This approach separates complex applications into easily manageable snippets of code which handle user interactions, business logic, and persistent data. Components are broken down further into core and supplemental types. Core components are the basic building blocks to the application, such as form validation, interface assets, or persistent objects. Supplemental components define how a group of any core components may interact with other in the group.

Component templates in Tapestry are XHTML files. Typically an XML file defines the mapping between Java classes and the XHTML objects they control. The communication between the backend Java and frontend (web application programming) XHTML objects is handled through OGNL. The code is marked up differently from the typical mechanism used by PHP, ASP, and JSP, which use special tags to enclose template variables and code.

Tapestry 5

Tapestry version 5 began development shortly after version 4 was released. The developers of tapestry version 4 quickly realized that their original architecture would not solve many problems plaguing web developers using its framework. These problems included complex component architecture and persistent data mapping. As well as the need to recompile, archive, deploy, and restart their servlet. This process needed to be done for every change made to the application. These problems affect a majority of all popular web application frameworks. Ultimately the worse problem afflicting tapestry developers was the lack of backwards compatibility.

Tapestry version 5, currently in beta release, has been redeveloped from the ground up. This version is designed to be 100% backward compatible for future version releases through the adoption of Java annotations. This version also allows for instant development; there is no need for the developer to redeploy and restart their servlet container when a template or Java class is changed. Tapestry has accomplished this through the evolution of HiveMind and IoC. Because of these technologies, there is no longer any need for a middle XML layer. The back end has been simplified to use Plain Old Java Objects, and is linked directly to the front end using Java annotations. The front end itself has been redesigned from scratch to use a new XML-based language known as the Tapestry Markup Language (TML). Version 5 also integrates AJAX interfacing fully into its control structure, allowing for developers to create rich immersive web application with very little code.

Related projects

Tapestry is used in the [http://www.trailsframework.org/ Trails Framework] .

References

External links

* [http://tapestry.apache.org/ Tapestry Home Page]
* [http://tapestry.apache.org/tapestry5/ Tapestry 5 Home Page]
* [http://howardlewisship.com/ Howard Lewis Ship]
* [http://www.agileskills2.org/EWDT/ Enjoying Web Development with Tapestry] book
* [http://www.trailsframework.org/ Trails Framework]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Tapestry (disambiguation) — Tapestry is a form of textile art.Tapestry or tapestries may also refer to:In computer science:* Tapestry (DHT), a distributed hash table protocol * Tapestries MUCK, an online MUCK * Tapestry (programming), a Java web application framework that… …   Wikipedia

  • Tapestry (radio) — Tapestry is a Canadian radio program, which airs Sunday afternoons at 2:00 p.m. on CBC Radio One. The program, hosted by Mary Hynes, airs documentary and interview programming relating to spirituality, faith and religion.External links*… …   Wikipedia

  • Ajax (programming) — AJAX redirects here. For other uses, see Ajax. Ajax (also AJAX; pronounced /ˈeɪdʒæks/; an acronym for Asynchronous JavaScript and XML)[1] is a group of interrelated web development methods used on the client side to create asynchronous web… …   Wikipedia

  • onTap — Features Without Fixtures Developer(s) S. Isaac Dealey Stable release 3.2b / September 24, 2008; 3 years ago (2008 09 24) …   Wikipedia

  • OnTap — Infobox Software name = onTap caption = Features Without Fixtures genre = web application framework developer = S. Isaac Dealey|source model = Open source latest release version = 3.2b latest release date = Sep 24, 2008 operating system = Cross… …   Wikipedia

  • WebObjects — Infobox Software name = WebObjects caption = WebObjects 5.3 project in Xcode and WebObjects Builder developer = Apple Inc. latest release version = 5.4.3 latest release date = release date|2008|09|15 operating system = Mac OS X genre = Web… …   Wikipedia

  • interior design — 1. the design and coordination of the decorative elements of the interior of a house, apartment, office, or other structural space, including color schemes, fittings, furnishings, and sometimes architectural features. 2. the art, business, or… …   Universalium

  • WBHM — Infobox Radio station name = WBHM city = Birmingham, Alabama area = slogan = NPR News Classical Music branding = frequency = 90.3 MHz airdate = December 5, 1976 share = repeater = WSGN 91.5 MHz (Gadsden) format = News Talk Information erp =… …   Wikipedia

  • Oklahoma — This article is about the U.S. state of Oklahoma. For other uses, see Oklahoma (disambiguation). State of Oklahoma …   Wikipedia

  • Mister Majestic — Cover of the first issue Publication information Publisher WildStorm …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”