You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by ro...@apache.org on 2011/08/12 16:16:03 UTC

svn commit: r1157117 - in /tapestry/tapestry5/trunk: ./ tapestry-core/src/test/app1/ tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/

Author: robertdzeigler
Date: Fri Aug 12 14:16:03 2011
New Revision: 1157117

URL: http://svn.apache.org/viewvc?rev=1157117&view=rev
Log:
Fix inadvertent commit of build.gradle.

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java
Modified:
    tapestry/tapestry5/trunk/build.gradle
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java

Modified: tapestry/tapestry5/trunk/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1157117&r1=1157116&r2=1157117&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/build.gradle (original)
+++ tapestry/tapestry5/trunk/build.gradle Fri Aug 12 14:16:03 2011
@@ -88,7 +88,7 @@ subprojects {
   }
   
   ideaModule {
-//    scopes.PROVIDED.plus += configurations.provided
+      scopes.PROVIDED.plus += configurations.provided
   }
   
   dependencies {

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml?rev=1157117&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml Fri Aug 12 14:16:03 2011
@@ -0,0 +1,12 @@
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
+    <t:form>
+        <div id="tab1">
+            <t:formfragment>
+
+            </t:formfragment>
+        </div>
+        <div id="tab2">
+
+        </div>
+    </t:form>
+</html>

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java?rev=1157117&r1=1157116&r2=1157117&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java Fri Aug 12 14:16:03 2011
@@ -102,6 +102,14 @@ public class AjaxTests extends TapestryC
         assertFalse(isElementPresent("innertext2"));
         assertTrue(isElementPresent("outertext2"));
     }
+
+    @Test
+    public void explicit_visible_bounds()
+    {
+        openLinks("Form Fragment Explicit Visible Bounds Demo");
+
+
+    }
 	
     @Test
     public void form_injector()

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java?rev=1157117&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java (added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java Fri Aug 12 14:16:03 2011
@@ -0,0 +1,24 @@
+// Copyright 2011 The Apache Software Foundation
+//
+// 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.
+package org.apache.tapestry5.integration.app1.pages;
+
+/**
+ * Demos the use of explicit bounds for checking visibility of a form fragment for form submission processing.
+ * By default, a FormFragment searches to make sure the containing form is visible via "isDeepVisible".  If
+ * no intermediate parent elements are invisible, the fragment is considered visible.  However, there are times when
+ * that behavior is not desired; some element other than form should be used as the stopping point for determining
+ * visibility.  This page demonstrates that use case.
+ */
+public class FormFragmentExplicitVisibleBoundsDemo {
+}



Re: svn commit: r1157117 - in /tapestry/tapestry5/trunk: ./ tapestry-core/src/test/app1/ tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/

Posted by Robert Zeigler <ro...@roxanemy.com>.
Aaand... I didn't mean to commit AjaxTests of FormFragmentExplicitVisibleBoundsDemo yet, either. *sigh* Not quite awake yet today, sorry.

Robert

On Aug 12, 2011, at 8/129:16 AM , robertdzeigler@apache.org wrote:

> Author: robertdzeigler
> Date: Fri Aug 12 14:16:03 2011
> New Revision: 1157117
> 
> URL: http://svn.apache.org/viewvc?rev=1157117&view=rev
> Log:
> Fix inadvertent commit of build.gradle.
> 
> Added:
>    tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml
>    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java
> Modified:
>    tapestry/tapestry5/trunk/build.gradle
>    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
> 
> Modified: tapestry/tapestry5/trunk/build.gradle
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1157117&r1=1157116&r2=1157117&view=diff
> ==============================================================================
> --- tapestry/tapestry5/trunk/build.gradle (original)
> +++ tapestry/tapestry5/trunk/build.gradle Fri Aug 12 14:16:03 2011
> @@ -88,7 +88,7 @@ subprojects {
>   }
> 
>   ideaModule {
> -//    scopes.PROVIDED.plus += configurations.provided
> +      scopes.PROVIDED.plus += configurations.provided
>   }
> 
>   dependencies {
> 
> Added: tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml?rev=1157117&view=auto
> ==============================================================================
> --- tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml (added)
> +++ tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormFragmentExplicitVisibleBoundsDemo.tml Fri Aug 12 14:16:03 2011
> @@ -0,0 +1,12 @@
> +<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd" xmlns:p="tapestry:parameter">
> +    <t:form>
> +        <div id="tab1">
> +            <t:formfragment>
> +
> +            </t:formfragment>
> +        </div>
> +        <div id="tab2">
> +
> +        </div>
> +    </t:form>
> +</html>
> 
> Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java?rev=1157117&r1=1157116&r2=1157117&view=diff
> ==============================================================================
> --- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java (original)
> +++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java Fri Aug 12 14:16:03 2011
> @@ -102,6 +102,14 @@ public class AjaxTests extends TapestryC
>         assertFalse(isElementPresent("innertext2"));
>         assertTrue(isElementPresent("outertext2"));
>     }
> +
> +    @Test
> +    public void explicit_visible_bounds()
> +    {
> +        openLinks("Form Fragment Explicit Visible Bounds Demo");
> +
> +
> +    }
> 	
>     @Test
>     public void form_injector()
> 
> Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java
> URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java?rev=1157117&view=auto
> ==============================================================================
> --- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java (added)
> +++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/FormFragmentExplicitVisibleBoundsDemo.java Fri Aug 12 14:16:03 2011
> @@ -0,0 +1,24 @@
> +// Copyright 2011 The Apache Software Foundation
> +//
> +// 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.
> +package org.apache.tapestry5.integration.app1.pages;
> +
> +/**
> + * Demos the use of explicit bounds for checking visibility of a form fragment for form submission processing.
> + * By default, a FormFragment searches to make sure the containing form is visible via "isDeepVisible".  If
> + * no intermediate parent elements are invisible, the fragment is considered visible.  However, there are times when
> + * that behavior is not desired; some element other than form should be used as the stopping point for determining
> + * visibility.  This page demonstrates that use case.
> + */
> +public class FormFragmentExplicitVisibleBoundsDemo {
> +}
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org