you dont have <div wicket:id="border"></div> in PaginaTestBorder.html

-igor

On Fri, Jul 17, 2009 at 1:30 PM, Fernando
Wermus<[email protected]> wrote:
> What am I doing wrong in this very simple example?
>
>
> public class PaginaTestBorder  extends AuthenticatedWebPage{
>    public PaginaTestBorder(){
>        add(new EmptyPanel("tabs"));
>        MyBorder border = new MyBorder("border");
>        border.add(new Label("label", "I am the label"));
>        add(border);
>    }
> }
>
>
> MyBorder.html
> <div>
>  Everything outside of the &lt;wicket:border&gt; tags will be ignored.
>  Might be handy as preview code.
>    <wicket:border>
>     before the border contents <br />
>      <wicket:body/>
>     <br />after the border contents <br />
>    </wicket:border>
> </div>
>
>
>
> class MyBorder extends Border
> {
>
>   public MyBorder(String id)
>   {
>       super(id);
>   }
> }
>
> WicketMessage: The component(s) below failed to render. A common
> problem is that you have added a component in code but forgot to
> reference it in the markup (thus the component will never be
> rendered).
>
> 1. [MarkupContainer [Component id = border]]
> 2. [MarkupContainer [Component id = _body]]
> 3. [Component id = label]
>
> Root cause:
>
> org.apache.wicket.WicketRuntimeException: The component(s) below
> failed to render. A common problem is that you have added a component
> in code but forgot to reference it in the markup (thus the component
> will never be rendered).
>
> 1. [MarkupContainer [Component id = border]]
> 2. [MarkupContainer [Component id = _body]]
> 3. [Component id = label]
>
>
>
>
>
> --
> Fernando Wermus.
>
> www.linkedin.com/in/fernandowermus
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to