
Learn the foundations of Java Server Faces (JSF), including the lifecycle, components, and deployment with GlassFish. Build a JSF web app with login, validations, Google Maps, and Yahoo weather mashups.
Explore the tools used in the course, including NetBeans, GlassFish, and phpMyAdmin. Understand JSF as a server-side, component-based framework that generates user interfaces and handles events within an MVC design.
Build your first JSF application part 2 by creating a form with a submit button, validating input, and navigating to a home page using annotation-based managed beans.
Wire a managed bean with the value attribute and expression language to update a username in request scope; explore web.xml deployment descriptor and development mode for verbose stack traces.
Learn how to include external resources in a JSF app by organizing CSS, JavaScript, and images under a resources folder, and linking them with outputStyleSheet and outputScript tags.
Learn how to create reusable templates in JavaServer Faces (JSF) using the facelifts library, with insert and composition tags to override content, manage resources, and save development time.
Set explicit request headers to define the content type JSF outputs, ensuring browsers interpret the html produced by JSF correctly and improving search engine optimization.
Explore java beans and managed beans in JSF, highlighting serializable objects with private properties, getters/setters, and session-scoped annotation.
Learn how to define a managed bean with a private user property, instantiate it via post construct to avoid null pointers, and navigate to a welcome page using JSF.
Learn how to replace classic JSF managed beans with CDI in a Weld-based environment, using the named notation, CDI scopes, and session scope.
Explore JSF scopes and dependency injection, comparing CDI and JSF managed beans, and learn how session, request, view, flow, and application scopes shape bean lifecycles.
Access external managed beans easily by using faces context to evaluate expressions and retrieve beans from the application scope, with demonstrations of view and request scopes and binding properties.
Explore implicit and rule-based navigation in JavaServer Faces, including configuring navigation rules in faces-config, using from view id, from action, and from outcome, and choosing redirect or forward.
Learn to manage JSF exceptions by creating a custom exception handler and factory, registering them in faces config, and redirecting users to a friendly error page.
Learn how JSF handles data conversions with implicit, explicit, and custom converters, including building a location converter with formatting, validation, and error messaging.
Explore how to implement input validations in JSF from scratch, using built-in validators and custom validators. Learn how to customize messages and enable global localization with properties.
Learn how to prioritize validations in JSF using the immediate attribute on inputs and commands, skip validations for cancel actions, and use action listeners to influence navigation and rendering.
Learn to implement a phase listener in JSF to validate a user after restore view, manage the HTTP session, and redirect between login and welcome pages.
Create a global input validator in JSF by implementing a system event listener that applies validation and styling to input fields, including text and password, via input events.
Explore how view parameters in JSF 2.0 enable bookmarkable, addressable pages by passing URL parameters to managed beans, binding them via the core library, and supporting validation and conversion.
Learn how to use the JSF 2.2 resource library contract to apply multiple templates, package them as jars, and dynamically switch contracts with a managed bean.
The lecture introduces the view action tag in JSF 2.2, showing how to run actions and load data before rendering using view parameters to navigate to a profile page.
Explore uploading images in a JSF 2.2 app using multipart form data, input file, and the Part object; learn to store uploads via an application-scoped database bean and image entity.
Learn how JSF handles web requests with a custom image servlet, using deployment descriptors or annotations, and implement doGet and doPost to fetch and render images.
learn how ajax in jsf performs synchronous server requests and updates specific components using render ids, with delay and execute controls demonstrated in the file upload example.
Learn how to implement localization in JSF by using locale-based properties files and an application resource bundle, detect browser language from headers, and switch locales through a managed bean.
This lecture explains what the app will have, what technologies will be used and we start developing the app.
In this lecture we create the application template, we add some CSS styling to the template, use Google Fonts to set a specific font to the app.
In this lecture we create the login form for the app along with its design.
In this lecture we finish the login form and create database structure for the app.
In this lecture we create the database connection, datasource, connection pool for the app so that we can use reverse engineering to create the Entities.
We also create some managed beans for the app.
In this lecture we create more managed beans, that allow us to use JSF resources in a more abstract way.
We also create Session Beans (EJBs) for the entities.
In this lecture we add functionality for the app to be able to validate the user whenever he/she tries to log in.
In this lecture we learn how to add datasource and connection pool as if it were a remote application server (GlassFish 4.1 in this case.)
In this lecture we create a MYSQL user for the application to be able to have access.
In this lecture we start using the GoogleMaps for JSF mashup.
In this lecture we create some logic in the managed beans for the maps to be more dynamic.
In this lecture we create a Page Flow for the registration.
In this lecture we continue with the Page Flow registration
In this lecture we finish the Page Flow
In this lecture we explain some changes to some logic in the application and add the Yahoo Weather Mashup and combine it with the rest of the application.
The course will be covering all aspects on how to create a web application using the Java language and taking advantage of the frameworks available that make our lives easier.
The course will be taught in several stages on which you will learn each tool on its own and on the last stage we will take on a full web application using what was taught throughout the course.
The course is intended for students who already have The java language down and understand the concepts of OOP (Object Oriented Programming).Students who want to take on head first the concepts that are required to create secure,optimum and beautifull web applications.
The tools taught in this tutorial are:
1. JSF: Java Server Faces, a server-side component-oriented Java web framework. This is the main goal of this tutorial.
2. EJB: Enterpirse Java Beans, a server-side development architechture that helps us build robust, scalable and secure enterprise java web applications.
3. GlassFish, which is a full Java EE server that allows us to use EJB, in comparison with Tomcat which is only a servlet container.