Question: Create a one - page Online Pizza Shop web application to allow a client to order pizza online. What do you need to do: a
Create a onepage Online Pizza Shop web application to allow a client to order pizza online.
What do you need to do:
a This exercise reenforces the concept and importance of model binding.
b Create a onepage Online Pizza Shop web app which resembles the layouts style like the screenshot
below.
c Make sure you display the following information in the textarea html element after a client clicks
the "PreCompute Order" or "Place Order" button the screenshots below:
the Pizza Type, the Pizza Size, the Toppings
the Total amount in Accounting format eg $
Welcome to Cyber online Pizza Shop
Provide a Clear Order button clear any user selections and textarea after it is clicked.
e Both selections of Pizza Size and Pizza Type are required before computing the cost but the
selections of toppings are optional.
f Remember to provide required field validation on the Pizza Size and Pizza Type. Refer to the
screenshot below. And make sure to display the message in Red color.
g In your code, you have to use Model binding to bind those fields to the properties of your domain
entity. However, you can decide what property names of your liking.
I used Order as my domain entity so I just use two parameters in my action method.
h Watch the video about howto validate the online Pizza Shop,
:
i Make sure that the appearance of your app resembles to the ones on the screenshots or in the
demonstration video.
j Verify the correctness of your web app to produce the expected results.
References:
a This example is cited from the book Java Programming from Problem Analysis to Program
Design by Dr DS Malik.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
