® IBM Software Group © 2006 IBM Corporation “Essential” JSF Components and EGL Bindings This Learning Module describes the foundation terms and concepts.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

FrontPage Express By John G. Summerville Ph.D.©, RN.
® IBM Software Group © 2006 IBM Corporation JSF dataTables – Basic Properties and Development Techniques Part I – of a 3-part section on the use of the.
Site Modules > Page Builder Access the Page Builder module through the Site Modules top navigation link. Access Page Builder from the Site Modules navigation.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
® IBM Software Group © 2006 IBM Corporation Additional AJAX Examples and Workshops This learning module provides additional AJAX use cases and examples.
Creating Web Page Forms
® IBM Software Group © 2006 IBM Corporation JSF dataTables – Advanced use of Properties and Development Techniques Part III – of a 3-part section on the.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
® 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)
® IBM Software Group © 2006 IBM Corporation EGL/Web Project QuickStart – 3 of 4 – Creating the U.I. Layer These slides walk you through the process of.
Adobe Forms THE FORM ELEMENT PANEL. Creating a form using the Adobe FormsCentral is a quick and easy way to distribute a variety of forms including surveys.
® IBM Software Group © 2006 IBM Corporation How to read/write XML using EGL This Learning Module shows how to utilize an EGL Library to read/write an XML.
® IBM Software Group © 2006 IBM Corporation JSF Tab Controls This Learning Module shows how to develop server-side EGL applications with dynamic content.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
® IBM Software Group © 2006 IBM Corporation Display contents of a Data Table in Excel right from the browser – No POI needed This section describes how.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
® 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.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
® IBM Software Group © 2006 IBM Corporation JSF Tree Control This Learning Module describes the use of the JSF Tree Control – for hierarchical organization.
® IBM Software Group © 2006 IBM Corporation EGL Programming – Data Parts and Assignment Statements – 4 – Arrays These slides walk you through the terms.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Web Technologies Website Development Trade & Industrial Education
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Dynamic Content Web Pages – for EGL/JSF Developers This unit introduces you to the technical.
IE 411/511: Visual Programming for Industrial Applications
Creating a Web Site to Gather Data and Conduct Research.
Website Development with Dreamweaver
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
Microsoft Expression Web-Illustrated Unit I: Working with Tables.
Dreamweaver CS4 Concepts and Techniques Chapter 4 Forms.
® IBM Software Group © 2006 IBM Corporation JSF/EGL Component Properties Deep Dive This section walks you through the options and settings for JSF Component.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
® IBM Software Group © 2006 IBM Corporation Web JSF Overview – Internet “101” for EGL/JSF Developers This unit introduces you to the technical concepts.
Copyright 2007, Information Builders. Slide 1 Enhancing Maintain Applications with HTML Mark Derwin and Mark Rawls Information Builders.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
0 eCPIC User Training: Dependency Mapper These training materials are owned by the Federal Government. They can be used or modified only by FESCOM member.
® IBM Software Group © 2006 IBM Corporation “Essential” HTML Tags and Page Development Techniques This Learning Module describes the standard HTML tags.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
® IBM Software Group © 2006 IBM Corporation.JSP Page Flow – and Managing State in your Web Application This learning module covers the salient features.
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit H Collecting Data with HTML Forms.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
® IBM Software Group © 2006 IBM Corporation JSF Progress Bar This Learning Module shows how to integrate EGL/JSF functionality into a run-time progress.
® IBM Software Group © 2006 IBM Corporation Individual Cell Coloring – in a JSF dataTable Control You may need to programmatically (using EGL) change the.
® 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.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
® IBM Software Group © 2006 IBM Corporation Finding Out Which Submit Button Was Clicked – and Other JSF Command Button Techniques This section describes.
® IBM Software Group © 2006 IBM Corporation JSF Panel – Section Controls This Learning Module shows how to develop server-side EGL applications with dynamic.
® 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 3 Creating Web Pages with Links, Images, and Formatted Text.
Chapter 12© copyright Janson Industries Java Server Faces ▮ Explain the JSF framework ▮ SDO (service data objects) ▮ Facelets ▮ Pagecode classes.
Creating and Editing a Web Page
Positioning Objects with CSS and Tables
® IBM Software Group © 2006 IBM Corporation Dependent Combo-Box U.I. Development This Learning Module walks you through the options and development techniques.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED FORMS.
® IBM Software Group © 2006 IBM Corporation EGL.CSV (Excel) File Reading and Writing This section describes how to access.CSV (Excel Spreadsheet) files.
® IBM Software Group © 2006 IBM Corporation Create EGL/JSF HelloWorld Pages This learning module walks you through the process of creating two simple “hello.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
System I (AS400) Login You will need to develop Login procedures for your web applications. This short section describes how to do this for System I.
Unit I: Collecting Data with Forms
System I (AS400) Login You will need to develop Login procedures for your web applications. This short section describes how to do this for System I.
Presentation transcript:

