® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Internet “101” for EGL/JSF Developers This unit introduces you to the technical concepts.

Slides:



Advertisements
Similar presentations
4.01 How Web Pages Work.
Advertisements

Understand Web Page Development Software Development Fundamentals LESSON 4.1.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
CIS101 Introduction to Computing Week 05. Agenda Your questions Exam next week - Excel Introduction to the Internet & HTML Online HTML Resources Using.
® IBM Software Group © 2006 IBM Corporation Additional AJAX Examples and Workshops This learning module provides additional AJAX use cases and examples.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
The Internet 8th Edition Tutorial 1 Browser Basics.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
® IBM Software Group © 2006 IBM Corporation JSF dataTables – Advanced use of Properties and Development Techniques Part III – of a 3-part section on the.
Internet Basics.
CIS101 Introduction to Computing Week 06. Agenda Your questions Excel Exam during second hour Our status after the snow day Introduction to the Internet.
® IBM Software Group © 2006 IBM Corporation The Eclipse Data Perspective and Database Explorer This section describes how to use the Eclipse Data Perspective,
® IBM Software Group © 2006 IBM Corporation JSF Menu Component How to create and use JSF Menu components to add custom static and programmatic (dynamic)
HTML 1 Introduction to HTML. 2 Objectives Describe the Internet and its associated key terms Describe the World Wide Web and its associated key terms.
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
Getting Started with Dreamweaver
INTRODUCTION TO WEB DATABASE PROGRAMMING
® IBM Software Group © 2006 IBM Corporation JavaScript – and EGL and.JSP Pages This learning module describes the use of JavaScript in your EGL and.JSP.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
® IBM Software Group © 2006 IBM Corporation JSF Tree Control This Learning Module describes the use of the JSF Tree Control – for hierarchical organization.
Web Technologies Website Development Trade & Industrial Education
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Dynamic Content Web Pages – for EGL/JSF Developers This unit introduces you to the technical.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
® IBM Software Group © 2006 IBM Corporation JSF/EGL Component Properties Deep Dive This section walks you through the options and settings for JSF Component.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 1 1 Browser Basics Introduction to the Web and Web Browser Software Tutorial.
Web Engineering we define Web Engineering as follows: 1) Web Engineering is the application of systematic and proven approaches (concepts, methods, techniques,
® IBM Software Group © 2006 IBM Corporation “Essential” HTML Tags and Page Development Techniques This Learning Module describes the standard HTML tags.
® IBM Software Group © 2006 IBM Corporation.JSP Page Flow – and Managing State in your Web Application This learning module covers the salient features.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
® IBM Software Group © 2006 IBM Corporation Individual Cell Coloring – in a JSF dataTable Control You may need to programmatically (using EGL) change the.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
® IBM Software Group © 2006 IBM Corporation Using JSF Mini-Calendar Controls This section describes how to use a JSF Mini-Calendar Control with EGL It.
® IBM Software Group © 2006 IBM Corporation JSF File Upload Control This Learning Module describes the use of the JSF File Upload component – for allowing.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – RBD Tooling – for Web Development This unit introduces you to the aspects of the RBD tooling.
® IBM Software Group © 2006 IBM Corporation “Essential” JSF Components and EGL Bindings This Learning Module describes the foundation terms and concepts.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Living Online Lesson 3 Using the Internet IC3 Basics Internet and Computing Core Certification Ambrose, Bergerud, Buscge, Morrison, Wells-Pusins.
® IBM Software Group © 2006 IBM Corporation Finding Out Which Submit Button Was Clicked – and Other JSF Command Button Techniques This section describes.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
® IBM Software Group © 2006 IBM Corporation JSF Panel – Section Controls This Learning Module shows how to develop server-side EGL applications with dynamic.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
® IBM Software Group © 2006 IBM Corporation JSF Rich Text Area Component This Learning Module describes the use of the JSF Rich Text Area component – for.
HTML Concepts and Techniques Fifth Edition Chapter 1 Introduction to HTML.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
Introduction to HTML 4.0 Getting Started – Basic Terminology Teacher: Mr. Ho.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Getting Started with Dreamweaver
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Distributed Control and Measurement via the Internet
Objective % Select and utilize tools to design and develop websites.
Chapter 1 Introduction to HTML.
Objective % Select and utilize tools to design and develop websites.
Getting Started with Dreamweaver
4.01 How Web Pages Work.
Presentation transcript:

® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Internet “101” for EGL/JSF Developers This unit introduces you to the technical concepts of the Internet, for the JSF and EGL web application development you’ll be learning how to do in these tutorials.

2 Last update: 12/04/2007 Course  Course Setup Web/JSF Overview  Web/JSF Overview  JSF Properties Deep Dive  Essential JSF Components  Additional JSF Components  JSF dataTables  Page Flow and State Management  AJAX Controls and JavaScript  JSF Component Tree and Dynamic Property Setting  Web-Site Design and Template Pages  Appendices  Internationalization  Page Design Best Practices  Additional Use Cases Units: JSF/EGL Web Page and Site Design and Development

3 Last update: 12/04/2007 Unit Objectives  At the end of this unit, you will be able to:  Define and describe the following elements of Web Programming:  EGL and Web Pages- Architectural view  Terms and concepts in Internet such as URL, HTML,.CSS

4 Last update: 12/04/2007 Topic Objectives  Sub-topics for this section:  Internet “101”  Lifecycle of a request and response  URL/URI  Browser technology .CSS  Dynamic Content Web Pages  Terms and concepts  JSPs and Servlets  JSF –Terms and concepts –Lifecycle  EGL and JSF  Faces-config.xml  RBD JSF/Web/EGL Tooling  Template pages  Customizing the palette

5 Last update: 12/04/2007 The Internet 101 – Terms and Concepts  Request/Response Lifecycle  Request/Response Lifecycle: Uniform Resource Locator  Connect to a TCP/IP network:  Through your ISP - internet  Through an intranet/extranet  Enter a logical URL/URI address – press “GO” in the browser to make a request:   A global-database receives the request  And resolves the logical address into a physical address of a server that can respond to the request by either:  Serving a page  Passing the request to an application that can respond (dynamic data content web application)  If a dynamic content application, your EGL JSFHandler eventually gets control of the request (through a JSF framework), and processes it  And returns data (bound to JSF components) which end up processed by the JSF framework (Java) classes – which emits HTML and sends a response (reply) back to the user’s PC

6 Last update: 12/04/2007 What’s in a URL (Uniform Resource Locator)  Uniform Resource Locator (URL) is a technical, internet-term used as a synonym for Uniform Resource Identifier (URI) – which is used by your browser to access and retrieve:  Documents, Pages, Graphics …from a unique address of a network-based application or web server connected to the internet Here is a sample URI dissected:  “ ” tells the web browser to make a request on port 80 of type HTTP. www  “ www ” tells the browser to connect to a DNS (Domain Name Server) on the world wide web. ibm.com  Once connected to the DNS server, the hypertext, or “ ibm.com ” is resolved to an IP address. This IP address is returned to the client browser which then makes a direct connection to the web server. Here is a more interesting URI: Localhost:9081Localhost:9081 = “this computer” listen on part 9081 (defined for WebSphere) /EGLweb//EGLweb/ = “the root directory of the application” /updatecustomer.faces//updatecustomer.faces/ = “launch the JavaBean associated with the managed-bean “updatecustomer2” defined in faces-config” (note the.faces tells the web server to do this) cid=3cid=3 = “pass this JavaBean a request parameter named=cid, assign it the value=3”

7 Last update: 12/04/2007 Browser The browser (Internet Explorer, Firefox, Netscape, Mozilla, etc.). Browser software:  Understands and can render HTML on the user’s PC  Understands and can execute JavaScript – on the user’s machine (called “client/side” processing)  Understands and can execute AJAX commands on the user’s machine  More on AJAX coming up later in this course

8 Last update: 12/04/2007 The Importance of Testing Your Pages Using Different Browsers  Very important! Note the screen captures below. The page on the left was rendered in IE 6. The exact same page on the right, rendered using Mozilla’s Firefox.  In this case, the differences are cosmetic. However, there are documented operational differences between these two common browsers (obviously a concern!) IE6 and IE7   FireFox

9 Last update: 12/04/2007 Cascading Style Sheet (.CSS file) Found under \WebContent\theme\ Style Classes Style Class preview

10 Last update: 12/04/2007 Customize your.CSS File  Customize your.CSS File  Open stylesheet.css  Find the outputText class. outputTextBold  Copy/paste it and change its name to:.outputTextBold  Using Content Assist add the attributes shown within the class  Save your changes: Ctrl/S  Close the.CSS file – from the Content Area

11 Last update: 12/04/2007 Use your new.CSS entry in a page  Use your new.CSS entry in a page  From Page Designer, open allcustomers.jsp  Select each of the column headers and change its Properties/Classes entry to: outputTextBold  Run allcustomers.jsp on Server – and note the bold headings for the columns. i.e. Select allcustomers.jsp, Run As -> Run on Server

12 Last update: 12/04/2007 Optional.CSS Workshop One – Justifying Column Headers In a dataTable  Optional.CSS Workshop One – Justifying Column Headers In a dataTable  You’ve noticed that the dataTable column headers are currently center-aligned. What if you wished to left-or right-justify them? No problem-O. From \WebContent\theme\  Open stylesheet.css Scroll to find:.headerClass { Add to the following new attribute: text-align: left;  Run allcustomers.jsp on Server and note the column heading justification (We’ve abbreviated FName/LName in order to show the feature)

13 Last update: 12/04/2007 Optional.CSS Workshop Two – Customizing a Submit Button with a Graphic  Optional.CSS Workshop Two – Customizing a Submit Button with a Graphic You may wish to use images for Submit Buttons. On the updatecustomer.jsp, You can do this in two ways: 1. For complete image/button substitution, simply select the button, and from Properties, specify images: 2. For background image substitution, from the.CSS file, Add a new entry with background-image as a URL And note that you may want to change the font and color.commandExButtonGraphic { background: url("../images/Login.JPG"); font-weight: bold; color: #445544; }.CSS Entry

14 Last update: 12/04/2007  Optional (advanced).CSS Topic – Dynamic.CSS File Management  You may have a scenario where you need to supply an entirely different.CSS file, based on each individual user’s login preferences (say, if these preferences were stored in the database, each user needs their own.CSS file). One way of solving this requirement is as follows (also, reads the Notes***) 1.Inside of your application’s.JTPL/.HTPL (template pages), add the following JSP expression (scriptlet): Note that you can put this text near the top of the file, in Source edit mode 2. In your Login page (.egl), set the “cssFolder” session attribute to the name of a folder that exists under \WebContent\ which contains the customized artifacts (in our case a \theme\ sub-folder, and stylesheet.css file <% if ((session.getAttribute("cssFolder") == null )) {session.setAttribute("cssFolder","default");}%> ' 'title="Style">