Web.lab3
Option 282301
Develop an application based on Javaserver Faces Framework, which checks the point of point into a given area on the coordinate plane.
The application should include 2 Facelets School - the start page and the main page of the application, as well as a set of guided beans (Managed Beans) that implement logic on the server side.
The start page should contain the following elements:
- "Hat" containing the student’s name, group number and option number.
- Interactive hours showing the current date and time, updated once every 11 seconds.
- A link that allows you to switch to the main page of the application.
The main page of the application should contain the following elements:
- A set of components for setting the coordinates of the point and radius of the region in accordance with the option of the task. It may be necessary to use additional libraries of components - IceFaces (prefix "ACE") and PrimeFaces (Prefix "P"). If the component allows the introduction of obviously incorrect data (such as, for example, letters in the coordinates of the point or negative radius), then the application must carry out their validation.
- A dynamically updated picture depicting the area on the coordinate plane in accordance with the number of the option and point, the coordinates of which were set by the user. A click on the picture should initiate a scenario that determines the coordinates of a new point and send them to the server to check its entering the region. The color of the points should depend on the fact of hitting / non -playing into the region. The change of radius should also initiate the redrawing of the picture.
- Table with a list of results of previous checks.
- A link that allows you to return to the starting page.
Additional application requirements:
- All results of the audit should be stored in the database running the PostgreSQL DBMS.
- To access the database, you must use ORM Hibernate.
- To control the list of results, Session-Scope Managed Bean should be used.
- The configuration of guided beans should be set using annotations.
- The navigation rules between the pages of the application should be specified in a separate configuration file.

Questions to the protection of laboratory work:
- JavaSERVER FACES technology. Features, differences from the sergete and JSP, advantages and disadvantages. The structure of the JSF application.
- Using JSP pages and Facelets-shapes in JSF applications.
- JSF components - Features of the implementation, the hierarchy of classes. Additional libraries of components. Model for processing events in JSF applications.
- Converters and validators of data.
- Presentation of the JSF page on the server side. UIViewroot class.
- Managed bina - purpose, configuration methods. Context of controlled beans.
- JSF application configuration. FACE FACES-CONFIG.xml. Class Facesservlet.
- Navigation in JSF applications.
- Access to the database from Java applications. The JDBC protocol, the formation of requests, work with DBMS drivers.
- ORM concept. ORM libraries in Java applications. The main API. Integration of ORM providers with JDBC drivers.
- Library of ORM Hibernate and Eclipselink. Features, API, similarities and differences.
- JPA technology. Features, API, integration with ORM providers.