® IBM Software Group © 2006 IBM Corporation “Essential” JSF Components and EGL Bindings This Learning Module describes the foundation terms and concepts necessary for doing EGL/JSF web sites.

2 Last update: 12/04/2007 Course  Course Setup  Web/JSF Overview  JSF Properties Deep Dive Essential JSF Components  Essential JSF Components  Additional JSF Components  JSF dataTables  HTML and Page Design  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:  List the various JSF components provided with RBD  Use the following JSF controls to design, develop, and customize a JSF page:  Text Controls  Selection Controls  List Controls  Submit (command) Controls  Images  Error Handling Controls  Bind the JSF components to EGL variables  Create your own Siteuser login/registration page

4 Last update: 12/04/2007 JSF Components - Overview A s of this writing, RBD ships with well over forty (40) JSF components   But only twenty or so are commonly used on pages and in forms  We’ll look at the essential or commonly used components in this unit

5 Last update: 12/04/2007 Steps in Explicit JSF Page Design and Development  As has been discussed, Implicit Page Design - where you drag & drop EGL variables from Page Data to CREATE new JSF controls - will be the exception – not the rule for your production pages.  Explicit Design – where you explicitly lay the page out using HTML tables, drag JSF Components into table cells then bind EGL variables to the JSF components will be the rule – or standard page development methodology.

6 Last update: 12/04/2007 Create the formcontrols.jsp Page  Create the formcontrols.jsp Page  (From Project Explorer) Right-Click over \WebContent\ and select: New  Web Page  Name the page: formcontrols.jsp – create it using the A_gray template  Change the page header text to: A standard web form - and all of the JSF Components you would normally use  From the Palette - HTML tags, add an HTML table  Rows: 7  Columns: 4  Table width: 100 %

7 Last update: 12/04/2007 Design the Table – Add Static Elements – 1 of 3  Design the Table – Add Static Elements – 1 of 3 (From the Snapshot below)  Add the text and line breaks  shown in each cell. Don’t fuss over getting things exact – and you will need to manipulate (slide and size) the columns to approximately what’s shown   Hover your mouse over the left column until the cursor points down  and left-click to select  Change the left-hand column: Center  Horizontal alignment: Center, #e9e9e9  Color: #e9e9e9

8 Last update: 12/04/2007 Design the Table – Add Static Elements – 2 of 3  Design the Table – Add Static Elements – 2 of 3 With the Left-Hand column still in focus (if it’s not, reselect the left-hand column again)  Click the Text sub-tab of Properties (shown below outlined in red)  Make the Text:  Bold  Smaller font  Optionally –  Optionally – select just the top left cell text  Make it a larger font size

9 Last update: 12/04/2007 Design the Table – Add Static Elements – 3 of 3  Design the Table – Add Static Elements – 3 of 3  Holding the Ctrl-key down, Left-Click (select) the three columns of the top row shown below  Right click and select: Table > Join Selected Cells color  Click your mouse into the new cell and from its properties, change the color to:#e9e9e9

10 Last update: 12/04/2007 Modify the Default JSF Handler  Modify the Default JSF Handler  Edit the JSFHandler code for this page  Add the two variables and their initialized values shown in the screen capture: Ctrl/S  Press Ctrl/S to save  Note the code for the JSFHandler is in the Notes section of this slide

11 Last update: 12/04/2007 Add the Text Fields  Add the Text Fields  From the Palette/Enhanced Faces Components drawer Drag and Drop the three controls shown below into the table cells Input  Single line input text: Input Input – Text Area  Multi-line input text area: Input – Text Area Output  Output text: Output Page Data  From Page Data – select, drag and drop outputText – string on top of the Output Faces Component

12 Last update: 12/04/2007 Add Selection Controls  Add Selection Controls  From the Palette/Enhanced Faces Components drawer Drag and Drop the three controls shown below into the table cells  Single Check Box: Check Box  Check Box Group: Check Box Group  Radio Button Set: Radio Button Group  Important Note: All hard-coded literal values entered manually for the Selection Controls: Check Box Groups and Radio Button Groups will return an EGL string or char(...) variable data type. Even if you enter ordinal numbers as the value for the selection (1, 2, 3, …)

