[richfaces-svn-commits] JBoss Rich Faces SVN: r2371 - in trunk/test-applications/facelets/src/main: java/insert and 3 other directories.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Tue Aug 21 08:31:42 EDT 2007
Author: ayanul
Date: 2007-08-21 08:31:42 -0400 (Tue, 21 Aug 2007)
New Revision: 2371
Added:
trunk/test-applications/facelets/src/main/java/insert/
trunk/test-applications/facelets/src/main/java/insert/Insert.java
trunk/test-applications/facelets/src/main/webapp/Insert/
trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml
trunk/test-applications/facelets/src/main/webapp/Insert/test.html
trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Insert.xml
Log:
add new component "insert"
Added: trunk/test-applications/facelets/src/main/java/insert/Insert.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/insert/Insert.java (rev 0)
+++ trunk/test-applications/facelets/src/main/java/insert/Insert.java 2007-08-21 12:31:42 UTC (rev 2371)
@@ -0,0 +1,28 @@
+package insert;
+
+public class Insert {
+ private String highlight;
+ private String rendered;
+
+ public Insert() {
+ //info = "no";
+ highlight = "";
+ rendered = "true";
+ }
+
+ public String getRendered() {
+ return rendered;
+ }
+
+ public void setRendered(String rendered) {
+ this.rendered = rendered;
+ }
+
+ public String getHighlight() {
+ return highlight;
+ }
+
+ public void setHighlight(String highlight) {
+ this.highlight = highlight;
+ }
+}
Added: trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/Insert.xhtml 2007-08-21 12:31:42 UTC (rev 2371)
@@ -0,0 +1,33 @@
+<!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:a4j="http://richfaces.org/a4j"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.org/rich">
+<f:view>
+ <head>
+ </head>
+ <body>
+ <h:form>
+ <h:messages />
+ <h:outputText value="include test.html: " />
+ <rich:spacer></rich:spacer>
+ <rich:insert id="insertID" rendered="#{insert.rendered}"
+ src="/Insert/test.html"></rich:insert>
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <h:outputText value="Rendered:" />
+ <h:selectBooleanCheckbox value="#{insert.rendered}" />
+
+ <f:verbatim>
+ <br />
+ </f:verbatim>
+
+ <h:commandLink value="Back" action="main"></h:commandLink>
+ </h:form>
+ </body>
+</f:view>
+</html>
\ No newline at end of file
Added: trunk/test-applications/facelets/src/main/webapp/Insert/test.html
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/Insert/test.html (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/Insert/test.html 2007-08-21 12:31:42 UTC (rev 2371)
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ </head>
+ <body>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ html page
+ <br>
+ </body>
+</html>
Added: trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Insert.xml
===================================================================
--- trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Insert.xml (rev 0)
+++ trunk/test-applications/facelets/src/main/webapp/WEB-INF/faces-config-Insert.xml 2007-08-21 12:31:42 UTC (rev 2371)
@@ -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>insert</managed-bean-name>
+ <managed-bean-class>insert.Insert</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
+</faces-config>
More information about the richfaces-svn-commits
mailing list