Re: Very strange exception

2010-02-03 Thread Wilhelmsen Tor Iver
 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=labelThis gets replaced/span

in your HTML template.

- Tor Iver

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



RE: Very strange exception

2010-02-03 Thread Martin Asenov
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:toriv...@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=labelThis gets replaced/span

in your HTML template.

- Tor Iver

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


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



Re: Very strange exception

2010-02-03 Thread James Carman
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 mase...@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:toriv...@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=labelThis gets replaced/span

 in your HTML template.

 - Tor Iver

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


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



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



RE: Very strange exception

2010-02-03 Thread Martin Asenov
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:jcar...@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 mase...@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:toriv...@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=labelThis gets replaced/span

 in your HTML template.

 - Tor Iver

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


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



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


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



Very strange exception

2010-02-02 Thread Martin Asenov
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