[richfaces-svn-commits] JBoss Rich Faces SVN: r15926 - in root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main: templates and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Nov 18 20:34:05 EST 2009


Author: alexsmirnov
Date: 2009-11-18 20:34:04 -0500 (Wed, 18 Nov 2009)
New Revision: 15926

Added:
   root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/
   root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/testComponent.xml
Log:
https://jira.jboss.org/jira/browse/RF-7732
Revrite Renderer generator to avoid static context variables.
Create renderer template in the integration test.

Added: root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/testComponent.xml
===================================================================
--- root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/testComponent.xml	                        (rev 0)
+++ root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/testComponent.xml	2009-11-19 01:34:04 UTC (rev 15926)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cdk:root xmlns="http://www.w3.org/1999/xhtml" xmlns:cdk="http://richfaces.org/cdk"
+	xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:cc="http://java.sun.com/jsf/composite">
+	<cc:interface>
+		<cdk:class>org.richfaces.cdk.test.renderkit.rf4_xhtml.TestRenderer</cdk:class>
+		<cdk:superclass>javax.faces.render.Renderer</cdk:superclass>
+		<cdk:component-family>org.richfaces.cdk.test.Test</cdk:component-family>
+		<cdk:component-type>org.richfaces.cdk.test.TestComponent</cdk:component-type>
+		<cdk:renderer-type>org.richfaces.TestRenderer</cdk:renderer-type>
+		<cdk:renderkit-id>RF4_XHTML</cdk:renderkit-id>
+		<cdk:renders-children>false</cdk:renders-children>
+		<cc:attribute name="onclick" />
+		<cc:attribute name="mode" default="ajax" />
+		<cc:attribute name="action" method-signature="void action()" />
+		<cc:attribute name="changeListener"
+			method-signature="void changeListener(ValueChangeEvent)" targets="changes changes1" />
+		<cc:attribute name="disabled" type="boolean" />
+		<cc:attribute name="delay" type="java.lang.Integer" />
+		<cc:attribute name="id" required="true" />
+		<cc:attribute name="experts" shortDescription="For use by experts"
+			displayName="Expert attribute" expert="true" />
+		<cc:attribute name="preferred" shortDescription="It's a preferred attribute"
+			displayName="Preferred attribute" preferred="true" />
+		<cdk:resource-dependencies>
+			<cdk:resource-dependency name="jquery.js" />
+			<cdk:resource-dependency name="richfaces.css"
+				library="org.richfaces" />
+			<cdk:resource-dependency name="richfaces.js"
+				library="org.richfaces" target="body" />
+		</cdk:resource-dependencies>
+
+	</cc:interface>
+	<cc:implementation>
+                start
+                <c:if test="#{someTest}">if content</c:if>
+                <c:choose>
+                    <c:when test="#{anotherTest}">when content</c:when>
+                    <c:when test="#{coolTest}"> 
+                        <c:if test="#{nestedIfTest}">nested if content</c:if>
+                    </c:when>
+                    <c:otherwise>otherwise content</c:otherwise>
+                </c:choose>
+                <c:forEach items="#{someCollection}" var="iterationVar">
+                    "forEach content
+                </c:forEach>
+                finish 
+	</cc:implementation>
+</cdk:root>
\ No newline at end of file


Property changes on: root/cdk/trunk/plugins/maven-cdk-plugin/src/it/annotated-component/src/main/templates/testComponent.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain



More information about the richfaces-svn-commits mailing list