You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/04/13 23:47:14 UTC

svn commit: r933795 - /myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml

Author: lu4242
Date: Tue Apr 13 21:47:14 2010
New Revision: 933795

URL: http://svn.apache.org/viewvc?rev=933795&view=rev
Log:
add test about c:if

Added:
    myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml

Added: myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml
URL: http://svn.apache.org/viewvc/myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml?rev=933795&view=auto
==============================================================================
--- myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml (added)
+++ myfaces/current20/test-webapp/webapp/src/main/webapp/if2.xhtml Tue Apr 13 21:47:14 2010
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!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"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:composite="http://java.sun.com/jsf/composite"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ >
+<h:head>
+</h:head>
+<body>
+<p>TITLE</p>
+    <c:if test="#{helloWorldIfBean.toogle}">
+        <p>Hello World Transient</p>
+        <h:outputText value="Hello World Component"/>
+    </c:if>
+<p>END</p>
+    <h:form id="mainForm">
+        <h:commandButton value="Normal Submit"/>
+    </h:form>
+</body>
+</html>
\ No newline at end of file