13 Last update: 12/04/2007 Customize the Selection Controls’ Properties  Customize the Selection Controls’ Properties  For the Check Box Group, and Radio Button Group do the following:  Select (set focus to) each control (separately)  From Properties,  Click Add Choice and customize the Name and Value:  For the Check Box Group   F or the Radio Button Set 

14 Last update: 12/04/2007 List Controls  List Controls  From the Palette/Enhanced Faces Components drawer Drag and Drop the three controls shown below into the table cells  Combo Box: Combo Box  Single Select List Box: List Box – Single Select  Multi-Select List Box: List Box Multiple Select  Important Note: All hard-coded literal values entered manually for the List Controls: Combo Box and Single/Multiple Select lists will return an EGL string or char(…) variable data type. Even if you enter ordinal numbers as the value for the selection (1, 2, 3, …)

15 Last update: 12/04/2007 Customize the List Controls’ Properties  Customize the List Controls’ Properties  For the Combo Box, Single and Multiple Selection List Boxes do the following  Select (set focus to) each control (separately)  From Properties,  Click Add Choice and customize the Label and Value:  For the Combo Box Group   For the Single Selection List Box   For the Multiple Selection List Box 

16 Last update: 12/04/2007 Submit and Reset Controls  Submit and Reset Controls  Add the following controls from the Enhanced Faces Palette  Submit Button: Button – Command  Reset Button: Button – Command  From Properties select:  Reset  Command Link – Link- Command

17 Last update: 12/04/2007 Graphic Controls - 1 of 2  Graphic Controls - 1 of 2  Add the following controls:  From Project Explorer, expand: WebContent\images\. Select drag and drop ibm.gif into Static Graphic  From the Enhanced Faces Palette  Drag an Image control into both of the JSF image areas

18 Last update: 12/04/2007 Graphic Controls - 2 of 2  Graphic Controls - 2 of 2  For the statically bound Image control:  Set focus to (select the control)  From Properties  For the File: click the folder icon and browse to an image in \WebContent\images\   For the dynamically bound Image control:  Set focus to (select the control)  From Properties  For the File: click the folder icon  Select Bind… dynBoundGraphic  Select dynBoundGraphic

19 Last update: 12/04/2007 Add Error Message Components  Add Error Message Components  From the Enhanced Faces Components drawer  Drag Display Error (singular) into the Single field Error Message cell  Drag Display Errors into the Global (Form) Error Messages cell  Bind the Single Field Error Message to its control  Select the Error Message control  From Properties text1  Select id: text1

20 Last update: 12/04/2007 Test the Page  Test the Page  Run the page on the server.  Note the selection and functionality of the controls

21 Last update: 12/04/2007 Binding the JSF Components to EGL Data Values  So we now can create standard forms with JSF components.  But we need to be able to:  Sending pages – from the JSFHandler  Read database values – or file record values, or some other state values  Process those values  Bind the server-side values to the JSF components, before rendering them on the form  Receiving pages – into the JSFHandler  Obtain the values entered onto a form – in EGL data value format  Process the values  Transfer control (if need be) JSFHandler Server-side values sent/received from Form to JSFHandler The “cool” thing? EGL takes care of all the Presentation Logic needed to handle formatting data, casting it (REDEFINING) types, etc. between your pages and your JSFHandler.

22 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – JSFHandler Code  Bind the JSF Components to EGL Data Values – JSFHandler Code Completely replace  From the code in the ***Notes section, copy and paste new JSFHandler code into your formcontrols.egl file. Completely replace all of your existing statements. Then:  Press Ctrl/S  Press Ctrl/S – to save and generate  Make sure there are no EGL syntax errors  Close both:  formcontrols.jsp  Formcontrols.egl (From Project Explorer) - Reopen:  formcontrols.jsp  Formcontrols.egl … Why?  If you copy/paste code into a JSFHandler when the.JSP page it’s responsible for is open, the Page Data view will not be “synchronized” with the EGL code editor.  By simply closing and reopening both files, this will synch-things up. This behavior does not happen when you code things or use Content Assist – only when you copy/paste. Which you will do in this course, from time-to- time.

