tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1154791 - in /tapestry/tapestry5/trunk/tapestry-core/src/test: java/org/apache/tapestry5/integration/app1/pages/ resources/org/apache/tapestry5/integration/app1/pages/
Date Sun, 07 Aug 2011 23:30:50 GMT
Author: hlship
Date: Sun Aug  7 23:30:49 2011
New Revision: 1154791

URL: http://svn.apache.org/viewvc?rev=1154791&view=rev
Log:
TAP5-1596: Add a page to demonstrate the fix

Added:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.java
    tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.tml
Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.java?rev=1154791&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.java
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.java
Sun Aug  7 23:30:49 2011
@@ -0,0 +1,13 @@
+package org.apache.tapestry5.integration.app1.pages;
+
+/**
+ *
+ */
+public class EventMethodUnmatchedComponentId
+{
+
+    /** Baz is not a component, this should be an error as of TAP5-1596. */
+    void onActionFromBaz()
+    {
+    }
+}

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java?rev=1154791&r1=1154790&r2=1154791&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/Index.java
Sun Aug  7 23:30:49 2011
@@ -56,6 +56,8 @@ public class Index
     private static final List<Item> ITEMS = CollectionFactory
             .newList(
 
+                    new Item("EventMethodUnmatchedComponentId", "Unmatched Component Id in
Event Method Demo", "Show that referencing a component that does not exist in an event handler
method name is an error."),
+
                     new Item("AlertsDemo", "Alerts Demo", "Managing alerts both traditional
and Ajax"),
 
                     new Item("ClientConsoleDemo", "Client Console Demo", "Demo for the JavaScript
client-side console"),

Added: tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.tml
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.tml?rev=1154791&view=auto
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.tml
(added)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/resources/org/apache/tapestry5/integration/app1/pages/EventMethodUnmatchedComponentId.tml
Sun Aug  7 23:30:49 2011
@@ -0,0 +1,6 @@
+<html t:type="Border" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
+<!-- Define a couple of components with valid component ids. -->
+
+<t:actionlink t:id="foo">foo</t:actionlink>
+<t:actionlink t:id="bar">bar</t:actionlink>
+</html>



Mime
View raw message