JSF.pdf

(188 KB) Pobierz
Microsoft PowerPoint - JSF
Java Server Faces
15 June 2004
28686665.002.png
Agenda
• Java Server Faces !!
28686665.003.png
JSR-127
• Simplify building Java Server application GUI’s
• Single component framework for JSP/Servlets
• Comprehensive support for internationalization and basic
input validation
• Provide a JavaBeans model for dispatching events from
client-side GUI controls to server-side application
behavior
• Define a set of simple lightweight Java base classes for
GUI components, component state, and input events
• Unify what's become a fragmented area and strengthen
support in tools and other third party products.
28686665.004.png
Features
• Handling of UI components between requests
• Consideration of markup features supported by the
client/browser
• Support for processing forms
• Strictly-typed event model
• Transformation of data on the page (Strings) into the
models' corresponding data types
• User-friendly exception handling
• Navigation between pages based on UI events and
interaction with data models
28686665.005.png
UI Component Model
• UICommand: Represents a control that fires actions when activated
• UIForm: Encapsulates a group of controls that submit data to the
application.
• UIGraphic: Displays an image.
• UIInput: Takes text input from a user (e.g. input element in HTML).
• UIOutput: Displays text output on a page.
• UIPanel: Displays a table.
• UIParameter: Represents substitution parameters.
• UISelectItem: Represents a single item in a set of items.
• UISelectItems: Represents an entire set of items.
• UISelectBoolean: Allows a user to set a Boolean value on a control
• UISelectMany: Allows a user to select multiple items from a group
• UISelectOne: Allows a user to select one item out of a group
28686665.001.png
Zgłoś jeśli naruszono regulamin