23 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – Text Controls  Bind the JSF Components to EGL Data Values – Text Controls By dragging/dropping JSFHandler Page Data variables on top of JSF Text components in Page Designer, you bind the EGL server-side data variable to the JSF Value for the control.  Data from the EGL JSFHandler will be formatted for rendering on the page  Data from the Form will be formatted according to the EGL data type bound to the control, upon Submit back to your JSFHandler  From Page Designer (open to formcontrols.jsp) – from Page Data:  Drag inputText on top of input control  Drag multiLineText on top of the Text Area  EGL Datatypes available to bind to input text, output text and Multi-line text controls include:  BIGINT, BIN, BOOLEAN, CHAR, CLOB, DATE, DBCHAR, DECIMAL, FLOAT, HEX, INT, INTERVAL, MBCHAR, MONEY, NUM, NUMC, PACF, SMALLFLOAT, SMALLINT, STRING, TIME, TIMESTAMP, UNICODE *** Notes

24 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – Selection Controls  Bind the JSF Components to EGL Data Values – Selection Controls By dragging/dropping JSFHandler Page Data variables on top of JSF selection controls in Page Designer, you bind the EGL server-side data variable to the JSF Value  Data from the EGL JSFHandler will select the value – upon rendering the page  User selection(s) from the Form will be formatted into EGL data types in your JSFHandler  From Page Designer (open to formcontrols.jsp) – from Page Data:  Drag chkBox on top of the (single) Check Box control  Drag chkBoxMultiSel on top of the Check Box Group  Drag rbSel on top of the Radio Button Group  EGL Datatypes available to bind to single check box controls are: boolean  EGL Datatype available to bind to Radio Button groups are: String  EGL Datatype available to bind to the CheckBox Group is a dynamic array of strings.  The EGL framework will add string-entries into the array – one for check-box selected  The actual Value (from the JSF properties) will be returned into the array (in our case, the ordinal numbers)

25 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – List Controls  Bind the JSF Components to EGL Data Values – List Controls By dragging/dropping JSFHandler Page Data variables on top of JSF List controls in Page Designer, you bind the EGL server-side data variable to the JSF Value  Data from the EGL JSFHandler will select the value – upon rendering the page  User selection(s) from the Form will be formatted into EGL data types in your JSFHandler  From Page Designer (open to formcontrols.jsp) – from Page Data:  Drag comboSel on top of the Combo Box control  Drag listSingleSel on top of the Single Selection List Box  Drag listMultiSel on top of the Multiple Selection List Box  EGL Datatypes available to bind to Combo Boxes and single selection lists include:  BIGINT, BIN, BOOLEAN, CHAR, CLOB, DATE, DBCHAR, DECIMAL, FLOAT, HEX, INT, INTERVAL, MBCHAR, MONEY, NUM, NUMC, PACF, SMALLFLOAT, SMALLINT, STRING, TIME, TIMESTAMP, UNICODE  EGL Datatypes available to bind to the multiple select lists is a dynamic array of strings.  The EGL framework will add string-entries into the array – one for list entry selected  The selected entries (from the JSF properties) will be returned into the array

26 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – Submit Buttons  Bind the JSF Components to EGL Data Values – Submit Buttons  By dragging/dropping JSFHandler Page Data functions on top of JSF Submit Button controls in Page Designer, you bind the EGL server-side function to the JSF Component  I.E. When the button is pressed, the function is executed.  From Page Designer (still open to formcontrols.jsp) … From Page Data:  Drag showSelected() on top of the Submit Button control

27 Last update: 12/04/2007 Bind the JSF Components to EGL Data Values – Command Link Controls  Bind the JSF Components to EGL Data Values – Command Link Controls  JSF Command Link controls can also be bound to EGL server-side functions (here’s how)  From Page Designer - Select the “Command Link” on the page  From the Properties/All Attributes Tab: -Find the “action” Attribute Name -From the Value column, click the button and bind the command link to the JSFHandler’s forwardToAllCustomers() function

28 Last update: 12/04/2007 Add the allSelectedValues control to the page  Add the allSelectedValues control to the page allSelectedValues In the JSFHandler, a new string variable (allSelectedValues) is assigned the concatenated group of user-selections (along with some explanatory literal text)  Do the following  Create a new JSF output field for this variable and bind it.  From Page Designer, in the Palette/Enhanced Faces Components  Drag and drop an output field to the top row of the HTML table allSelectedValues  From Page Data: Drag and drop allSelectedValues on top of the new output control outputTextBold  From the Properties view (with the control selected) Change the field’s class to outputTextBold

29 Last update: 12/04/2007 Run the Page  Run the Page  Run the page. Enter – and select values for the controls, and press the Submit Button. Inspect the allSelectedValues output field. Also press the Command Link (you should launch allcustomers2.jsp)

