Author: dgolovin
Date: 2009-12-18 16:14:55 -0500 (Fri, 18 Dec 2009)
New Revision: 19479
Added:
workspace/dgolovin/jsf2-basics/.classpath
workspace/dgolovin/jsf2-basics/.project
workspace/dgolovin/jsf2-basics/.settings/
workspace/dgolovin/jsf2-basics/.settings/.jsdtscope
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.jdt.core.prefs
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.component
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.project.facet.core.xml
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.container
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.name
workspace/dgolovin/jsf2-basics/WebContent/
workspace/dgolovin/jsf2-basics/WebContent/META-INF/
workspace/dgolovin/jsf2-basics/WebContent/META-INF/MANIFEST.MF
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/faces-config.xml
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-api.jar
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-impl.jar
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/resources1.jar
workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/web.xml
workspace/dgolovin/jsf2-basics/WebContent/css/
workspace/dgolovin/jsf2-basics/WebContent/css/styles.css
workspace/dgolovin/jsf2-basics/WebContent/images/
workspace/dgolovin/jsf2-basics/WebContent/images/duke1.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke10.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke11.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke12.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke2.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke3.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke4.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke5.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke6.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke7.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke8.jpeg
workspace/dgolovin/jsf2-basics/WebContent/images/duke9.jpeg
workspace/dgolovin/jsf2-basics/WebContent/index.html
workspace/dgolovin/jsf2-basics/WebContent/resource-handling-1.xhtml
workspace/dgolovin/jsf2-basics/WebContent/resources/
workspace/dgolovin/jsf2-basics/WebContent/resources/en/
workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/
workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/library3/
workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/library3/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/image.xcf
workspace/dgolovin/jsf2-basics/WebContent/resources/library0/
workspace/dgolovin/jsf2-basics/WebContent/resources/library0/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_0/
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_0/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_1/
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_1/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_0.png
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_1.png
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/ru/
workspace/dgolovin/jsf2-basics/WebContent/resources/ru/image.png
workspace/dgolovin/jsf2-basics/WebContent/resources/title.png
workspace/dgolovin/jsf2-basics/build/
workspace/dgolovin/jsf2-basics/build/classes/
workspace/dgolovin/jsf2-basics/build/classes/META-INF/
workspace/dgolovin/jsf2-basics/build/classes/META-INF/resources/
workspace/dgolovin/jsf2-basics/build/classes/META-INF/resources/duke2.jpeg
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomer.class
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomerLookupService.class
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankingBean.class
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/HealthPlanBean.class
workspace/dgolovin/jsf2-basics/build/classes/messages_en.properties
workspace/dgolovin/jsf2-basics/build/classes/messages_en_US.properties
workspace/dgolovin/jsf2-basics/build/classes/messages_ru.properties
workspace/dgolovin/jsf2-basics/src/
workspace/dgolovin/jsf2-basics/src/META-INF/
workspace/dgolovin/jsf2-basics/src/META-INF/resources/
workspace/dgolovin/jsf2-basics/src/META-INF/resources/duke2.jpeg
workspace/dgolovin/jsf2-basics/src/coreservlets/
workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomer.java
workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomerLookupService.java
workspace/dgolovin/jsf2-basics/src/coreservlets/BankingBean.java
workspace/dgolovin/jsf2-basics/src/coreservlets/HealthPlanBean.java
workspace/dgolovin/jsf2-basics/src/messages_en.properties
workspace/dgolovin/jsf2-basics/src/messages_en_US.properties
workspace/dgolovin/jsf2-basics/src/messages_ru.properties
Log:
Jsf2 complex example
Added: workspace/dgolovin/jsf2-basics/.classpath
===================================================================
--- workspace/dgolovin/jsf2-basics/.classpath (rev 0)
+++ workspace/dgolovin/jsf2-basics/.classpath 2009-12-18 21:14:55 UTC (rev 19479)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss
5.0 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java-6-sun-1.6.0.16"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Property changes on: workspace/dgolovin/jsf2-basics/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/.project
===================================================================
--- workspace/dgolovin/jsf2-basics/.project (rev 0)
+++ workspace/dgolovin/jsf2-basics/.project 2009-12-18 21:14:55 UTC (rev 19479)
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jsf2-basics</name>
+ <comment></comment>
+ <projects>
+ <project>resources1</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
Property changes on: workspace/dgolovin/jsf2-basics/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/.settings/.jsdtscope
===================================================================
--- workspace/dgolovin/jsf2-basics/.settings/.jsdtscope (rev 0)
+++ workspace/dgolovin/jsf2-basics/.settings/.jsdtscope 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con"
path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: workspace/dgolovin/jsf2-basics/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- workspace/dgolovin/jsf2-basics/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++ workspace/dgolovin/jsf2-basics/.settings/org.eclipse.jdt.core.prefs 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,7 @@
+#Mon Aug 17 16:43:17 EDT 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: workspace/dgolovin/jsf2-basics/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.component
===================================================================
--- workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.component
(rev 0)
+++ workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.component 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="jsf-basics">
+ <wb-resource deploy-path="/"
source-path="/WebContent"/>
+ <wb-resource deploy-path="/WEB-INF/classes"
source-path="/src"/>
+ <dependent-module archiveName="resources1.jar"
deploy-path="/" handle="module:/resource/resources1/resources1">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <dependent-module archiveName="resources1.jar"
deploy-path="/WEB-INF/lib"
handle="module:/resource/resources1/resources1">
+ <dependency-type>uses</dependency-type>
+ </dependent-module>
+ <property name="context-root" value="jsf-basics"/>
+ <property name="java-output-path"/>
+ </wb-module>
+</project-modules>
Added:
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.project.facet.core.xml 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 5.0 Runtime"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="6.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Property changes on:
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.container
(rev 0)
+++
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.container 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.name
(rev 0)
+++
workspace/dgolovin/jsf2-basics/.settings/org.eclipse.wst.jsdt.ui.superType.name 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: workspace/dgolovin/jsf2-basics/WebContent/META-INF/MANIFEST.MF
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++ workspace/dgolovin/jsf2-basics/WebContent/META-INF/MANIFEST.MF 2009-12-18 21:14:55 UTC
(rev 19479)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/faces-config.xml
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/faces-config.xml
(rev 0)
+++ workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/faces-config.xml 2009-12-18 21:14:55
UTC (rev 19479)
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<faces-config
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"
+ version="2.0">
+ <application>
+ <locale-config>
+ <default-locale>en_US</default-locale>
+ <supported-locale>en_US</supported-locale>
+ </locale-config>
+ <message-bundle>messages_ru</message-bundle>
+ <message-bundle>messages_en</message-bundle>
+ <message-bundle>messages_en_US</message-bundle>
+ </application>
+</faces-config>
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/resources1.jar
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/lib/resources1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/web.xml
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/web.xml (rev
0)
+++ workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/web.xml 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns="http://java.sun.com/xml/ns/javaee"
+
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ version="2.5">
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <context-param>
+ <param-name>javax.faces.PROJECT_STAGE</param-name>
+ <param-value>Development</param-value>
+ </context-param>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/css/styles.css
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/css/styles.css (rev
0)
+++ workspace/dgolovin/jsf2-basics/WebContent/css/styles.css 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1,55 @@
+body {
+ background-color: #fdf5e6
+}
+
+a:hover {
+ color: red
+}
+
+th.title {
+ background-color: #ef8429;
+ font-size: 28px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+th {
+ background-color: #ef8429;
+ font-size: 18px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+td {
+ font-size: 18px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+legend {
+ font-weight: bold;
+ color: black;
+ background-color: #eeeeee;
+ border: 1px solid #999999;
+ padding: 3px 2px;
+}
+
+.ajaxResult {
+ color: #440000;
+ font-weight: bold;
+ font-size: 18px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+h2 {
+ color: #440000;
+ font-weight: bold;
+ font-size: 18px;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.error {
+ background-color: yellow;
+ color: red;
+ font-weight: bold;
+ font-size: 20px;
+ font-family: Arial, Helvetica, sans-serif;
+ border-style: inset;
+}
\ No newline at end of file
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/css/styles.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke1.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke1.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke10.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke10.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke11.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke11.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke12.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke12.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke2.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke2.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke3.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke3.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke4.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke4.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke5.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke5.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke6.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke6.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke7.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke7.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke8.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke8.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/images/duke9.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/images/duke9.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/index.html
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/index.html (rev 0)
+++ workspace/dgolovin/jsf2-basics/WebContent/index.html 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>JSF 2.0: VPE Tests</title>
+</head>
+<body>
+ <a href="resource-handling-1.jsf">Resource handling test case
1</a>
+</body>
+</html>
\ No newline at end of file
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/index.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/resource-handling-1.xhtml
===================================================================
--- workspace/dgolovin/jsf2-basics/WebContent/resource-handling-1.xhtml
(rev 0)
+++ workspace/dgolovin/jsf2-basics/WebContent/resource-handling-1.xhtml 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,91 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html">
+ <h:head>
+ <title>Resource Handling Case 1</title>
+ </h:head>
+ <h:body>
+ <h:outputText value="#{facesContext.viewRoot.locale}" />
+ <h:panelGrid border="1" columns="6">
+ <h:outputText value="Locale"/>
+ <h:outputText value="Library"/>
+ <h:outputText value="Version"/>
+ <h:outputText value="Resource"/>
+ <h:outputText value="Version"/>
+ <h:graphicImage value="#{resource['title.png']}" />
+
+ <h:outputText value="#{facesContext.viewRoot.locale}"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage value="#{resource['image.png']}" />
+
+ <h:outputText value="#{facesContext.viewRoot.locale}"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage value="#{resource['library3:image.png']}" />
+
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage value="#{resource['library1:image.png']}" />
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage value="#{resource['library1/1_0:image.png']}"
/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage value="#{resource['library1/1_1:image.png']}"
/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage
value="#{resource['library1/1_2:duke.png/1_0.png']}" />
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage
value="#{resource['library1/1_2:duke.png/1_1.png']}" />
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage name="image.png" />
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage name="image.png" library="library1" />
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage name="duke1.jpeg"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="n/a"/>
+ <h:outputText value="image.png"/>
+ <h:outputText value="n/a"/>
+ <h:graphicImage name="duke3.jpeg"/>
+ </h:panelGrid>
+
+ <img src="/jsf-basics/javax.faces.resource/image.png?loc=en_US" />
+
+ </h:body>
+</html>
\ No newline at end of file
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resource-handling-1.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/image.png
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/library3/image.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/en_US/library3/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/image.png
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resources/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/image.xcf
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resources/image.xcf
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library0/image.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library0/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_0/image.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_0/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_1/image.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_1/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_0.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_0.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_1.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/1_2/image.png/1_1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/library1/image.png
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/WebContent/resources/library1/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/ru/image.png
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resources/ru/image.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/WebContent/resources/title.png
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/WebContent/resources/title.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/build/classes/META-INF/resources/duke2.jpeg
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/build/classes/META-INF/resources/duke2.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomer.class
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomerLookupService.class
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankCustomerLookupService.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankingBean.class
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/BankingBean.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/build/classes/coreservlets/HealthPlanBean.class
===================================================================
(Binary files differ)
Property changes on:
workspace/dgolovin/jsf2-basics/build/classes/coreservlets/HealthPlanBean.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/build/classes/messages_en.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/build/classes/messages_en.properties
(rev 0)
+++ workspace/dgolovin/jsf2-basics/build/classes/messages_en.properties 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=en
Added: workspace/dgolovin/jsf2-basics/build/classes/messages_en_US.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/build/classes/messages_en_US.properties
(rev 0)
+++ workspace/dgolovin/jsf2-basics/build/classes/messages_en_US.properties 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=en_US
Added: workspace/dgolovin/jsf2-basics/build/classes/messages_ru.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/build/classes/messages_ru.properties
(rev 0)
+++ workspace/dgolovin/jsf2-basics/build/classes/messages_ru.properties 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=ru
Added: workspace/dgolovin/jsf2-basics/src/META-INF/resources/duke2.jpeg
===================================================================
(Binary files differ)
Property changes on: workspace/dgolovin/jsf2-basics/src/META-INF/resources/duke2.jpeg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomer.java
===================================================================
--- workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomer.java
(rev 0)
+++ workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomer.java 2009-12-18 21:14:55
UTC (rev 19479)
@@ -0,0 +1,46 @@
+package coreservlets;
+
+/** Bean to represent a bank customer. Immutable.
+ * <p>
+ * From <a
href="http://courses.coreservlets.com/Course-Materials/">the
+ *
coreservlets.com tutorials on servlets, JSP, Struts, JSF, Ajax, GWT,
+ * Spring, Hibernate/JPA, and Java programming</a>.
+ */
+
+public class BankCustomer {
+ private final String id, firstName, lastName;
+ private final double balance;
+
+ public BankCustomer(String id,
+ String firstName,
+ String lastName,
+ double balance) {
+ this.id = id;
+ this.firstName = firstName;
+ this.lastName = lastName;
+ this.balance = balance;
+ }
+
+ public String getId() {
+ return id;
+ }
+
+ public String getFirstName() {
+ return(firstName);
+ }
+
+ public String getLastName() {
+ return(lastName);
+ }
+
+ public double getBalance() {
+ return(balance);
+ }
+
+ public String getBalanceNoSign() {
+ String balanceString =
+ String.format("%,.2f", Math.abs(balance));
+ return(balanceString);
+ }
+}
+
Property changes on: workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomerLookupService.java
===================================================================
--- workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomerLookupService.java
(rev 0)
+++
workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomerLookupService.java 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,42 @@
+package coreservlets;
+
+import java.util.*;
+
+public class BankCustomerLookupService {
+ // Makes a small table of banking customers.
+
+ private static Map<String,BankCustomer> customers;
+
+ static {
+ customers = new HashMap<String,BankCustomer>();
+ customers.put("id001",
+ new BankCustomer("id001",
+ "Harry",
+ "Hacker",
+ -3456.78));
+ customers.put("id002",
+ new BankCustomer("id002",
+ "Codie",
+ "Coder",
+ 1234.56));
+ customers.put("id003",
+ new BankCustomer("id003",
+ "Polly",
+ "Programmer",
+ 987654.32));
+ }
+
+ public static Map<String,BankCustomer> getSampleCustomers() {
+ return(customers);
+ }
+
+ /** Finds the customer with the given non-null ID.
+ * Returns null if there is no match.
+ */
+
+ public static BankCustomer getCustomer(String id) {
+ return(customers.get(id.toLowerCase()));
+ }
+
+ private BankCustomerLookupService() {} // Non-instantiatable class
+}
Property changes on:
workspace/dgolovin/jsf2-basics/src/coreservlets/BankCustomerLookupService.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/coreservlets/BankingBean.java
===================================================================
--- workspace/dgolovin/jsf2-basics/src/coreservlets/BankingBean.java
(rev 0)
+++ workspace/dgolovin/jsf2-basics/src/coreservlets/BankingBean.java 2009-12-18 21:14:55
UTC (rev 19479)
@@ -0,0 +1,79 @@
+package coreservlets;
+
+import javax.faces.bean.*;
+
+/** From <a
href="http://courses.coreservlets.com/Course-Materials/">the
+ *
coreservlets.com tutorials on servlets, JSP, Struts, JSF, Ajax, GWT,
+ * Spring, Hibernate/JPA, and Java programming</a>.
+ */
+
+@ManagedBean
+public class BankingBean {
+ private String customerId, password, message="";
+
+ private BankCustomer customer;
+
+ public String getCustomerId() {
+ return(customerId);
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+
+ public String getPassword() {
+ return(password);
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public BankCustomer getCustomer() {
+ return(customer);
+ }
+
+ public String getMessage() {
+ return(message);
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+ public String showBalancePage() {
+ if (!password.equals("secret")) {
+ return("wrong-password");
+ }
+ customer =
+ BankCustomerLookupService.getCustomer(customerId);
+ if (customer == null) {
+ return("unknown-customer");
+ } else if (customer.getBalance() < 0) {
+ return("negative-balance");
+ } else if (customer.getBalance() < 10000) {
+ return("normal-balance");
+ } else {
+ return("high-balance");
+ }
+ }
+
+ public String showBalanceMessage() {
+ if (!password.equals("secret")) {
+ message = "Incorrect password";
+ } else {
+ customer =
+ BankCustomerLookupService.getCustomer(customerId);
+ if (customer == null) {
+ message = "Unknown customer";
+ } else {
+ message =
+ String.format("Balance for %s %s is $%,.2f",
+ customer.getFirstName(),
+ customer.getLastName(),
+ customer.getBalance());
+ }
+ }
+ return(null);
+ }
+}
Property changes on: workspace/dgolovin/jsf2-basics/src/coreservlets/BankingBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/coreservlets/HealthPlanBean.java
===================================================================
--- workspace/dgolovin/jsf2-basics/src/coreservlets/HealthPlanBean.java
(rev 0)
+++ workspace/dgolovin/jsf2-basics/src/coreservlets/HealthPlanBean.java 2009-12-18
21:14:55 UTC (rev 19479)
@@ -0,0 +1,19 @@
+package coreservlets;
+
+import javax.faces.bean.*;
+
+@ManagedBean
+public class HealthPlanBean {
+ public String signup() {
+ if (Math.random() < 0.2) {
+ return("accepted");
+ } else {
+ return("rejected");
+ }
+ }
+}
+
+
+// Note: there is no persistent state, so I could have specified @ApplicationScoped above
class.
+// But I wanted to keep this simple. Besides, in real applications, application scope is
rare,
+// because most beans of this type have state (properties that capture user input).
Property changes on: workspace/dgolovin/jsf2-basics/src/coreservlets/HealthPlanBean.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/messages_en.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/src/messages_en.properties (rev
0)
+++ workspace/dgolovin/jsf2-basics/src/messages_en.properties 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=en
Property changes on: workspace/dgolovin/jsf2-basics/src/messages_en.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/messages_en_US.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/src/messages_en_US.properties
(rev 0)
+++ workspace/dgolovin/jsf2-basics/src/messages_en_US.properties 2009-12-18 21:14:55 UTC
(rev 19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=en_US
Property changes on: workspace/dgolovin/jsf2-basics/src/messages_en_US.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: workspace/dgolovin/jsf2-basics/src/messages_ru.properties
===================================================================
--- workspace/dgolovin/jsf2-basics/src/messages_ru.properties (rev
0)
+++ workspace/dgolovin/jsf2-basics/src/messages_ru.properties 2009-12-18 21:14:55 UTC (rev
19479)
@@ -0,0 +1 @@
+javax.faces.resource.localePrefix=ru
Property changes on: workspace/dgolovin/jsf2-basics/src/messages_ru.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain