Skip to content

Commit

Permalink
Replaced Jakarta Faces with Jakarta Server Faces (#180)
Browse files Browse the repository at this point in the history
* Replaced Jakarta Faces with Jakarta Server Faces

* Underlines again

Signed-off-by: Guillermo González de Agüero <z06.guillermo@gmail.com>
  • Loading branch information
ggam authored and bshannon committed Sep 18, 2019
1 parent 0e8972e commit 23bd574
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/main/jbake/content/batch-processing006.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ and so on.
See link:batch-processing008.html#BCGJHEHJ[The webserverlog Example
Application] and link:batch-processing009.html#BCGFCACD[The phonebilling
Example Application] for details on how to invoke the batch runtime from
a managed bean driven by a Jakarta Faces user interface.
a managed bean driven by a Jakarta Server Faces user interface.


4 changes: 2 additions & 2 deletions src/main/jbake/content/batch-processing008.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ public String process() throws Exception {

[[sthref286]][[the-javaserver-faces-pages]]

The Jakarta Faces Pages
^^^^^^^^^^^^^^^^^^^^^^^^^^
The Jakarta Server Faces Pages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The `index.xhtml` page contains a text area that shows the web server
log. The page provides a button for the user to submit the batch job and
Expand Down
4 changes: 2 additions & 2 deletions src/main/jbake/content/batch-processing009.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ The `BillWriter` artifact writes each bill to a plain text file.

[[sthref291]][[the-javaserver-faces-pages]]

The Jakarta Faces Pages
^^^^^^^^^^^^^^^^^^^^^^^^^^
The Jakarta Server Faces Pages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The `index.xhtml` page contains a text area that shows the log file of
call records. The page provides a button for the user to submit the
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/bean-validation002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ Any validation failures are gracefully handled and can be displayed by
the `h:messages` tag.

Any managed bean that contains Bean Validation annotations automatically
gets validation constraints placed on the fields on a Jakarta Faces
gets validation constraints placed on the fields on a Jakarta Server Faces
application's web pages.

For more information on using validation constraints, see the following:
Expand Down
6 changes: 3 additions & 3 deletions src/main/jbake/content/bean-validation003.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ An empty string is represented as `""`. It is a character sequence of
zero characters. A null string is represented by `null`. It can be
described as the absence of a string instance.

Managed bean elements represented as a Jakarta Faces text component
Managed bean elements represented as a Jakarta Server Faces text component
such as `inputText` are initialized with the value of the empty string
by the Jakarta Faces implementation. Validating these strings can be
by the Jakarta Server Faces implementation. Validating these strings can be
an issue when user input for such fields is not required. Consider the
following example, in which the string `testString` is a bean variable
that will be set using input entered by the user. In this case, the user
Expand Down Expand Up @@ -56,7 +56,7 @@ in the web deployment descriptor file, `web.xml`:
</context-param>
----

This parameter enables the Jakarta Faces implementation to treat
This parameter enables the Jakarta Server Faces implementation to treat
empty strings as null.

Suppose, on the other hand, that you have a `@NotNull` constraint on an
Expand Down
8 changes: 4 additions & 4 deletions src/main/jbake/content/concurrency-utilities006.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The taskcreator Concurrency Example

The `taskcreator` example demonstrates how to use Jakarta Concurrency
to run tasks immediately, periodically, or after a fixed
delay. This example provides a Jakarta Faces interface that enables
delay. This example provides a Jakarta Server Faces interface that enables
users to submit tasks to be executed and displays information messages
for each task. The example uses the Managed Executor Service to run
tasks immediately and the Managed Scheduled Executor Service to run
Expand All @@ -24,13 +24,13 @@ Concurrency Utilities] for information about these services.)

The `taskcreator` example consists of the following components.

