Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Introduction

This assignment is the first of five assignments, in which you will gradually build up the web site for your term project.

It is meant to give you practice in creating templates for the pages on your site, based on facelets in JSF.

It will also allow you to begin the process of implementing the pages on your site by creating several prototype content pages that will use your templates, including:
• A home page for your site.

• A page that allows the user to create a new type of item.

• A page listing the items the user can select (initially this will just be a stub).

You will also begin implementing some of the underlying logic for your site. Specifically, you will begin creating a managed bean for the site.

Facelets/Master page for Formatting

You should begin by designing and creating a template for your site, using a facelet template page. I strongly suggest that you do this first, since it is much easier to add content pages to an existing template, rather than creating the content pages first and then adapting them to your template.

Your template is required to contain the following:

• The name of your (fictional) organization. It should be in a larger font than the rest of the content, along with an image of some sort.

• A set of links to the major pages on your site. This is to include:

o The "home page" of your site.

o The "new item" page.

o The "item selection" page.

• A content area where the specific page content will be displayed.

You are also required to put these things in different areas of your template. For example:

I also encourage you to be creative about your design. If you are familiar with CSS, I encourage you to add CSS to your site (or to manipulate the built-in CSS of the facelet template).

1687_11.png

Prototype Pages

Most web sites (or other types of software) are never implemented all at once. Instead, a few prototypes of the major pages are created first, in order to see how they would look in the context of the web site as a whole, and to possibly get feedback from potential customers (such as myself).

You will be developing three such pages as part of this initial project. However, if you wish to start developing other pages on your site, feel free to begin those as well.

These page should all be template client page, using the facelet template you created above.

Home Page

Since this will be the simplest page that you create, I strongly encourage you build it first after creating your templates. It should contain the following:
• A simple "welcome message" for your site, briefly explaining the purpose of your site to users.

• Anything else you think would be appropriate for this page (images, etc.).

To simplify things, it should be the default page the user goes to on your site, index.xhtml.

Item Selection Page

The next page should display a list of products/services/choice/etc. - that is the "list of things" that your customer will have to choose from.

However, we will not actually implement this until Project Assignment 3, in which we will actually define the support class representing the items on your site. For now, you can just create a very simple "stub page":

1643_22.png

The "Create New Item" Page

This page should allow the user to enter all information necessary to create a new instance of the items your site supports.

As an example, my "widget" site allows a user (presumably an administrator) to define the following attributes about a new type of widget:

• The type of widget (a String).

• The price of that type of widget (a number).

• The color of the widget (either red, orange, yellow, green, blue, or purple).

1776_33.png

The exact nature of your page will vary greatly, based on the type of item your site sells/rents/etc. However, you are required to have inputs for the following:

• At least one field that enters numeric input.

• At least one field that is a list of some sort (such as the color list above).

You can add a button (such as the one I have above) that allows the information to be submitted. However, it does not have to do anything for this assignment (we will actually use it in the next assignment, where the information entered by the user is validated.

Creating a Managed Bean

You are also to begin creation of the managed bean that your JSF pages will communicate with.

For now, it is required to contain member variables (as well as corresponding getters and setters) for each property of your items. For example, my Widget bean contains member variables for type, price, and color.

The form elements on your "create new item" page should be bound to these member variables.

Finally, the elements of the "list" input element must be generated as an array of selectItem in the bean. The list itself should then be populated

using a single

As before, you can find the source code as a subdirectory of the NewBeans Projects directory of Documents. Please use a zip program such as gzip to compress the entire directory and send it to me.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91414328
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Programming Language

Assignmentquestion onegiving the following code snippet

Assignment Question One Giving the following code snippet. What kind of errors you will get and how can you correct it. A. public class HelloJava { public static void main(String args[]) { int x=10; int y=2; System.out.p ...

1 write a function named check that has three parameters

1. Write a function named check () that has three parameters. The first parameter should accept an integer number, andthe second and third parameters should accept a double-precision number. The function body should just ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Question 1 what is a computer program what is structured

Question: 1. What is a Computer program? What is structured programming? 2. What is modular programming? Why we use it? 3. Please evaluate Sin (x) by infinite series. Then write an algorithm to implement it with up to th ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As