wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thran...@apache.org
Subject svn commit: r722103 - /wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java
Date Mon, 01 Dec 2008 15:52:12 GMT
Author: thrantal
Date: Mon Dec  1 07:52:11 2008
New Revision: 722103

URL: http://svn.apache.org/viewvc?rev=722103&view=rev
Log:
Added missing generics parameter types and @Override annotations
- no functional changes

Modified:
    wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java

Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java?rev=722103&r1=722102&r2=722103&view=diff
==============================================================================
--- wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java
(original)
+++ wicket/trunk/wicket/src/test/java/org/apache/wicket/util/tester/MockPageWithFormAndAjaxFormSubmitBehavior.java
Mon Dec  1 07:52:11 2008
@@ -49,10 +49,10 @@
 	{
 		pojo = new Pojo("Mock name");
 
-		Form form = new Form("form", new CompoundPropertyModel(pojo));
+		Form<Pojo> form = new Form<Pojo>("form", new CompoundPropertyModel<Pojo>(pojo));
 		add(form);
 
-		form.add(new TextField("name"));
+		form.add(new TextField<String>("name"));
 
 		// The Event behavior
 		WebComponent eventComponent = new WebComponent(EVENT_COMPONENT);
@@ -61,11 +61,13 @@
 		{
 			private static final long serialVersionUID = 1L;
 
+			@Override
 			protected void onSubmit(AjaxRequestTarget target)
 			{
 				executed = true;
 			}
 
+			@Override
 			protected void onError(AjaxRequestTarget target)
 			{
 			}



Mime
View raw message