If you use trunk, then you need to provide the parent as well in the
constructor:

WebMarkupContainer html = new WebMarkupContainer(this, "html");

where this is the page.

Martijn

On 8/28/06, ali <[EMAIL PROTECTED]> wrote:
> i use 1.2 beta1 , i try checkout trunk from svn but not be success.
>
> WebMarkupContainer html = new WebMarkupContainer("html");
> html.add(new AttributeModifier("dir", true, myModel));
> add(html);
>
> <html wicket:id="html"> ...
>
> but wicket throw exception
>
> wicket.WicketRuntimeException: Programming error: 'parent' should be a
> Page or a Border implementing IHeaderRenderer
>       at
> wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:131)
>       at wicket.Component.renderComponent(Component.java:1605)
>       at wicket.MarkupContainer.onRender(MarkupContainer.java:823)
>       at wicket.Component.render(Component.java:1519)
>       at wicket.Component.render(Component.java:1488)
>       at wicket.MarkupContainer.autoAdd(MarkupContainer.java:181)
>       at
> wicket.markup.resolver.HtmlHeaderResolver.resolve(HtmlHeaderResolver.java:75)
>       at wicket.MarkupContainer.renderNext(MarkupContainer.java:1251)
>       at
> wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:893)
>       at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:813)
>       at wicket.Component.renderComponent(Component.java:1605)
>       at wicket.MarkupContainer.onRender(MarkupContainer.java:823)
>       at wicket.Component.render(Component.java:1519)
>       at wicket.MarkupContainer.renderNext(MarkupContainer.java:1224)
>       at wicket.MarkupContainer.renderAll(MarkupContainer.java:840)
>       at wicket.Page.onRender(Page.java:848)
>
>       ....
>
> On Mon, 28 Aug 2006 03:28:51 +0430, Eelco Hillenius
> <[EMAIL PROTECTED]> wrote:
>
> > true,
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow
-- http://wicketframework.org

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to