You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jd...@apache.org on 2008/04/01 09:15:05 UTC
svn commit: r643307 - in
/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic:
SimplePageExpectedResult_16.html SimplePage_16.html SimplePage_16.java
Author: jdonnerstag
Date: Tue Apr 1 00:15:00 2008
New Revision: 643307
URL: http://svn.apache.org/viewvc?rev=643307&view=rev
Log:
added some more tests related to tag.setName()
Modified:
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_16.html
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.html
wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.java
Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_16.html
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_16.html?rev=643307&r1=643306&r2=643307&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_16.html (original)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePageExpectedResult_16.html Tue Apr 1 00:15:00 2008
@@ -1,5 +1,9 @@
<html xmlns:wicket>
<body>
- <test wicket:id="myContainer">test</test>
+ <test wicket:id="test1">test</test>
+ <test wicket:id="test2"/>
+ <!-- note that span tag are allows changed to open-body-close. See OpenCloseTagExpander -->
+ <test wicket:id="test3"></test>
+ <test wicket:id="test4"></test>
</body>
</html>
Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.html
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.html?rev=643307&r1=643306&r2=643307&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.html (original)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.html Tue Apr 1 00:15:00 2008
@@ -1,5 +1,9 @@
<html xmlns:wicket>
<body>
- <span wicket:id="myContainer">test</span>
+ <span wicket:id="test1">test</span>
+ <anytag wicket:id="test2"/>
+ <!-- note that span tag are allows changed to open-body-close. See OpenCloseTagExpander -->
+ <span wicket:id="test3"/>
+ <span wicket:id="test4"/>
</body>
</html>
Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.java?rev=643307&r1=643306&r2=643307&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/markup/html/basic/SimplePage_16.java Tue Apr 1 00:15:00 2008
@@ -19,6 +19,7 @@
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
+import org.apache.wicket.markup.parser.XmlTag;
/**
@@ -34,7 +35,7 @@
*/
public SimplePage_16()
{
- add(new WebMarkupContainer("myContainer")
+ add(new WebMarkupContainer("test1")
{
private static final long serialVersionUID = 1L;
@@ -42,6 +43,45 @@
{
tag.setName("test");
+ super.onComponentTag(tag);
+ }
+ });
+
+ add(new WebMarkupContainer("test2")
+ {
+ private static final long serialVersionUID = 1L;
+
+ protected void onComponentTag(ComponentTag tag)
+ {
+ tag.setName("test");
+
+ super.onComponentTag(tag);
+ }
+ });
+
+ add(new WebMarkupContainer("test3")
+ {
+ private static final long serialVersionUID = 1L;
+
+ protected void onComponentTag(ComponentTag tag)
+ {
+ tag.setName("test");
+
+ super.onComponentTag(tag);
+ }
+ });
+
+ add(new WebMarkupContainer("test4")
+ {
+ private static final long serialVersionUID = 1L;
+
+ protected void onComponentTag(ComponentTag tag)
+ {
+ tag.setName("test");
+ if (tag.isOpenClose())
+ {
+ tag.setType(XmlTag.OPEN);
+ }
super.onComponentTag(tag);
}
});