wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh Sinha" <rakesh.use...@gmail.com>
Subject Re: configuring wicket:id from Java code in <TITLE> in a page
Date Wed, 02 Jul 2008 05:54:52 GMT
Thanks Igor. That works.

Thanks Apache Wicket team once again for a wonderful framework.

On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg <igor.vaynberg@gmail.com> wrote:
> <title wicket:id="mysiteName">[title will be here]</title>
>
> just like the span...
>
> -igor
>
> On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha <rakesh.usenet@gmail.com> wrote:
>> I am trying to have the title of a given page, populated from the code.
>>
>> HTML:
>> ======
>> <html>
>> <head>
>> <title>wicket:id="mysiteName"</title>
>> </head>
>> <body>
>> <strong>Homepage</strong>
>> <br />
>> <br />
>> <span wicket:id="message">message will be here</span>
>> </body>
>> </html>
>>
>> Java: (HomePage.java only)
>> =====
>>
>> public class HomePage extends WebPage {
>>           public HomePage(final PageParameters parameters) {
>>                // Add the simplest type of label
>>                add(new Label("message", MESSAGE));
>>                add(new Label("mysiteName", "mysite"));
>>                // TODO Add your page's components here
>>        }
>>
>>        static final String MESSAGE = "If you see this message wicket is
>> properly configured and running";
>> }
>>
>> I am getting the following error.
>>
>> ERROR - RequestCycle               - 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 = mysiteName, page = pages.HomePage, path =
>> 0:mysiteName.Label, isVisible = true, isVersioned = true]
>>
>> 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 = mysiteName, page = pages.HomePage, path =
>> 0:mysiteName.Label, isVisible = true, isVersioned = true]
>>
>>        at org.apache.wicket.Page.checkRendering(Page.java:1115)
>>
>>
>> Can somebody help me here.
>>
>> I am using this with Wicket 1.3.4 . (with Jetty engine).
>> Thanks.
>>
>> ---------------------------------------------------------------------
>> 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


Mime
View raw message