Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bruce Link
ch4-tags
Commits
b82c4593
Commit
b82c4593
authored
Sep 22, 2022
by
Bruce Link
Browse files
first EE 10 version
parent
993c0a2d
Changes
18
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
b82c4593
ARG
runtime_image=quay.io/wildfly/wildfly-runtime-jdk1
1
:latest
ARG
runtime_image=quay.io/wildfly/wildfly-runtime-jdk1
7
:latest
FROM
${runtime_image}
COPY
--chown=jboss:root target/server $JBOSS_HOME
RUN
chmod
-R
ug+rwX
$JBOSS_HOME
helm.yaml
View file @
b82c4593
build
:
uri
:
https://gitlab.infoteach.ca/bdlink/ch4-tags.git
mode
:
s2i
ref
:
master
ref
:
ee10
s2i
:
version
:
latest
builderImage
:
quay.io/wildfly/wildfly-s2i-jdk1
1
runtimeImage
:
quay.io/wildfly/wildfly-runtime-jdk1
1
builderImage
:
quay.io/wildfly/wildfly-s2i-jdk1
7
runtimeImage
:
quay.io/wildfly/wildfly-runtime-jdk1
7
deploy
:
replicas
:
1
\ No newline at end of file
pom.xml
View file @
b82c4593
...
...
@@ -7,11 +7,11 @@
<packaging>
war
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1
1
</maven.compiler.source>
<maven.compiler.target>
1
1
</maven.compiler.target>
<maven.compiler.source>
1
7
</maven.compiler.source>
<maven.compiler.target>
1
7
</maven.compiler.target>
<version.maven.war.plugin>
3.3.2
</version.maven.war.plugin>
<version.wildfly>
2
6.1.2.Final
</version.wildfly>
<version.wildfly.cloud.galleon.pack>
1.
1.2
.Final
</version.wildfly.cloud.galleon.pack>
<version.wildfly>
2
7.0.0.Alpha5
</version.wildfly>
<version.wildfly.cloud.galleon.pack>
1.
0.0
.Final
</version.wildfly.cloud.galleon.pack>
<version.wildfly.plugin>
3.0.2.Final
</version.wildfly.plugin>
</properties>
...
...
@@ -19,13 +19,15 @@
<dependency>
<groupId>
jakarta.platform
</groupId>
<artifactId>
jakarta.jakartaee-api
</artifactId>
<version>
8
.0.0
</version>
<version>
10
.0.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.primefaces
</groupId>
<artifactId>
primefaces
</artifactId>
<version>
11.0.0
</version>
<classifier>
jakarta
</classifier>
</dependency>
</dependencies>
...
...
@@ -46,9 +48,6 @@
<feature-pack>
<location>
org.wildfly:wildfly-galleon-pack:${version.wildfly}
</location>
</feature-pack>
<feature-pack>
<location>
org.wildfly.cloud:wildfly-cloud-galleon-pack:${version.wildfly.cloud.galleon.pack}
</location>
</feature-pack>
</feature-packs>
<layers>
<layer>
jsf
</layer>
...
...
@@ -56,7 +55,7 @@
<galleon-options>
<jboss-fork-embedded>
true
</jboss-fork-embedded>
</galleon-options>
</configuration>
</configuration>
<executions>
<execution>
<goals>
...
...
@@ -89,10 +88,11 @@
</build>
<profiles>
<profile>
<!-- When built in OpenShift console, add ENV under Build Config: -->
<!-- MAVEN_ARGS=-Popenshift-v1 -->
<!-- Use this profile for any OpenShift s2i v1 specific customization your app will need. -->
<id>
openshift-v1
</id>
<!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app will need. -->
<!-- By default that is to put the resulting archive into the 'deployments' folder. -->
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
<id>
old
</id>
<build>
<plugins>
<plugin>
...
...
@@ -110,8 +110,8 @@
</profile>
<profile>
<!-- When built with helm th
is
profile should be used when invoking mvn. -->
<!-- Use this profile for any OpenShift
s2i v2
specific customization your app will need. -->
<!-- When built with helm th
e 'helm'
profile should be used when invoking mvn. -->
<!-- Use this profile for any OpenShift specific customization your app will need. -->
<!-- By default that is to put the resulting archive into the 'deployments' folder. -->
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
<id>
openshift
</id>
...
...
@@ -125,12 +125,10 @@
<feature-packs>
<feature-pack>
<location>
org.wildfly:wildfly-galleon-pack:${version.wildfly}
</location>
<feature-pack>
<location>
org.wildfly.cloud:wildfly-cloud-galleon-pack:${version.wildfly.cloud.galleon.pack}
</location>
</feature-pack>
</feature-pack>
</feature-packs>
<layers>
<layer>
cloud-server
</layer>
<layer>
jsf
</layer>
</layers>
<galleon-options>
...
...
src/main/java/com/corejsf/LocaleChanger.java
View file @
b82c4593
...
...
@@ -3,9 +3,9 @@ package com.corejsf;
import
java.io.Serializable
;
import
java.util.Locale
;
import
ja
vax
.inject.Named
;
import
ja
vax
.enterprise.context.SessionScoped
;
import
ja
vax
.faces.context.FacesContext
;
import
ja
karta
.inject.Named
;
import
ja
karta
.enterprise.context.SessionScoped
;
import
ja
karta
.faces.context.FacesContext
;
@Named
@SessionScoped
...
...
src/main/java/com/corejsf/MessagesUserBean.java
View file @
b82c4593
...
...
@@ -2,8 +2,8 @@ package com.corejsf;
import
java.io.Serializable
;
import
ja
vax
.inject.Named
;
import
ja
vax
.enterprise.context.RequestScoped
;
import
ja
karta
.inject.Named
;
import
ja
karta
.enterprise.context.RequestScoped
;
@Named
(
"messageUser"
)
@RequestScoped
...
...
src/main/java/com/corejsf/RegisterForm.java
View file @
b82c4593
...
...
@@ -12,9 +12,9 @@ import java.util.Map;
import
java.util.Set
;
import
java.util.TreeSet
;
import
ja
vax
.inject.Named
;
import
ja
vax
.enterprise.context.SessionScoped
;
import
ja
vax
.faces.model.SelectItem
;
import
ja
karta
.inject.Named
;
import
ja
karta
.enterprise.context.SessionScoped
;
import
ja
karta
.faces.model.SelectItem
;
@Named
(
"form"
)
@SessionScoped
...
...
src/main/java/com/corejsf/UserBean.java
View file @
b82c4593
...
...
@@ -2,8 +2,8 @@ package com.corejsf;
import
java.io.Serializable
;
import
ja
vax
.inject.Named
;
import
ja
vax
.enterprise.context.RequestScoped
;
import
ja
karta
.inject.Named
;
import
ja
karta
.enterprise.context.RequestScoped
;
@Named
(
"user"
)
@RequestScoped
...
...
src/main/webapp/WEB-INF/beans.xml
View file @
b82c4593
<?xml version="1.0"?>
<beans
xmlns=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee"
<beans
xmlns=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee/beans_
2
_0.xsd"
version=
"
2
.0"
xsi:schemaLocation=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee/beans_
4
_0.xsd"
version=
"
4
.0"
bean-discovery-mode=
"annotated"
/>
src/main/webapp/WEB-INF/faces-config.xml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee/web-facesconfig_
2_3
.xsd"
version=
"
2.3
"
>
<faces-config
xmlns=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee/web-facesconfig_
4_0
.xsd"
version=
"
4.0
"
>
<application>
<resource-bundle>
<base-name>
messages
</base-name>
...
...
src/main/webapp/WEB-INF/web.xml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee"
<web-app
xmlns=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://
xmlns.jcp.org
/xml/ns/ja
v
aee/web-app_
4
_0.xsd"
version=
"
4
.0"
>
xsi:schemaLocation=
"http
s
://
jakarta.ee
/xml/ns/ja
kart
aee/web-app_
6
_0.xsd"
version=
"
6
.0"
>
<servlet>
<servlet-name>
Faces Servlet
</servlet-name>
<servlet-class>
ja
vax
.faces.webapp.FacesServlet
</servlet-class>
<servlet-class>
ja
karta
.faces.webapp.FacesServlet
</servlet-class>
<load-on-startup>
1
</load-on-startup>
</servlet>
<servlet-mapping>
...
...
src/main/webapp/flags.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.flagWindowTitle}
</title>
</h:head>
...
...
src/main/webapp/index.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
xmlns:f=
"
http://xmlns.jcp.org/jsf/
core"
xmlns:ui=
"
http://xmlns.jcp.org/jsf/
facelets"
xmlns:h=
"
jakarta.faces.
html"
xmlns:f=
"
jakarta.faces.
core"
xmlns:ui=
"
jakarta.faces.
facelets"
xmlns:p=
"http://primefaces.org/ui"
>
<h:head>
<title>
Core JavaServer Faces: Chapter-04
</title>
...
...
src/main/webapp/javascript.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.windowTitle}
</title>
<h:outputStylesheet
library=
"css"
name=
"styles.css"
/>
...
...
src/main/webapp/messages.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:f=
"
http://xmlns.jcp.org/jsf/
core"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:f=
"
jakarta.faces.
core"
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.msWindowTitle}
</title>
<h:outputStylesheet
library=
"css"
name=
"styles.css"
/>
...
...
src/main/webapp/personalData.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.personWindowTitle}
</title>
</h:head>
...
...
src/main/webapp/select.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:f=
"
http://xmlns.jcp.org/jsf/
core"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:f=
"
jakarta.faces.
core"
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<h:outputStylesheet
library=
"css"
name=
"styles.css"
/>
<title>
#{msgs.selectWindowTitle}
</title>
...
...
src/main/webapp/showInformation.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:f=
"
http://xmlns.jcp.org/jsf/
core"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:f=
"
jakarta.faces.
core"
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.indexWindowTitle}
</title>
</h:head>
...
...
src/main/webapp/thankYou.xhtml
View file @
b82c4593
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"
http://xmlns.jcp.org/jsf/
html"
>
xmlns:h=
"
jakarta.faces.
html"
>
<h:head>
<title>
#{msgs.thankYouWindowTitle}
</title>
</h:head>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment