Author: ayanul
Date: 2007-09-19 13:38:55 -0400 (Wed, 19 Sep 2007)
New Revision: 3007
Added:
trunk/test-applications/jsp/src/main/java/emptyPage/
trunk/test-applications/jsp/src/main/java/emptyPage/EmptyPage.java
trunk/test-applications/jsp/src/main/webapp/EmptyPage/
trunk/test-applications/jsp/src/main/webapp/EmptyPage/EmptyPage.jsp
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-EmptyPage.xml
Modified:
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
Log:
has added page for test
Update Calendar and RichTest
Added: trunk/test-applications/jsp/src/main/java/emptyPage/EmptyPage.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/emptyPage/EmptyPage.java
(rev 0)
+++ trunk/test-applications/jsp/src/main/java/emptyPage/EmptyPage.java 2007-09-19 17:38:55
UTC (rev 3007)
@@ -0,0 +1,17 @@
+package emptyPage;
+
+public class EmptyPage {
+ private String text = "text";
+
+ public EmptyPage () {
+
+ }
+
+ public String getText() {
+ return text;
+ }
+
+ public void setText(String text) {
+ this.text = text;
+ }
+}
Added: trunk/test-applications/jsp/src/main/webapp/EmptyPage/EmptyPage.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/EmptyPage/EmptyPage.jsp
(rev 0)
+++ trunk/test-applications/jsp/src/main/webapp/EmptyPage/EmptyPage.jsp 2007-09-19
17:38:55 UTC (rev 3007)
@@ -0,0 +1,20 @@
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<%@ taglib
uri="http://richfaces.org/rich" prefix="rich"%>
+<f:view>
+<html>
+<head>
+<title></title>
+<link rel="stylesheet"
href="<%=request.getContextPath()%>/styles/styles.css"
type="text/css" />
+</head>
+<body>
+ <h:form>
+ <rich:messages showDetail="true"></rich:messages>
+
+ <h:outputText value="#{emptyPage.text}" />
+
+ </h:form>
+</body>
+</html>
+</f:view>
\ No newline at end of file
Added: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-EmptyPage.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-EmptyPage.xml
(rev 0)
+++
trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config-EmptyPage.xml 2007-09-19
17:38:55 UTC (rev 3007)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
+<faces-config>
+ <managed-bean>
+ <managed-bean-name>emptyPage</managed-bean-name>
+ <managed-bean-class>emptyPage.EmptyPage</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
Modified: trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-09-19
16:54:06 UTC (rev 3006)
+++ trunk/test-applications/jsp/src/main/webapp/WEB-INF/faces-config.xml 2007-09-19
17:38:55 UTC (rev 3007)
@@ -124,6 +124,10 @@
<from-outcome>Map</from-outcome>
<to-view-id>/pages/Map.jsp</to-view-id>
</navigation-case>
+ <navigation-case>
+ <from-outcome>EmptyPage</from-outcome>
+ <to-view-id>/EmptyPage/EmptyPage.jsp</to-view-id>
+ </navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>*</from-view-id>
Modified: trunk/test-applications/jsp/src/main/webapp/pages/main.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-09-19 16:54:06 UTC
(rev 3006)
+++ trunk/test-applications/jsp/src/main/webapp/pages/main.jsp 2007-09-19 17:38:55 UTC
(rev 3007)
@@ -17,6 +17,7 @@
<h:commandLink value="RichFaces"
action="RichTest"></h:commandLink>
<h:commandLink value="Div"
action="TestDiv"></h:commandLink>
<h:commandLink value="Select"
action="Map"></h:commandLink>
+ <h:commandLink value="Empty Page"
action="EmptyPage></h:commandLink>
</h:panelGrid>
</rich:panel>
</h:form>