JavaServer Faces (JSF) technology is used for developing server-side user
interfaces (UI) for Java EE applications. JSF 2.0 architecture has introduced
several new features, most of which we shall discuss in this article. The
salient new features in JSF 2.0 are State Saving, Facelets, Navigation,
Validations, Scopes, AJAX, Resource Handling, Composite Components, View
Params, Client Behaviors, Event Handling, and Exception Handling.
State Saving
In JSF 1.2 the full component tree is saved/restored. Attributes are also
stored and restored. Saving and restoring the full state has performance and
memory issues as the complete state has to be saved and restored and the size
of the state saved could be large. In JSF 1.2 each UIComponent saves/restores
its own state in the component hierarchy using saveState and resoreState
methods in StateHolder. If state saving were to b... (more)
This article compares Document Type Definition (DTD) and XML Schema elements.
Java 2 Enterprise Edition (J2EE) developers use DTDs and schemas in J2EE/XML
applications. When a DTD for an XML document is provided and validation with
an XML Schema is required, the DTD-to-XML Schema conversion creates an XML
Schema document corresponding to the DTD document.
Overview
A DTD defines the structure of an XML document and defines a document's
element types, subelement types, and the order and number of each element
type. It also declares the attributes, entities, notations, processing
i... (more)
The JBoss open source application server is commonly used in the development
phase of a J2EE project. In the production phase the commercial BEA WebLogic
server is preferred because of its enhanced set of features. Without
modifications, an application developed in JBoss does not deploy in WebLogic
server.
The deployment descriptors for the WebLogic server are different from the
JBoss deployment descriptors. An application may be migrated to WebLogic by
converting the vendor-specific deployment descriptors to WebLogic. In this
tutorial an EJB application developed in JBoss will ... (more)
A J2EE application deployed in the WebLogic server may be debugged in the
Eclipse IDE with the remote debugger provided by Eclipse. Without a debugger
the error message has to be obtained from the application server error log to
debug the application.
With the remote debugger provided by Eclipse, exception breakpoints may be
added to the application file to debug. When an application is run in
WebLogic and the application generates an error, the application gets
suspended and the Eclipse IDE Debug perspective displays the error. In this
tutorial we will debug a WebLogic Applicat... (more)
The Extensible Stylesheet Language Transformations (XSLT) specification
provides for morphing XML documents into other XML documents. An XML document
can also be transformed into a format other than XML such as HTML or text. An
XSLT processor is required for an XSLT transformation. Some of the commonly
used XSLT processors include Xalan-Java, Oracle XSLT Processor for Java and
the JAXP XSLT transformer. A stylesheet is used to transform an XML document.
The elements of a stylesheet are in the XSLT namespace
http://www.w3.org/1999/XSL/Transform.
With XSLT an XML document may be c... (more)