* A Jakarta Faces page (`index.xhtml`) that contains three elements:
* A Jakarta Server Faces page (`index.xhtml`) that contains three elements:
a form to submit tasks, a task execution log, and a form to cancel
periodic tasks. This page submits Ajax requests to create and cancel
tasks. This page also receives WebSocket messages, using JavaScript code
to update the task execution log.
* A CDI managed bean (`TaskCreatorBean`) that processes the requests
from the Jakarta Faces page. This bean invokes the methods in
from the Jakarta Server Faces page. This bean invokes the methods in
`TaskEJB` to submit new tasks and to cancel periodic tasks.
* An enterprise bean (`TaskEJB`) that obtains executor service instances
using resource injection and submits tasks for execution. This bean is
Expand All @@ -50,7 +50,7 @@ example.
.*Figure 59-1 Architecture of the taskcreator Example*
image:img/jakartaeett_dt_060.png[
"The figure shows the architecture of the taskcreator example. The
Jakarta Faces page invokes methods on a CDI-managed bean, which
Jakarta Server Faces page invokes methods on a CDI-managed bean, which
submits task initiation requests to an enterprise bean. The enterprise
bean uses a WebSocket endpoint to indicate to clients that an updated
task execution log is available."]
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/connectorexample002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ provides and implements a custom client interface for Jakarta EE
applications to use. This interface is simpler than the Common Client
Interface (CCI).

The `trading-war` module is a web application with a Jakarta Faces
The `trading-war` module is a web application with a Jakarta Server Faces
interface and a managed bean. This application enables clients to submit
trades to the EIS using the resource adapter provided by the
`trading-rar` module. The `trading-war` module uses the custom client
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/dukes-bookstore.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Duke's Bookstore Case Study Example


The Duke's Bookstore example is a simple e-commerce application that
illustrates some of the more advanced features of Jakarta Faces
illustrates some of the more advanced features of Jakarta Server Faces
technology in combination with Jakarta Contexts and Dependency Injection
(CDI), enterprise beans, and the Jakarta Persistence. Users can
select books from an image map, view the bookstore catalog, and purchase
Expand Down
6 changes: 3 additions & 3 deletions src/main/jbake/content/dukes-bookstore001.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Design and Architecture of Duke's Bookstore
-------------------------------------------

Duke's Bookstore is a simple web application that uses many features of
Jakarta Faces technology, in addition to other Jakarta EE features:
Jakarta Server Faces technology, in addition to other Jakarta EE features:

* Jakarta Faces technology, as well as Jakarta Contexts and Dependency
* Jakarta Server Faces technology, as well as Jakarta Contexts and Dependency
Injection (CDI)
** A set of Facelets pages, along with a template, provides the user
Expand All @@ -25,7 +25,7 @@ interface to the application.

** A custom image map component on the front page allows you to select a
book to enter the store. Each area of the map is represented by a
Jakarta Faces managed bean. Text hyperlinks are also provided for
Jakarta Server Faces managed bean. Text hyperlinks are also provided for
accessibility.

** Action listeners are registered on the image map and the text links.
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/dukes-bookstore002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ The following deployment descriptors are used in Duke's Bookstore:
configuration file
* `src/main/webapp/WEB-INF/bookstore.taglib.xml`: The tag library
descriptor file for the custom components
* `src/main/webapp/WEB-INF/faces-config.xml`: The Jakarta Faces
* `src/main/webapp/WEB-INF/faces-config.xml`: The Jakarta Server Faces
configuration file, which configures the managed beans for the map
component as well as the resource bundles for the application
* `src/main/webapp/WEB-INF/web.xml`: The web application configuration
Expand Down
4 changes: 2 additions & 2 deletions src/main/jbake/content/dukes-forest001.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Duke's Forest is a simple e-commerce application that contains several
web applications and illustrates the use of the following Jakarta EE
APIs:

* Jakarta Faces technology, including Ajax
* Jakarta Server Faces technology, including Ajax
* Jakarta Contexts and Dependency Injection (CDI)
* Jakarta RESTful Web Services
* Jakarta Persistence
Expand All @@ -36,7 +36,7 @@ order shipment management. The project name is `dukes-shipment`.
service for order payment. The project name is `dukes-payment`.
* Duke's Resources: A simple Java archive project that contains all
resources used by the web projects. It includes messages, CSS style
sheets, images, JavaScript files, and Jakarta Faces composite
sheets, images, JavaScript files, and Jakarta Server Faces composite
components. The project name is `dukes-resources`.
* Entities: A simple Java archive project that contains all Jakarta Persistence
entities. This project is shared among other projects that use the
Expand Down
12 changes: 6 additions & 6 deletions src/main/jbake/content/dukes-forest002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Duke's Forest uses the following Jakarta EE platform features:
** All enterprise beans packaged within the WAR
* Jakarta Contexts and Dependency Injection (CDI)

** CDI annotations for Jakarta Faces components
** CDI annotations for Jakarta Server Faces components

** A CDI managed bean used as a shopping cart, with conversation scoping

Expand All @@ -54,7 +54,7 @@ Duke's Forest uses the following Jakarta EE platform features:
* Servlets

** A servlet for dynamic image presentation
* Jakarta Faces technology, using Facelets for the web front end
* Jakarta Server Faces technology, using Facelets for the web front end

** Templating

Expand Down Expand Up @@ -453,7 +453,7 @@ following helper classes, found in the `com.forest.web.util` package:
managed beans
* `ImageServlet`: A servlet class that retrieves the image content from
the database and displays it
* `JsfUtil`: Class used for Jakarta Faces operations, such as queuing
* `JsfUtil`: Class used for Jakarta Server Faces operations, such as queuing
messages on a `FacesContext` instance
* `MD5Util`: Class used by the `CustomerController` managed bean to
generate an encrypted password for a user
Expand Down Expand Up @@ -502,7 +502,7 @@ Deployment Descriptors Used in Duke's Store
Duke's Store uses the following deployment descriptors, located in the
`web/WEB-INF` directory:

* `faces-config.xml`: The Jakarta Faces configuration file
* `faces-config.xml`: The Jakarta Server Faces configuration file
* `glassfish-web.xml`: The configuration file specific to GlassFish
Server
* `web.xml`: The web application configuration file
Expand Down Expand Up @@ -595,7 +595,7 @@ Helper Class Used in Duke's Shipment
The Duke's Shipment managed beans use only one helper class, found in
the `com.forest.shipment.web.util` package:

* `JsfUtil`: Class used for Jakarta Faces operations, such as queuing
* `JsfUtil`: Class used for Jakarta Server Faces operations, such as queuing
messages on a `FacesContext` instance
[[sthref315]][[qualifier-used-in-dukes-shipment]]
Expand All @@ -613,7 +613,7 @@ Deployment Descriptors Used in Duke's Shipment

Duke's Shipment uses the following deployment descriptors:

* `faces-config.xml`: The Jakarta Faces configuration file
* `faces-config.xml`: The Jakarta Server Faces configuration file
* `glassfish-web.xml`: The configuration file specific to GlassFish
Server
* `web.xml`: The web application configuration file
2 changes: 1 addition & 1 deletion src/main/jbake/content/dukes-tutoring001.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ fired
** CDI managed beans for Facelets pages

** Bean Validation annotations in the CDI managed beans
* Jakarta Faces technology, using Facelets for the web front end
* Jakarta Server Faces technology, using Facelets for the web front end

** Templating

Expand Down
8 changes: 4 additions & 4 deletions src/main/jbake/content/dukes-tutoring002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ changes in the main interface, a `StatusEvent` is fired. The
out the status change to all the client endpoints registered with
`StatusEndpoint`.

The `index.xhtml` Jakarta Faces page contains JavaScript code to
The `index.xhtml` Jakarta Server Faces page contains JavaScript code to
connect to the WebSocket endpoint. The `onMessage` method on this page
clicks a Jakarta Faces button, which makes an Ajax request to refresh
clicks a Jakarta Server Faces button, which makes an Ajax request to refresh
the table that shows the current status of the students.

For more information on WebSocket endpoints, see
Expand All @@ -130,7 +130,7 @@ Facelets Files Used in the Main Interface

The Duke's Tutoring application uses Facelets to display the user
interface, making extensive use of the templating features of Facelets.
Facelets, the default display technology for Jakarta Faces
Facelets, the default display technology for Jakarta Server Faces
technology, consists of XHTML files located in the
`_tut-install_/examples/case-studies/dukes-tutoring-war/src/main/webapp/`
directory.
Expand Down Expand Up @@ -229,7 +229,7 @@ Deployment Descriptors Used in Duke's Tutoring
Duke's Tutoring uses these deployment descriptors in the
`src/main/webapp/WEB-INF` directory of the `dukes-tutoring-war` project:

* `faces-config.xml`: The Jakarta Faces configuration file
* `faces-config.xml`: The Jakarta Server Faces configuration file
* `glassfish-web.xml`: The configuration file specific to GlassFish
Server, which defines security role mapping
* `web.xml`: The web application configuration file
Expand Down
6 changes: 3 additions & 3 deletions src/main/jbake/content/dukes-tutoring003.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ administration interface.

* `EntityConverter`: A parent class to `StudentConverter` and
`GuardianConverter` that defines a cache to store the entity classes
when converting the entities for use in Jakarta Faces user interface
when converting the entities for use in Jakarta Server Faces user interface
components. The cache helps increase performance. The cache is stored in
the Jakarta Faces context.
* `StudentConverter`: A Jakarta Faces converter for the `Student`
the Jakarta Server Faces context.
* `StudentConverter`: A Jakarta Server Faces converter for the `Student`
entity class. This class contains methods to convert `Student` instances
to strings and back again, so they can be used in the user interface
components of the application.
Expand Down
4 changes: 2 additions & 2 deletions src/main/jbake/content/ejb-async002.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ method on a session bean and call it from a web client. This example
contains two modules.

* A web application (`async-war`) that contains a stateless session bean
and a Jakarta Faces interface. The `MailerBean` stateless session
and a Jakarta Server Faces interface. The `MailerBean` stateless session
bean defines an asynchronous method, `sendMessage`, which uses the
Jakarta Mail API to send an email to an specified email address.
* An auxiliary Java SE program (`async-smtpd`) that simulates an SMTP
Expand All @@ -34,7 +34,7 @@ Architecture of the async-war Module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The `async-war` module consists of a single stateless session bean,
`MailerBean`, and a Jakarta Faces web application front end that uses
`MailerBean`, and a Jakarta Server Faces web application front end that uses
Facelets tags in XHTML files to display a form for users to enter the
email address for the recipient of an email. The status of the email is
updated when the email is finally sent.
Expand Down
2 changes: 1 addition & 1 deletion src/main/jbake/content/ejb-intro004.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ and Directory Interface syntax to find the enterprise bean instance.

Dependency injection is the simplest way of obtaining an enterprise bean
reference. Clients that run within a Jakarta EE server-managed environment,
Jakarta Faces web applications, Jakarta RESTful web services, other enterprise
Jakarta Server Faces web applications, Jakarta RESTful web services, other enterprise
beans, or Jakarta EE application clients support dependency injection using
the `javax.ejb.EJB` annotation.

Expand Down

0 comments on commit 23bd574

Please sign in to comment.