10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components.

Slides:



Advertisements
Similar presentations
9 Copyright © 2005, Oracle. All rights reserved. Modularizing JavaServer Pages Development with Tags.
Advertisements

8 Copyright © 2005, Oracle. All rights reserved. Creating the Web Tier: JavaServer Pages.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Apache Struts Technology
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
DT211/3 Internet Application Development
10 Copyright © 2004, Oracle. All rights reserved. Creating Noninput Items.
DT228/3 Web Development JSP: Directives and Scripting elements.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Java Server Pages Russell Beale. What are Java Server Pages? Separates content from presentation Good to use when lots of HTML to be presented to user,
Apache Struts Technology A MVC Framework for Java Web Applications.
JavaServer Pages TM Introduce by
Introduction to Java web programming Dr Jim Briggs JWP intro1.
Java Enterprise Edition Java Web Development Structure of a web project Introduction to Web Applications The first project Introduction to Java Web Development.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
JSP Standard Tag Library
2 Copyright © 2009, Oracle. All rights reserved. Getting Started with Warehouse Builder.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Using JavaBeans and Custom Tags in JSP Lesson 3B / Slide 1 of 37 J2EE Web Components Pre-assessment Questions 1.The _____________ attribute of a JSP page.
JDeveloper 10g and JavaServer Faces: High-Performance UIs on the Web Avrom Roy-Faderman Senior Programmer May, 2006.
® IBM Software Group © 2007 IBM Corporation JSP Custom Tags
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Stanisław Osiński, 2002JSP – A technology for serving dynamic web content Java Server Pages™ A technology for serving dynamic web content Stanisław Osiński,
JAVA SERVER PAGES CREATING DYNAMIC WEB PAGES USING JAVA James Faeldon CS 119 Enterprise Systems Programming.
Fall CIS 764 Database Systems Design L8. Web ….
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Binding UI Components to Data. Adding UI Components to the Page You can create components on a page by: Dragging a component from the Component Palette.
JSTL Lec Umair©2006, All rights reserved JSTL (ni) Acronym of  JavaServer Pages Standard Tag Library JSTL (like JSP) is a specification, not an.
1 CHAPTER 3 IDE Tools. 2 IDE Tools The chapter discusses the main tools used to create, view, and edit code. It also introduces the major development.
JSP Fundamentals Elements of a JSP Using Beans with JSP Integrating Servlets and JSP.
Copyright © 2002 ProsoftTraining. All rights reserved. JavaServer Pages.
JSTL The JavaServer Pages Standard Tag Library (JSTL) is a collection of useful JSP tags which encapsulates core functionality common to many JSP applications.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
JSP BASICS AND ARCHITECTURE. Goals of JSP Simplify Creation of dynamic pages. Separate Dynamic and Static content.
JAVA BEANS JSP - Standard Tag Library (JSTL) JAVA Enterprise Edition.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Basic JSP Celsina Bignoli Problems with Servlets Servlets contain –request processing, –business logic –response generation all lumped.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 3 1COMP9321, 15s2, Week.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
1 Copyright © 2004, Oracle. All rights reserved. Oracle Application Development Framework.
13 Copyright © 2004, Oracle. All rights reserved. Adding Validation and Error Handling.
4 Copyright © 2004, Oracle. All rights reserved. Creating a Basic Form Module.
11 Copyright © 2004, Oracle. All rights reserved. Customizing Actions.
23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced Features.
14 Copyright © 2004, Oracle. All rights reserved. Enhancing the User Interface.
17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application.
8 Copyright © 2004, Oracle. All rights reserved. Making the Model Secure.
 Java Server Pages (JSP) By Offir Golan. What is JSP?  A technology that allows for the creation of dynamically generated web pages based on HTML, XML,
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
25 Copyright © 2009, Oracle. All rights reserved. Showing Results with Pivot Tables.
21 Copyright © 2009, Oracle. All rights reserved. Working with Oracle Business Intelligence Answers.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
2 Copyright © 2004, Oracle. All rights reserved. ADF Development Process.
12 Copyright © 2004, Oracle. All rights reserved. Using ADF Struts Components.
17 Copyright © 2004, Oracle. All rights reserved. Integrating J2EE Components.
Apache Struts Technology A MVC Framework for Java Web Applications.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED FORMS.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
16 Copyright © 2004, Oracle. All rights reserved. Building ADF UIX View Components.
Working in the Forms Developer Environment
Knowledge Byte In this section, you will learn about:
Presentation transcript:

10 Copyright © 2004, Oracle. All rights reserved. Building ADF View Components

10-2 Copyright © 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe how a JSP works Describe the fundamental components of a JSP Create a JSP Include components into JSP (HTML, Struts, and JSTL tags) Create a data-centric JSP using ADF data binding

10-3 Copyright © 2004, Oracle. All rights reserved. What Is a JSP? JavaServer Pages are a J2EE component, which: Is a “View” in the ADF MVC structure Contains presentation logic Mixes HTML, Java, and XML in a page Enables Web developers to create applications that focus on the “look and feel” of an application Is based on the servlet architecture Supports the use of custom tags and beans to incorporate presentation logic

10-4 Copyright © 2004, Oracle. All rights reserved. JavaServer Pages in ADF Generates Dynamic content Calls ADF Business Components Client Request Response Struts Controls JSP

