Hi,

The code looks perfectly fine.
I just copy/pasted it and it prints the label without any error.

On Sun, Apr 15, 2012 at 9:47 AM, Marc Marc <[email protected]> wrote:
> Hello,
>
> I am a new user. I succeeded the quickstart but can not run the "Hello World"
> example. I get the following error:
> Unable to find component with id 'message' in [Page class =
> com.modelandgo.HomePage, id = 0, render count = 1]      Expected: '.message'.
>
> I searched in the mailing list but did not found the solution.
> I add my simple code hereunder.
>
> Thanks!
> Marc
> __________________________________________________
>
> my application:
> public class WicketApplication extends WebApplication
> {
>        @Override
>        public Class<HomePage> getHomePage()
>        {
>                return HomePage.class;
>        }
>
> }
>
> my page:
> public class HomePage extends WebPage {
>        private static final long serialVersionUID = 1L;
>
>    public HomePage(final PageParameters parameters) {
>
>        add(new Label("message", "I am a newbie"));
>
>    }
> }
>
> my html:
> <!DOCTYPE html>
> <html xmlns:wicket="http://wicket.apache.org";>
>        <body>
>        <span wicket:id="message">Message goes here</span>
>        </body>
>
> </html>
>
>
> -----------------------------------------------------
> Mail.be, WebMail and Virtual Office
> http://www.mail.be
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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

Reply via email to