30 Last update: 12/04/2007 Initialize Values Before Rendering the Page – 1 of 2  Initialize Values Before Rendering the Page – 1 of 2 Often you will want to initialize values for JSF controls BEFORE rendering a page. This is very easy to accomplish: formcontrols.egl  From formcontrols.egl add the following code to the onConstruction() function (note that you may copy/paste this from the Notes section of the slides)  Press Ctrl/S to save before continuing. Note in the above that multi-selection list controls require you to add - appendElement(…) rows into the dynamic array bound to that control’s value.

31 Last update: 12/04/2007 Initialize Values Before Rendering the Page – 2 of 2  Initialize Values Before Rendering the Page – 2 of 2  Run the page. Note the initialized and pre-selected values in the controls  JSFHandler initial values

32 Last update: 12/04/2007 Optional Workshop – SiteUserLogin – 1 of 2  Optional Workshop – SiteUserLogin – 1 of 2  Using the screen captures below, and the JSFHandler code (in the Notes) to create the following standard login type page. You can try to replicate this closely, or you can be more creative and original. If replicating closely, here are some hints:  HTML table – 4 rows by 2 columns. No (0) border. Centered on the page, Background color: #999999, Horizontally center the control in the page  Custom Submit Button class in stylesheet.css  Form properties set to allow: Enter to act as Click Enter to act as Click Set focus to UserId Set focus to UserId Note: the color: # Matches the A_Gray template Color. Look in gray.css

33 Last update: 12/04/2007 Optional Workshop - SiteUserLogin – 2 of 2  Optional Workshop - SiteUserLogin – 2 of 2  Run the page.  Attempt valid login: a/a  Test with invalid login: a/b

34 Last update: 12/04/2007  Optional Workshop – SiteUser Registration – EGL/JSFHandler Code  You will create a new Web Page to register Site Users. It will use many of the controls you just worked with, but in a more recognizable, business-oriented way.  The JSFHandler code is in the notes on the next slide – as is a screen capture of the web page  Before Creating the page and adding the JSF code (in the notes) do the following: DataDefintions.egl  Open DataDefintions.egl {isBoolean=yes} ReceiveUpdates JoinClub  Add an {isBoolean=yes} property to ReceiveUpdates and JoinClub (note that isBoolean will force the web tooling to create a checkbox for the fields, when dragged on top of Page Designer - next slide) Ctrl/S  Save Ctrl/S your changes and continue.

35 Last update: 12/04/2007  Optional Workshop – SiteUser Registration – Base Page  Create a new Web Page to register Site Users. The JSFHandler code is below. Note that you may create a custom web page or try to emulate the following design:  HTML table – 3 rows by 1 column, Centered on the page, No (0) border, 70% width  Drag and Drop the SiteUserUI record into the top table row – customize as follows:  Updating an existing record  Do not add SiteUserID (that value will be computed by server-side process in the JSFHandler)  Password and RepeatPassWord should be control type: Secret Input Field  Add all of the other fields  Make the cosmetic changes to the HTML table  –1 st column –Light gray: #eeeeee –Right-justified –Bold/Smaller text

36 Last update: 12/04/2007  Optional Workshop – SiteUser Registration U.I. Customization From the Palette:  Delete the State field and substitute a Combo-Box control – with hard- coded state names/state abbreviation properties  Delete the SuType field and substitute a Radio Button Group  You will need to either: - Bind a submit button to: registerMe …or… - Drag registerMe onto the page (whereupon it will create a new submit button)  Note the horizontal rule in the 2 nd row Optionally- - Make Zip a required field - Display validation error messages - Accepting 5 digits only - Add a Display Error component - Bound to Password (secret1)

37 Last update: 12/04/2007 Optional Workshop – Run Site User Registration  Optional Workshop – Run Site User Registration  Run the page, and test the use cases:  No zip  Bad zip  Password/Repeat passwords not the same  Good (successful) Registration  If you have time – feel free to add other edits – either through the JSF validations or through EGL business logic. OPTIONAL  In order to see the results, you may want to create an “allsiteusers.jsp” page 

38 Last update: 12/04/2007  Now that you have completed this unit, you should have:  Listed the various JSF components provided with RBD  Used the following JSF controls to design, develop, and customize a JSF page:  Text Controls  Selection Controls  List Controls  Submit (command) Controls  Images  Error Handling Controls  Bound the JSF components to EGL variables  (maybe had time to) create your own Site userlogin/registration page Unit Summary