10-5 Copyright © 2004, Oracle. All rights reserved. Example: JSP Show Date The current time is:

10-6 Copyright © 2004, Oracle. All rights reserved. Basic JSP Elements A JSP can contain HTML text and four main elements: Global values Directives PurposeSyntaxElement Variable declarations Declarations Java code that is evaluated Expressions Java code Hello! Scriptlets

10-7 Copyright © 2004, Oracle. All rights reserved. JSP Directives There are three types of JSP directives: page include taglib The current time is:

10-8 Copyright © 2004, Oracle. All rights reserved.

10-9 Copyright © 2004, Oracle. All rights reserved.

10-10 Copyright © 2004, Oracle. All rights reserved. JDeveloper and JSPs JDeveloper contains several IDE features to simplify JSP development: Visual Editor (WYSIWYG) Component Palette Many Custom Tag libraries are included, including: –JSP Standard Tag Library (JSTL) –Apache Struts –Oracle JSP –ADF Data Tags

10-11 Copyright © 2004, Oracle. All rights reserved. The Visual Editor Provides direct editing of: –Text –HTML elements –Data controls The toolbar contains formatting tools for: –Color –Text size –Format (style) You can drag CSS definitions to a page

10-12 Copyright © 2004, Oracle. All rights reserved. What Are Custom Tags? Custom tags are developed in Java and defined and used with XML syntax. Tags are used in a JSP to reduce or constrain the amount of Java scriptlets in the page. Tags are useful for defining recurring tasks such as accessing a database or sending an . Custom tags are packaged into libraries: –Packaged as.jar files –Defined in a.tld file

10-13 Copyright © 2004, Oracle. All rights reserved. Utilizing Tag Libraries Tag libraries are utilized in a JSP by: Defining the location of the tag library using the taglib directive Creating a prefix to reference the tag library in the JSP Using the prefix to call a tag and specifying attributes as necessary

10-14 Copyright © 2004, Oracle. All rights reserved. JSP Standard Tag Library The JSP Standard Tag Library (JSTL) is being developed under the Java Community Process. It provides a common and standard set of custom tags for: Iteration, conditional processing, and expression language support Parsing and transforming XML documents Formatting and parsing strings, dates, and currencies for internationalization Database access and data manipulation

10-15 Copyright © 2004, Oracle. All rights reserved. Struts Tags The Apache Struts technology contains a custom tag library for use with JSPs. There are several categories of Struts libraries available in the Component Palette, including: Struts HTML Logic Struts Beans Templates Nested Tiles

10-16 Copyright © 2004, Oracle. All rights reserved. Data Binding Tags The Data Control Palette contains objects that are mapped to the workspace’s business components. The controls may be included in the JSP in different formats, depending on the type of model component they represent: –Input Text (Individual Item) –Input Form (Complete View Object) –Button (Operation such as Commit)

10-17 Copyright © 2004, Oracle. All rights reserved. Utilizing the Data Control Palette Drag components from the Data Control Palette to the Visual Editor of a JSP to display data. Use the Drop As list box to select the style of the control.

10-18 Copyright © 2004, Oracle. All rights reserved. How Data Is Displayed <c:forEach var="Row" items="${bindings.OrdersView1.rangeSet}"> … JSTL is used to iterate through and display data: …

10-19 Copyright © 2004, Oracle. All rights reserved. View Object Control Types Use view object component types to display all data in a view object. Drop the view object as one of the following types of controls: Read-Only Form Select Row Link Graph Navigation List Table Dynamic Table Navigation Buttons Input Form

10-20 Copyright © 2004, Oracle. All rights reserved. View Object Item Control Types To display a data control that represents a single view object item, select the item in the Data Control Palette and add it to the JSP as a: Value Label Input Field Password Field

10-21 Copyright © 2004, Oracle. All rights reserved. Operations Operations are data actions that interact with an entire view object or an entire application module. They include: Create: Creates a new row in the view object Find: Navigate to a specific row in the view object Delete: Deletes the current row Execute: Submit a query Navigation sets (First Set, Last Set, First, and Next) Commit: Commits an entire application module Rollback: Rolls back changes on an application module

10-22 Copyright © 2004, Oracle. All rights reserved. Customizing Controls Select View > Property Inspector to modify the control properties. For operations, you may also double-click the button to modify the name and value.

10-23 Copyright © 2004, Oracle. All rights reserved. JSP Versus UIX An ADF view can also be created as a UIX page: More visual components are available in UIX. The Data Control Palette can be used to create data-bound UIX pages.

10-24 Copyright © 2004, Oracle. All rights reserved. Summary In this lesson, you should have learned how to: Create JSP pages that use scriptlets, expressions, and declarations to generate dynamic content Incorporate tag libraries in JSP pages to further the component-centric design of JSP applications Add ADF Business Components to a JSP via the Data Control Palette

10-25 Copyright © 2004, Oracle. All rights reserved. Practice 10-1: Overview This practice covers the following topics: Creating a JSP for user login Creating navigation to another JSP Creating a JSP for editing and inserting customer data

10-26 Copyright © 2004, Oracle. All rights reserved. Practice 10-1

10-27 Copyright © 2004, Oracle. All rights reserved. Practice 10-1

10-28 Copyright © 2004, Oracle. All rights reserved. Practice 10-1