You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2011/03/13 22:38:19 UTC

svn commit: r1081223 - /wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java

Author: mgrigorov
Date: Sun Mar 13 21:38:18 2011
New Revision: 1081223

URL: http://svn.apache.org/viewvc?rev=1081223&view=rev
Log:
WICKET-3422: Simplified visibility control of Enclosures in Ajax requests

Remove a check which is already done in super's constructor.


Modified:
    wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java

Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java?rev=1081223&r1=1081222&r2=1081223&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/markup/html/internal/InlineEnclosure.java Sun Mar 13 21:38:18 2011
@@ -22,7 +22,6 @@ import java.util.List;
 import org.apache.wicket.Component;
 import org.apache.wicket.MarkupContainer;
 import org.apache.wicket.markup.ComponentTag;
-import org.apache.wicket.markup.MarkupException;
 import org.apache.wicket.markup.MarkupStream;
 import org.apache.wicket.markup.parser.filter.InlineEnclosureHandler;
 import org.apache.wicket.markup.resolver.ComponentResolvers;
@@ -70,12 +69,6 @@ public class InlineEnclosure extends Enc
 	{
 		super(id, childId);
 
-		if (childId == null)
-		{
-			throw new MarkupException(
-				"You most likely forgot to register the EnclosureHandler with the MarkupParserFactory");
-		}
-
 		this.childId = childId;
 	}