You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2008/11/17 21:46:44 UTC

[jira] Resolved: (WICKET-1923) use of replaceComponentTagBody in onComponentTag MarkupException: Tag expected

     [ https://issues.apache.org/jira/browse/WICKET-1923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1923.
-----------------------------------

       Resolution: Won't Fix
    Fix Version/s: 1.4-RC2
         Assignee: Igor Vaynberg

use WebComponent

> use of replaceComponentTagBody in onComponentTag MarkupException: Tag expected
> ------------------------------------------------------------------------------
>
>                 Key: WICKET-1923
>                 URL: https://issues.apache.org/jira/browse/WICKET-1923
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-M3
>            Reporter: Per Engström
>            Assignee: Igor Vaynberg
>             Fix For: 1.4-RC2
>
>
> Test.java
> ------------
> public class Test extends WebPage {
> 	public Test() {
> 		add(new WebMarkupContainer("test") {
>         	
> 			@Override
> 			protected void onComponentTag(ComponentTag tag) {
> 				replaceComponentTagBody(getMarkupStream(), tag, "");
> 			}
>         	});
> 	}
> }
> Test.html
> ------------
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
> <html xmlns:wicket="http://wicket.apache.org/">
>     <body>
> 		<span wicket:id="test"></span>
> 	</body>
> </html>
> The code above will generate a org.apache.wicket.markup.MarkupException: Tag expected. Expected behavior is to replace the component body with whatever is in the third argument of replaceComponentTagBody
> Regards
> Per

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.