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 2011/10/27 00:02:43 UTC

svn commit: r1189497 [2/2] - in /myfaces/core/branches/2.0.x/impl/src/test: java/org/apache/myfaces/view/facelets/pss/ java/org/apache/myfaces/view/facelets/pss/acid/ java/org/apache/myfaces/view/facelets/pss/acid/component/ java/org/apache/myfaces/vie...

Added: myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/table.xhtml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/table.xhtml?rev=1189497&view=auto
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/table.xhtml (added)
+++ myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/table.xhtml Wed Oct 26 22:02:41 2011
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+				xmlns:h="http://java.sun.com/jsf/html"
+				xmlns:f="http://java.sun.com/jsf/core"
+				xmlns:ui="http://java.sun.com/jsf/facelets"
+				xmlns:test="http://testcomponent"
+				template="common.xhtml">
+	
+	<h2>Table Test Instructions</h2>
+	
+	<ol>
+		<li>The component should have dynamically created a HtmlDataTable</li>
+		<li>
+			The 'dynamic creation' code has subtle similarities to the 're-use same component on each row' code within HtmlDataTable. Specifically
+			if the 'dynamic creation' code is hooking in to 'setParent' then it might get triggered by HtmlDataTable
+		</li>
+		<li>Click 'POSTback'. There should be no error</li>
+	</ol>
+		
+	<h:messages/>
+		
+	<h:form id="mainForm">
+	
+		<test:tablecomponent id="component"/>
+
+		<br/>
+		
+		<h:commandButton id="postback" value="POSTback" action="#{testManagedBean.save}"/>
+		
+	</h:form>			
+
+</ui:composition>
\ No newline at end of file

Propchange: myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/table.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/toggle.xhtml
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/toggle.xhtml?rev=1189497&view=auto
==============================================================================
--- myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/toggle.xhtml (added)
+++ myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/toggle.xhtml Wed Oct 26 22:02:41 2011
@@ -0,0 +1,44 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+				xmlns:h="http://java.sun.com/jsf/html"
+				xmlns:f="http://java.sun.com/jsf/core"
+				xmlns:ui="http://java.sun.com/jsf/facelets"
+				xmlns:test="http://testcomponent"
+				template="common.xhtml">
+      
+	<h2>Toggle Test Instructions</h2>
+	
+	<ol>
+		<li>The component should have dynamically modified the tree so that 'Manually added child 2' appears before 'Manually added child 1' inside the red box</li>
+		<li>Click 'POSTback'. The 'Manually added child 2' and 'Manually added child 1' should keep switching places</li>
+		<li>Click 'POSTback' 3 times. You will see an error with MyFaces 2.0.2</li>
+		<li>Click 'POSTback' 10 times. The number of children (in brackets) should not increment</li>
+	</ol>
+		
+	<h:messages/>
+		
+	<h:form id="mainForm">
+	
+		<test:togglecomponent id="component">
+		</test:togglecomponent>
+		
+		<br/>
+		
+		<h:commandButton id="postback" value="POSTback" action="#{testManagedBean.save}"/>
+		
+	</h:form>
+	
+</ui:composition>			

Propchange: myfaces/core/branches/2.0.x/impl/src/test/resources/org/apache/myfaces/view/facelets/pss/acid/toggle.xhtml
------------------------------------------------------------------------------
    svn:eol-style = native