You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by fr...@apache.org on 2007/02/10 12:36:43 UTC

svn commit: r505676 [2/2] - in /tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src: main/java/org/apache/tapestry/ main/java/org/apache/tapestry/corelib/components/ main/java/org/apache/tapestry/corelib/mixins/ main/java/org/apache/t...

Added: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/java/org/apache/tapestry/model/NoOpComponentModel.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/java/org/apache/tapestry/model/NoOpComponentModel.java?view=auto&rev=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/java/org/apache/tapestry/model/NoOpComponentModel.java (added)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/java/org/apache/tapestry/model/NoOpComponentModel.java Sat Feb 10 03:36:41 2007
@@ -0,0 +1,105 @@
+// Copyright 2007 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.tapestry.model;
+
+import java.util.List;
+
+import org.apache.commons.logging.Log;
+import org.apache.tapestry.ioc.Resource;
+
+public class NoOpComponentModel implements ComponentModel
+{
+
+    public Resource getBaseResource()
+    {
+        return null;
+    }
+
+    public String getComponentClassName()
+    {
+        return null;
+    }
+
+    public List<String> getEmbeddedComponentIds()
+    {
+        return null;
+    }
+
+    public EmbeddedComponentModel getEmbeddedComponentModel(String componentId)
+    {
+        return null;
+    }
+
+    public String getFieldPersistenceStrategy(String fieldName)
+    {
+        return null;
+    }
+
+    public Log getLog()
+    {
+        return null;
+    }
+
+    public List<String> getMixinClassNames()
+    {
+        return null;
+    }
+
+    public ParameterModel getParameterModel(String parameterName)
+    {
+        return null;
+    }
+
+    public List<String> getParameterNames()
+    {
+        return null;
+    }
+
+    public List<String> getDeclaredParameterNames()
+    {
+        return null;
+    }
+
+    public List<String> getPersistentFieldNames()
+    {
+        return null;
+    }
+
+    public boolean isRootClass()
+    {
+        return false;
+    }
+
+    public boolean getSupportsInformalParameters()
+    {
+        return false;
+    }
+
+    public ComponentModel getParentModel()
+    {
+        return null;
+    }
+
+    public boolean isMixinAfter()
+    {
+        return false;
+    }
+
+    public String getMeta(String key)
+    {
+        return null;
+    }
+
+}

Propchange: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/java/org/apache/tapestry/model/NoOpComponentModel.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ActionPage.html
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ActionPage.html?view=diff&rev=505676&r1=505675&r2=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ActionPage.html (original)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ActionPage.html Sat Feb 10 03:36:41 2007
@@ -3,12 +3,12 @@
     <p> Choose a number from 1 to 10: </p>
 
     <p>
-        <t:comp type="Count" end="10" value="index">
-            <t:comp id="choose" type="ActionLink" context="index" class="linkClass">${index}</t:comp>
+        <t:comp id="loop">
+            <t:comp id="choose">${index}</t:comp>
         </t:comp>
     </p>
 
-    <t:comp type="If" test="value">
+    <t:comp id="hasValue">
         <p> <strong>You chose: ${value}</strong>.</p>
     </t:comp>
 

Modified: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/NumberSelect.html
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/NumberSelect.html?view=diff&rev=505676&r1=505675&r2=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/NumberSelect.html (original)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/NumberSelect.html Sat Feb 10 03:36:41 2007
@@ -7,8 +7,8 @@
         Select a number from this list:
         
         <t:comp id="loop">
-            <t:comp type="If" test="notFirst"> - </t:comp>
-            <t:comp type="ActionLink" id="select" context="index">${index}</t:comp>
+            <t:comp id="ifNotFirst" test="notFirst"> - </t:comp>
+            <t:comp id="select">${index}</t:comp>
         </t:comp> 
     </p>
     

Modified: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ValidForm.html
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ValidForm.html?view=diff&rev=505676&r1=505675&r2=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ValidForm.html (original)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app1/pages/ValidForm.html Sat Feb 10 03:36:41 2007
@@ -7,17 +7,17 @@
         
         <t:comp type="Errors"/>
         
-        <label t:type="Label"  for="email">This isn't used</label>: <input
+        <label t:id="l1">This isn't used</label>: <input
             t:id="email" size="50"/>
         <br/>
-        <label t:type="Label"  for="message"/>: <textarea t:id="message"
+        <label t:id="l2"/>: <textarea t:id="message"
             cols="50" rows="10"> You can put text here, but it isn't used. </textarea>
         <br/>
         <input t:id="urgent" />
-        <label t:type="Label" for="urgent"/>
+        <label t:id="l3"/>
         <br/>
         
-        <label t:type="Label" for="hours"/>:
+        <label t:id="l4"/>:
         <input t:id="hours" size="10"/>
         
         <br/>

Modified: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForActionLink.html
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForActionLink.html?view=diff&rev=505676&r1=505675&r2=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForActionLink.html (original)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForActionLink.html Sat Feb 10 03:36:41 2007
@@ -1,5 +1,5 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
 <p>
-<t:comp id="link1" type="ActionLink" context="123">abc</t:comp>
+<t:comp id="link1">abc</t:comp>
 </p>
 </html>

Modified: tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForIf.html
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForIf.html?view=diff&rev=505676&r1=505675&r2=505676
==============================================================================
--- tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForIf.html (original)
+++ tapestry/tapestry5/tapestry-core/branches/kt-20070205-IDE-support/src/test/resources/org/apache/tapestry/integration/app2/pages/TestPageForIf.html Sat Feb 10 03:36:41 2007
@@ -1,14 +1,14 @@
 <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
-<t:comp type="If" test="true">
+<t:comp id="if1">
 	<p id="1">abc.</p>
 </t:comp>
-<t:comp type="If" test="false">
+<t:comp id="if2">
 	<p id="2">def.</p>
 </t:comp>
-<t:comp type="If" test="property1">
+<t:comp id="if3">
 	<p id="3">111.</p>
 </t:comp>
-<t:comp type="If" test="property2">
+<t:comp id="if4">
 	<p id="4">222.</p>
 </t:comp>
 </html>