Weld SVN: r5059 - examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess.
by weld-commits@lists.jboss.org
Author: peteroyle
Date: 2009-11-15 01:30:31 -0500 (Sun, 15 Nov 2009)
New Revision: 5059
Modified:
examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Game.java
examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Generator.java
Log:
Removed unnecessary implemntation of serializable for ApplicationScoped beans
Modified: examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Game.java
===================================================================
--- examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Game.java 2009-11-14 04:45:45 UTC (rev 5058)
+++ examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Game.java 2009-11-15 06:30:31 UTC (rev 5059)
@@ -16,8 +16,6 @@
*/
package org.jboss.weld.environment.se.example.numberguess;
-import java.io.Serializable;
-
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@@ -31,7 +29,7 @@
* @author Peter Royle
*/
@ApplicationScoped
-public class Game implements Serializable
+public class Game
{
public static final int MAX_NUM_GUESSES = 10;
Modified: examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Generator.java
===================================================================
--- examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Generator.java 2009-11-14 04:45:45 UTC (rev 5058)
+++ examples/trunk/se/numberguess/src/main/java/org/jboss/weld/environment/se/example/numberguess/Generator.java 2009-11-15 06:30:31 UTC (rev 5059)
@@ -16,13 +16,11 @@
*/
package org.jboss.weld.environment.se.example.numberguess;
-import java.io.Serializable;
-
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
@ApplicationScoped
-public class Generator implements Serializable
+public class Generator
{
private static final long serialVersionUID = -7213673465118041882L;
private java.util.Random random = new java.util.Random(System.currentTimeMillis());
14 years, 7 months
Weld SVN: r5058 - doc/trunk/reference/en-US.
by weld-commits@lists.jboss.org
Author: gavin.king(a)jboss.com
Date: 2009-11-13 23:45:45 -0500 (Fri, 13 Nov 2009)
New Revision: 5058
Modified:
doc/trunk/reference/en-US/next.xml
Log:
fixes
Modified: doc/trunk/reference/en-US/next.xml
===================================================================
--- doc/trunk/reference/en-US/next.xml 2009-11-14 04:04:25 UTC (rev 5057)
+++ doc/trunk/reference/en-US/next.xml 2009-11-14 04:45:45 UTC (rev 5058)
@@ -5,7 +5,7 @@
<para>
Because CDI is so new, there's not yet a lot of information available online. That will change over time.
- Regardless, the CDI specification remains the authority for information on CDI. The spec less than 100 pages and
+ Regardless, the CDI specification remains the authority for information on CDI. The spec is less than 100 pages and
is quite readable (don't worry, it's not like your Blu-ray player manual). Of course, it covers many details we've
skipped over here. The spec is available on the
<ulink src="http://jcp.org/en/jsr/detail?id=299">JSR-299 page</ulink> at the JCP website.
@@ -41,8 +41,8 @@
</listitem>
<listitem>
<para>
- Edit the pom.xml file in the root of the checkout and remove the "-SNAPSHOT" from the version element (so
- you don't have to build other Weld modules).
+ Edit the <literal>pom.xml</literal> file in the root of the checkout and remove the "<literal>-SNAPSHOT</literal>"
+ from the version element (so you don't have to build other Weld modules).
</para>
</listitem>
<listitem>
@@ -59,7 +59,7 @@
</listitem>
<listitem>
<para>The PDF version of the reference guide will appear the current directory. You can find the HTML version
- in target/docbook/publish/en-US/html</para>
+ in <literal>target/docbook/publish/en-US/html</literal>.</para>
</listitem>
</itemizedlist>
14 years, 7 months
Weld SVN: r5057 - in extensions/trunk/archetypes: weld-jsf-minimal/src/main/resources/archetype-resources and 2 other directories.
by weld-commits@lists.jboss.org
Author: sboscarine
Date: 2009-11-13 23:04:25 -0500 (Fri, 13 Nov 2009)
New Revision: 5057
Modified:
extensions/trunk/archetypes/weld-jsf-minimal-jee/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
Log:
further cleanup
Modified: extensions/trunk/archetypes/weld-jsf-minimal/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/pom.xml 2009-11-14 03:57:17 UTC (rev 5056)
+++ extensions/trunk/archetypes/weld-jsf-minimal/pom.xml 2009-11-14 04:04:25 UTC (rev 5057)
@@ -8,7 +8,8 @@
<version>0.0.1-BETA-SNAPSHOT</version>
</parent>
<artifactId>weld-jsf-minimal</artifactId>
- <name>JSF 2.0 and Weld 1.0 on Servlet Containers like Tomcat 6 and Jetty 6</name>
+ <name>jsf-minimal</name>
+ <description>JSF 2.0 and Weld 1.0 on Servlet Containers like Tomcat 6 and Jetty 6</description>
<packaging>maven-archetype</packaging>
<build>
<extensions>
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-14 03:57:17 UTC (rev 5056)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-14 04:04:25 UTC (rev 5057)
@@ -16,7 +16,7 @@
</properties>
<dependencyManagement>
<dependencies>
- <!-- Import scope will provide versions and scopes for dependency below. -->
+ <!-- Import scope will provide versions for dependencies below. -->
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-bom</artifactId>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/pom.xml 2009-11-14 03:57:17 UTC (rev 5056)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/pom.xml 2009-11-14 04:04:25 UTC (rev 5057)
@@ -8,7 +8,8 @@
<version>0.0.1-BETA-SNAPSHOT</version>
</parent>
<artifactId>weld-jsf-minimal-jee</artifactId>
- <name>JSF 2.0 and Weld 1.0 on JEE6 containers like JBoss 6.0</name>
+ <description>JSF 2.0 and Weld 1.0 on JEE6 containers like JBoss 6.0</description>
+ <name>jsf-minimal-jee</name>
<packaging>maven-archetype</packaging>
<build>
<extensions>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-14 03:57:17 UTC (rev 5056)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-14 04:04:25 UTC (rev 5057)
@@ -19,7 +19,7 @@
</properties>
<dependencyManagement>
<dependencies>
- <!-- Import scope will provide versions and scopes for dependency below. -->
+ <!-- Import scope will provide versions for dependencies below. -->
<dependency>
<groupId>org.jboss.weld</groupId>
<artifactId>weld-extensions-bom</artifactId>
14 years, 7 months
Weld SVN: r5055 - extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 14:39:52 -0500 (Fri, 13 Nov 2009)
New Revision: 5055
Modified:
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
Log:
add bean validation api
add hibernate validator impl
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:30:41 UTC (rev 5054)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:39:52 UTC (rev 5055)
@@ -41,6 +41,18 @@
<artifactId>jsr250-api</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <!-- Provided on JBoss AS, not necessarily Java EE 6 -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.0.GA</version>
+ <scope>provided</scope>
+ </dependency>
<!-- JSF 2.0 -->
<dependency>
<groupId>javax.faces</groupId>
14 years, 7 months
Weld SVN: r5054 - in extensions/trunk/archetypes: weld-jsf-minimal/src/main/resources/archetype-resources/src/main/java and 4 other directories.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 14:30:41 -0500 (Fri, 13 Nov 2009)
New Revision: 5054
Modified:
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
Log:
add bean validation in the example class and view
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:30:41 UTC (rev 5054)
@@ -44,11 +44,13 @@
<artifactId>jsf-api</artifactId>
</dependency>
- <!-- Optional, but pretty useful. -->
- <!-- <dependency>-->
- <!-- <groupId>javax.servlet</groupId>-->
- <!-- <artifactId>jstl</artifactId>-->
- <!-- </dependency>-->
+ <!-- Optional, but pretty useful. -->
+ <!--
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ </dependency>
+ -->
<!-- Optional, but highly recommended. -->
<dependency>
@@ -74,7 +76,20 @@
<scope>runtime</scope>
</dependency>
+ <!-- Bean Validation API (JSR 303) -->
<dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ </dependency>
+
+ <!-- Bean Validation Implementation -->
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>4.0.0.GA</version>
+ </dependency>
+
+ <dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<scope>runtime</scope>
@@ -123,10 +138,10 @@
</connectors>
<!-- force friendly name instead of artifact name + version -->
<contextPath>${build.finalName}</contextPath>
- <!-- Where the BeanManager is constructed. This is where you'll declare datasources. -->
+ <!-- Where the BeanManager is constructed. This is where you'll declare datasources. -->
<jettyEnvXml>\${basedir}/src/test/resources/jetty-env.xml</jettyEnvXml>
- <!-- This parameter will auto-deploy modified classes. -->
- <!-- You can save changes in a file or class and refresh your browser to view the changes. -->
+ <!-- This parameter will auto-deploy modified classes. -->
+ <!-- You can save changes in a file or class and refresh your browser to view the changes. -->
<scanIntervalSeconds>3</scanIntervalSeconds>
</configuration>
</plugin>
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/java/HelloWorld.java 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/java/HelloWorld.java 2009-11-13 19:30:41 UTC (rev 5054)
@@ -1,24 +1,70 @@
package ${package};
-import java.io.Serializable;
+import javax.enterprise.inject.Model;
+import javax.validation.constraints.Digits;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
-import javax.enterprise.context.RequestScoped;
-import javax.inject.Named;
-@RequestScoped
-@Named
-public class HelloWorld implements Serializable
+import org.hibernate.validator.constraints.Email;
+import org.hibernate.validator.constraints.NotEmpty;
+
+public @Model class HelloWorld
{
+ private final String text = "Hello World!";
+
+ private String letters;
+
+ private String numbers;
+
+ private String email;
+
public HelloWorld()
{
System.out.println(this.getClass().getSimpleName() + " was constructed");
}
- private final String text = "Hello World!";
-
public String getText()
{
return text;
}
- private static final long serialVersionUID = 1L;
-}
\ No newline at end of file
+ @NotNull
+ @NotEmpty
+ @Pattern(regexp = "[A-Za-z]*", message = "must contain only letters")
+ public String getLetters()
+ {
+ return letters;
+ }
+
+ public void setLetters(String letters)
+ {
+ this.letters = letters;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Digits(fraction = 0, integer = 2)
+ public String getNumbers()
+ {
+ return numbers;
+ }
+
+ public void setNumbers(String numbers)
+ {
+ this.numbers = numbers;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Email
+ public String getEmail()
+ {
+ return email;
+ }
+
+ public void setEmail(String email)
+ {
+ this.email = email;
+ }
+
+}
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 19:30:41 UTC (rev 5054)
@@ -1,13 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html">
-<h:head>
- <title>JSF Demo</title>
-</h:head>
-<h:body>
- <h1>Does Weld Work?</h1>
- <p>My weld-injected bean says <span style="color: blue;">#{helloWorld.text}</span> in a JSF EL dialect.</p>
- <p>You can write the same value using the Unified EL: <span style="color: green;">${helloWorld.text}</span></p>
-</h:body>
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html">
+ <h:head>
+ <title>Weld Starter Application</title>
+ </h:head>
+ <h:body>
+ <h1>Hello World!</h1>
+ <p>My weld-injected bean says <span style="color: blue;">#{helloWorld.text}</span> in a JSF EL dialect.</p>
+ <p>You can write the same value using the Unified EL: <span style="color: green;">${helloWorld.text}</span></p>
+
+ <h:form>
+ <h2>Bean Validation examples</h2>
+ <p>Enforces the annotation-based constraints defined on the model class.</p>
+ <table>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="letters" value="Letters:"/>
+ </th>
+ <td>
+ <h:inputText id="letters" value="#{helloWorld.letters}"/>
+ <h:message for="letters" style="color: red;"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="numbers" value="Numbers (max two digits):"/>
+ </th>
+ <td>
+ <h:inputText id="numbers" value="#{helloWorld.numbers}"/>
+ <h:message for="numbers" style="color: red;"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="email" value="Email:"/>
+ </th>
+ <td>
+ <h:inputText id="email" value="#{helloWorld.email}"/>
+ <h:message for="email" style="color: red;"/>
+ </td>
+ </tr>
+ </table>
+ <p>
+ <h:commandButton action="check" value="Check"/>
+ <h:outputText value=" All clear!" rendered="#{facesContext.postback and empty facesContext.messageList}" style="color: green;"/>
+ </p>
+ </h:form>
+ </h:body>
</html>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 19:30:41 UTC (rev 5054)
@@ -48,11 +48,13 @@
<scope>provided</scope>
</dependency>
- <!-- Optional, but pretty useful. -->
- <!-- <dependency>-->
- <!-- <groupId>javax.servlet</groupId>-->
- <!-- <artifactId>jstl</artifactId>-->
- <!-- </dependency>-->
+ <!-- Optional, but pretty useful. -->
+ <!--
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>jstl</artifactId>
+ </dependency>
+ -->
<!-- Optional, but highly recommended. -->
<dependency>
@@ -74,23 +76,6 @@
</exclusions>
</dependency>
- <!-- Sun Bean Validation API (JSR 303) -->
- <!--<dependency>-->
- <!-- <groupId>javax.validation</groupId>-->
- <!-- <artifactId>validation-api</artifactId>-->
- <!--</dependency>-->
- <!-- Bean Validation Implementation -->
- <!--<dependency>-->
- <!-- <groupId>org.hibernate</groupId>-->
- <!-- <artifactId>hibernate-validator</artifactId>-->
- <!-- <version>4.0.0.GA</version>-->
- <!--</dependency>-->
- <!-- Additional Bean Validation Validation Dependency-->
- <!--<dependency>-->
- <!-- <groupId>org.slf4j</groupId>-->
- <!-- <artifactId>slf4j-log4j12</artifactId>-->
- <!-- <version>1.4.2</version>-->
- <!--</dependency>-->
</dependencies>
<build>
<finalName>${artifactId}</finalName>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/java/HelloWorld.java
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/java/HelloWorld.java 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/java/HelloWorld.java 2009-11-13 19:30:41 UTC (rev 5054)
@@ -1,24 +1,70 @@
package ${package};
-import java.io.Serializable;
+import javax.enterprise.inject.Model;
+import javax.validation.constraints.Digits;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
-import javax.enterprise.context.RequestScoped;
-import javax.inject.Named;
-@RequestScoped
-@Named
-public class HelloWorld implements Serializable
+import org.hibernate.validator.constraints.Email;
+import org.hibernate.validator.constraints.NotEmpty;
+
+public @Model class HelloWorld
{
+ private final String text = "Hello World!";
+
+ private String letters;
+
+ private String numbers;
+
+ private String email;
+
public HelloWorld()
{
System.out.println(this.getClass().getSimpleName() + " was constructed");
}
- private final String text = "Hello World!";
-
public String getText()
{
return text;
}
- private static final long serialVersionUID = 1L;
-}
\ No newline at end of file
+ @NotNull
+ @NotEmpty
+ @Pattern(regexp = "[A-Za-z]*", message = "must contain only letters")
+ public String getLetters()
+ {
+ return letters;
+ }
+
+ public void setLetters(String letters)
+ {
+ this.letters = letters;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Digits(fraction = 0, integer = 2)
+ public String getNumbers()
+ {
+ return numbers;
+ }
+
+ public void setNumbers(String numbers)
+ {
+ this.numbers = numbers;
+ }
+
+ @NotNull
+ @NotEmpty
+ @Email
+ public String getEmail()
+ {
+ return email;
+ }
+
+ public void setEmail(String email)
+ {
+ this.email = email;
+ }
+
+}
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 19:07:16 UTC (rev 5053)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 19:30:41 UTC (rev 5054)
@@ -1,13 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:h="http://java.sun.com/jsf/html">
-<h:head>
- <title>JSF Demo</title>
-</h:head>
-<h:body>
- <h1>Does Weld Work?</h1>
- <p>My weld-injected bean says <span style="color: blue;">#{helloWorld.text}</span> in a JSF EL dialect.</p>
- <p>You can write the same value using the Unified EL: <span style="color: green;">${helloWorld.text}</span></p>
-</h:body>
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html">
+ <h:head>
+ <title>Weld Starter Application</title>
+ </h:head>
+ <h:body>
+ <h1>Hello World!</h1>
+ <p>My weld-injected bean says <span style="color: blue;">#{helloWorld.text}</span> in a JSF EL dialect.</p>
+ <p>You can write the same value using the Unified EL: <span style="color: green;">${helloWorld.text}</span></p>
+
+ <h:form>
+ <h2>Bean Validation examples</h2>
+ <p>Enforces the annotation-based constraints defined on the model class.</p>
+ <table>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="letters" value="Letters:"/>
+ </th>
+ <td>
+ <h:inputText id="letters" value="#{helloWorld.letters}"/>
+ <h:message for="letters" style="color: red;"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="numbers" value="Numbers (max two digits):"/>
+ </th>
+ <td>
+ <h:inputText id="numbers" value="#{helloWorld.numbers}"/>
+ <h:message for="numbers" style="color: red;"/>
+ </td>
+ </tr>
+ <tr>
+ <th style="text-align: right;">
+ <h:outputLabel for="email" value="Email:"/>
+ </th>
+ <td>
+ <h:inputText id="email" value="#{helloWorld.email}"/>
+ <h:message for="email" style="color: red;"/>
+ </td>
+ </tr>
+ </table>
+ <p>
+ <h:commandButton action="check" value="Check"/>
+ <h:outputText value=" All clear!" rendered="#{facesContext.postback and empty facesContext.messageList}" style="color: green;"/>
+ </p>
+ </h:form>
+ </h:body>
</html>
14 years, 7 months
Weld SVN: r5053 - extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/test/resources.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 14:07:16 -0500 (Fri, 13 Nov 2009)
New Revision: 5053
Modified:
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
Log:
formatting
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml 2009-11-13 18:56:00 UTC (rev 5052)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/test/resources/jetty-env.xml 2009-11-13 19:07:16 UTC (rev 5053)
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure id="webAppCtx" class="org.mortbay.jetty.webapp.WebAppContext">
- <New id="beanManager" class="org.mortbay.jetty.plus.naming.Resource">
- <Arg>
- <Ref id="webAppCtx" />
- </Arg>
- <Arg>BeanManager</Arg>
- <Arg>
- <New class="javax.naming.Reference">
- <Arg>javax.enterprise.inject.spi.BeanManager</Arg>
- <Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>
- <Arg />
- </New>
- </Arg>
- </New>
+ <New id="beanManager" class="org.mortbay.jetty.plus.naming.Resource">
+ <Arg>
+ <Ref id="webAppCtx"/>
+ </Arg>
+ <Arg>BeanManager</Arg>
+ <Arg>
+ <New class="javax.naming.Reference">
+ <Arg>javax.enterprise.inject.spi.BeanManager</Arg>
+ <Arg>org.jboss.weld.resources.ManagerObjectFactory</Arg>
+ <Arg/>
+ </New>
+ </Arg>
+ </New>
</Configure>
14 years, 7 months
Weld SVN: r5052 - extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 13:56:00 -0500 (Fri, 13 Nov 2009)
New Revision: 5052
Modified:
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
Log:
mark provided resources
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-13 18:52:35 UTC (rev 5051)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/pom.xml 2009-11-13 18:56:00 UTC (rev 5052)
@@ -31,10 +31,12 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
+ <scope>provided</scope>
</dependency>
<!-- JSF 2.0 -->
<dependency>
@@ -57,7 +59,6 @@
<classifier>jdk15</classifier>
</dependency>
-
<!-- Jetty/Tomcat-specific scopes and artifacts -->
<!-- JSF 2.0 -->
@@ -131,4 +132,4 @@
</plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
14 years, 7 months
Weld SVN: r5051 - in extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main: webapp/META-INF and 1 other directories.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 13:52:35 -0500 (Fri, 13 Nov 2009)
New Revision: 5051
Modified:
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
Log:
formatting
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml 2009-11-13 18:50:55 UTC (rev 5050)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml 2009-11-13 18:52:35 UTC (rev 5051)
@@ -1,8 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
- <alternatives />
- <decorators />
- <interceptors />
+<beans xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
+ <alternatives/>
+ <decorators/>
+ <interceptors/>
</beans>
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml 2009-11-13 18:50:55 UTC (rev 5050)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml 2009-11-13 18:52:35 UTC (rev 5051)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context>
- <Manager pathname="" /> <!-- disables storage of sessions across restarts -->
- <Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.jboss.weld.resources.ManagerObjectFactory" />
+ <!-- disable storage of sessions across restarts -->
+ <Manager pathname=""/>
+ <Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.jboss.weld.resources.ManagerObjectFactory"/>
<!-- Uncomment to enable injection into Servlet -->
- <!-- <Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> -->
+ <!-- <Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> -->
</Context>
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-11-13 18:50:55 UTC (rev 5050)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-11-13 18:52:35 UTC (rev 5051)
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file is not required if you don't need any extra configuration. -->
-<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<faces-config version="2.0"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
Modified: extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-11-13 18:50:55 UTC (rev 5050)
+++ extensions/trunk/archetypes/weld-jsf-minimal/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-11-13 18:52:35 UTC (rev 5051)
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
+<web-app version="2.5"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<!-- Activate the JSF 2.0 servlet -->
<servlet>
@@ -27,9 +31,11 @@
<listener>
<listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
</listener>
+
<resource-env-ref>
<description>Object factory for the CDI Bean Manager</description>
<resource-env-ref-name>BeanManager</resource-env-ref-name>
<resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
</resource-env-ref>
+
</web-app>
14 years, 7 months
Weld SVN: r5050 - in extensions/trunk/archetypes/weld-jsf-minimal-jee: src/main/resources/META-INF and 5 other directories.
by weld-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-11-13 13:50:55 -0500 (Fri, 13 Nov 2009)
New Revision: 5050
Modified:
extensions/trunk/archetypes/weld-jsf-minimal-jee/
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/META-INF/archetype.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
Log:
remove servlet stuff so that it runs on JBoss AS 6 cleanly
Property changes on: extensions/trunk/archetypes/weld-jsf-minimal-jee
___________________________________________________________________
Name: svn:ignore
- .settings
.project
+ .project
.settings
target
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/META-INF/archetype.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/META-INF/archetype.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/META-INF/archetype.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -4,6 +4,7 @@
<resource>src/main/webapp/index.xhtml</resource>
<resource>src/main/webapp/index.jsp</resource>
<resource>src/main/webapp/WEB-INF/web.xml</resource>
+ <resource>src/main/webapp/WEB-INF/faces-config.xml</resource>
<resource>src/main/resources/META-INF/beans.xml</resource>
<resource>src/main/webapp/META-INF/context.xml</resource>
</resources>
@@ -12,4 +13,4 @@
</sources>
<testSources />
<testResources />
-</archetype>
\ No newline at end of file
+</archetype>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/pom.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -13,6 +13,9 @@
platform dependent!
-->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <!-- To set the jboss.home environment variable the Maven way, set the jboss.home property in an active profile in the Maven 2 settings.xml file -->
+ <jboss.home>${env.JBOSS_HOME}</jboss.home>
+ <jboss.domain>default</jboss.domain>
</properties>
<dependencyManagement>
<dependencies>
@@ -31,10 +34,12 @@
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
+ <scope>provided</scope>
</dependency>
<!-- JSF 2.0 -->
<dependency>
@@ -58,7 +63,6 @@
<classifier>jdk15</classifier>
</dependency>
-
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
@@ -111,6 +115,14 @@
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>jboss-maven-plugin</artifactId>
+ <configuration>
+ <jbossHome>${jboss.home}</jbossHome>
+ <serverName>${jboss.domain}</serverName>
+ </configuration>
+ </plugin>
</plugins>
</build>
-</project>
\ No newline at end of file
+</project>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -1,7 +1,10 @@
-<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
- <alternatives />
- <decorators />
- <interceptors />
-</beans>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
+ <alternatives/>
+ <decorators/>
+ <interceptors/>
+</beans>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context>
- <Manager pathname="" /> <!-- disables storage of sessions across restarts -->
- <Resource name="BeanManager" auth="Container" type="javax.enterprise.inject.spi.BeanManager" factory="org.jboss.weld.resources.ManagerObjectFactory" />
- <!-- Uncomment to enable injection into Servlet -->
- <!-- <Listener className="org.jboss.weld.environment.tomcat.WeldLifecycleListener"/> -->
+ <!-- disable storage of sessions across restarts -->
+ <Manager pathname=""/>
</Context>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -1,7 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
- <!-- This file is optional. It can be deleted at any time. -->
-<faces-config version="2.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<!-- This file is not required if you don't need any extra configuration. -->
+<faces-config version="2.0"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">
-</faces-config>
\ No newline at end of file
+
+ <!-- Write your navigation rules here. You are encouraged to use CDI for creating @Named managed beans. -->
+
+</faces-config>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
+<web-app version="2.5"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://java.sun.com/xml/ns/javaee
+ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
- <!-- Standard JSF 2.0 Configuration Paramters. -->
- <context-param>
- <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
- <param-value>.xhtml</param-value>
- </context-param>
+ <!-- Activate the JSF 2.0 servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
@@ -26,14 +26,4 @@
<param-value>true</param-value>
</context-param>
- <!-- Weld Jetty/Tomcat specific configuration parameters -->
- <!-- Both the listener and resource-env-ref tags can be deleted in JEE6 containers. -->
- <listener>
- <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
- </listener>
- <resource-env-ref>
- <description>Object factory for the CDI Bean Manager</description>
- <resource-env-ref-name>BeanManager</resource-env-ref-name>
- <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
- </resource-env-ref>
-</web-app>
\ No newline at end of file
+</web-app>
Modified: extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml
===================================================================
--- extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 17:50:09 UTC (rev 5049)
+++ extensions/trunk/archetypes/weld-jsf-minimal-jee/src/main/resources/archetype-resources/src/main/webapp/index.xhtml 2009-11-13 18:50:55 UTC (rev 5050)
@@ -7,8 +7,7 @@
</h:head>
<h:body>
<h1>Does Weld Work?</h1>
- <p>My weld-injected bean says: #{helloWorld.text} in a JSF EL
- dialect.</p>
- <p>You can write the same value using UEL ${helloWorld.text}</p>
+ <p>My weld-injected bean says <span style="color: blue;">#{helloWorld.text}</span> in a JSF EL dialect.</p>
+ <p>You can write the same value using the Unified EL: <span style="color: green;">${helloWorld.text}</span></p>
</h:body>
-</html>
\ No newline at end of file
+</html>
14 years, 7 months