You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Asenov <mA...@velti.com> on 2010/02/03 09:00:01 UTC

Very strange exception

Hello guys, I get this exception, when loading a page:

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. [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. [Component id = label]

     at org.apache.wicket.Page.checkRendering(Page.java:1162)
     at org.apache.wicket.Page.renderPage(Page.java:922)
     at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
     at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
This looks some kind of fake, as long as I don't have any components with id=label. Also I examined the catalina.log and found nothing relative to this.
Can someone shed more light on this?

Thanks in regards,
Martin


RE: Very strange exception

Posted by Martin Asenov <mA...@velti.com>.
I found it! That label was missing in my set access denied page. I had to click on the display page link in the bottom to see where this happens.

Thank you all!
Regards,
Martin

-----Original Message-----
From: James Carman [mailto:jcarman@carmanconsulting.com] 
Sent: Wednesday, February 03, 2010 5:04 PM
To: users@wicket.apache.org
Subject: Re: Very strange exception

I have used id="label" a lot in my pages/components, so I don't think
that's your problem.  Are you sure your label is set up in your markup
in the right spot (in the hierarchy)?

On Wed, Feb 3, 2010 at 3:11 AM, Martin Asenov <mA...@velti.com> wrote:
> Hi, Wilhelmsen!
>
> Yes, this is pretty clear. I've got enough experience in order to know this :) Maybe the problem is the wicket:id, which I've named 'label'. Maybe this is problem, since I heard certain 'ids' cause problems, like buttons with id=submit, links with id=link and so on.
>
> Thank you, anyway!
>
> Regards, Martin
>
> -----Original Message-----
> From: Wilhelmsen Tor Iver [mailto:TorIverW@arrive.no]
> Sent: Wednesday, February 03, 2010 10:05 AM
> To: users@wicket.apache.org
> Subject: Re: Very strange exception
>
>> 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).
>
> When you do
>
> add(new Label("label", ...
>
> in a Page, you also need something like
>
> <span wicket:id="label">This gets replaced</span>
>
> in your HTML template.
>
> - Tor Iver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Very strange exception

Posted by James Carman <jc...@carmanconsulting.com>.
I have used id="label" a lot in my pages/components, so I don't think
that's your problem.  Are you sure your label is set up in your markup
in the right spot (in the hierarchy)?

On Wed, Feb 3, 2010 at 3:11 AM, Martin Asenov <mA...@velti.com> wrote:
> Hi, Wilhelmsen!
>
> Yes, this is pretty clear. I've got enough experience in order to know this :) Maybe the problem is the wicket:id, which I've named 'label'. Maybe this is problem, since I heard certain 'ids' cause problems, like buttons with id=submit, links with id=link and so on.
>
> Thank you, anyway!
>
> Regards, Martin
>
> -----Original Message-----
> From: Wilhelmsen Tor Iver [mailto:TorIverW@arrive.no]
> Sent: Wednesday, February 03, 2010 10:05 AM
> To: users@wicket.apache.org
> Subject: Re: Very strange exception
>
>> 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).
>
> When you do
>
> add(new Label("label", ...
>
> in a Page, you also need something like
>
> <span wicket:id="label">This gets replaced</span>
>
> in your HTML template.
>
> - Tor Iver
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Very strange exception

Posted by Martin Asenov <mA...@velti.com>.
Hi, Wilhelmsen!

Yes, this is pretty clear. I've got enough experience in order to know this :) Maybe the problem is the wicket:id, which I've named 'label'. Maybe this is problem, since I heard certain 'ids' cause problems, like buttons with id=submit, links with id=link and so on.

Thank you, anyway!

Regards, Martin

-----Original Message-----
From: Wilhelmsen Tor Iver [mailto:TorIverW@arrive.no] 
Sent: Wednesday, February 03, 2010 10:05 AM
To: users@wicket.apache.org
Subject: Re: Very strange exception

> 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).

When you do

add(new Label("label", ...

in a Page, you also need something like

<span wicket:id="label">This gets replaced</span>

in your HTML template.

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Very strange exception

Posted by Wilhelmsen Tor Iver <To...@arrive.no>.
> 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).

When you do

add(new Label("label", ...

in a Page, you also need something like

<span wicket:id="label">This gets replaced</span>

in your HTML template.

- Tor Iver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org